Skip to content

Cutout creates incomplete meta.nc file when right dimensions aren't there #39

Description

@east-winds

If Dataset doesn't have the appropriate x, y, or time dimensions, geodata.Cutout() displays:

WARNING:geodata.preparation:Cutout dimensions are empty. One or more of xs, ys, or time are not available in Dataset.

followed by an error when executing this line cutout.py:

    139 			(self.meta_clean
    140                                 .unstack('year-month')
    141 				.to_netcdf(self.datasetfn()))

If dimensions are not there, this should return NULL, and force user to recheck dimensions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions