Skip to content

Applying a LAND mask #231

@frizwi

Description

@frizwi

Is there an easy way to apply a LAND mask to datasets/dataarrays?

Using the following in.nc file

in.nc.gz

If I plot salt, I get the following:

Image

But I don't want to see any values over LAND. This mask can be had via, in this case, botz. So I effectively want to nanify those cells. I can easily do that as a one-liner in my application but I think it would be useful to do this for the whole dataset as an operation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions