Skip to content

Labeling Mismatch and Overlap in WMT_North_Atlantic.ipynb #46

@jetesdal

Description

@jetesdal

I noticed a couple of issues with the masking() function in WMT_North_Atlantic.ipynb. The xr.concat() call currently includes ds_spna (the full region), followed by individual region masks (ds_lab, ds_nor, etc.), and assigns region labels:

ds_all = xr.concat([ds_spna, ds_lab, ds_nor, ds_irm, ds_nac], dim='region')
ds_all['regionname'] = xr.DataArray(['lab','spg','nor','irm','nac'], dims=['region'])

The full-region ds_spna is labeled as lab and the subsequent regions are shifted (e.g., ds_lab is labeled as spg, and so on)

Also, I think there is an overlap between the nor and irm masks (see attached map of grid count where >1 means the area is used more than once).
Image

I believe I have a fix, but I’d like to check if that might already have been fixed in the MDTF?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions