Open pochedls opened 2 years ago
This repo looks long-forgotten, but just because I know it exists - https://github.com/SCRIP-Project/SCRIP
Yes SCRIP is no longer developed. E3SM is using TempestRemap when it doesn't use ESMF so I'd suggest you look there. https://github.com/ClimateGlobalChange/tempestremap
Another option is libCF, as your CDAT commentary notes - looks like it's still rolling https://github.com/conda-forge/libcf-feedstock
@taylor13 was very complimentary of tempestremap when he investigated..
To clarify, I have not actually used tempestremap, but I've read the published papers about the theory, and it looks solid. that being said, as far as I know any regridder operating on anything but a lonxlat rectangular grid needs to know something about the shape of the grid cell (as provided by bounds or cell corner coordinates. Even for lonxlat grids, without bounds the regridder must make an assumption (sometimes incorrect) about where the bounds are.
I modified this to say "or libcf" because that is what is in the warning message (I had thought SCRIP came up in the warning, but I don't think it does).
I think of this as a lower priority issue. I mostly wanted to document cases where CDAT "works" and xcdat does not. I think if tempest/SCRIP/libcf were implemented and can handle this case, we should provide a warning about the assumptions being made, but it would still be useful to be able to do something reasonable for these kinds of datasets.
While the libcf conda feedstock is maintained, it looks like the code hasn't been touched in 5 years.
Yes tempestremap needs to know the bounds and most climate model output doesn't have that. You need to get a "grid file" with more complete info.
Yes tempestremap needs to know the bounds and most climate model output doesn't have that. You need to get a "grid file" with more complete info.
This was theoretically one of the features of SCRIP, though I have not used it personally.
As an aside libCF
was an LLNL-ESGF funded sub-project back in 2011/12, which was deprecated (by that project) when ESMF became available
Is your feature request related to a problem?
Some non-rectangular grids do not provide the cell bounds, which are needed for xESMF to regrid the data. I think the SCRIP regridder may handle these situations.
Example:
See related issue here.
When I try to regrid this file using CDAT it works and provides the following output:
This dataset appears to have the same issue: /p/css03/esgf_publish/CMIP6/CMIP/CAS/CAS-ESM2-0/historical/r1i1p1f1/SImon/siconc/gn/v20201225/.
Describe the solution you'd like
Consider providing an interface to the SCRIP regridder (and switching to SCRIP under some conditions, as CDAT does).
Describe alternatives you've considered
No response
Additional context
No response