You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'?
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
The text was updated successfully, but these errors were encountered:
Discussed in #323
Solution proposed by @trexfeathers here #323 (comment)
Add logic to this line of code so that it allows for unmasked arrays:
iris-esmf-regrid/esmf_regrid/experimental/unstructured_regrid.py
Line 104 in d1f1c8f
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 isThe error file is 14520233.err.txt
After following this example on how to create an orca meshcube, I have acquired the following output
which is similar to the example in the above link.
My target cube takes the form
Could anyone advise why I am receiving this error, and how i might fix it?
Thanks in advance
The text was updated successfully, but these errors were encountered: