NCPP / ocgis

OpenClimateGIS is a set of geoprocessing and calculation tools for CF-compliant climate datasets.
Other
70 stars 19 forks source link

Create spatial mask by combining coordinate variable masks #483

Closed bekozi closed 6 years ago

bekozi commented 6 years ago

Currently, a spatial mask may be read from a correctly formatted variable. A spatial mask should also be created when coordinate variables have a mask provided the check_value flag is True. This flag check is necessary to avoid unnecessary overhead as most coordinate variables are not masked. The mask should be constructed using a logical OR operation on the coordinate variable masks.

bekozi commented 6 years ago

Added. The get_mask method on grid objects now accepts the check_value flag which checks for fill values in coordinate variables, constructing a mask if they are filled.