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:
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.
Is there an easy way to apply a LAND mask to datasets/dataarrays?
Using the following
in.ncfilein.nc.gz
If I plot
salt, I get the following: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.