Skip to content

keeping masks as nc variables #92

@ChrisBarker-NOAA

Description

@ChrisBarker-NOAA

I see this in sgrid: get_masks

                node_mask = self.nc.variables[mc] #do not [:] mask variables. They contain important metadata

This is a problem -- once in the SGRid class, attributes may nor may not be netcdf variables -- we REALLY don't want the main class to be tied to netCDF like that (they should all be "array like'. So if there's metadata we need (what is it?) then that should be stored somewhere in the SGRrid class, and not expected to be in the array itself.

@jay-hennen: we need to be careful about this -- how/where is this tested?

There should be SGRid (and everything else) test that don't involve creating it from a netCDF file.

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