Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when face node connectivity is not masked #329

Open
stephenworsley opened this issue Dec 19, 2023 Discussed in #323 · 0 comments
Open

Error when face node connectivity is not masked #329

stephenworsley opened this issue Dec 19, 2023 Discussed in #323 · 0 comments

Comments

@stephenworsley
Copy link
Contributor

stephenworsley commented Dec 19, 2023

Discussed in #323

Solution proposed by @trexfeathers here #323 (comment)

Add logic to this line of code so that it allows for unmasked arrays:

elemType = self.fnc.count(axis=1)


Originally posted by thomaswilder December 14, 2023
I am attempting to regrid data from an orca025 grid to a rectilinear grid so the orca data can be compared with climatology data e.g. EN.4.

I am hoping someone can help me with an error I am receiving when running rg = MeshToGridESMFRegridder(meshcube, target_cube) where the error is

File "/home/users/twilder/Python/ORCA025/regrid_iris/lib/python3.10/site-packages/esmf_regrid/experimental/unstructured_regrid.py", line 104, in _as_esmf_info
    elemType = self.fnc.count(axis=1)
AttributeError: 'numpy.ndarray' object has no attribute 'count'. Did you mean: 'conj'?

The error file is 14520233.err.txt

After following this example on how to create an orca meshcube, I have acquired the following output

sea_water_conservative_temperature / (degC) (-- : 1740494)
    Mesh coordinates:
        latitude                                x
        longitude                               x
    Mesh:
        name                                unknown
        location                            face
    Cell methods:
        0                                   time: mean (thickness weighted)


    Attributes:
        Conventions                         'CF-1.6'

which is similar to the example in the above link.

My target cube takes the form

conservative_temperature / (degC)   (latitude: 173; longitude: 360)
    Dimension coordinates:
        latitude                             x               -
        longitude                            -               x
    Scalar coordinates:
        depth                       0.5057600140571594 m

Could anyone advise why I am receiving this error, and how i might fix it?

Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant