This package will provide geospatial regridding/remapping functionality on xarray data objects
Geospatial gridded datasets (climate models, remote sensing images, etc.) frequency exist on dissimilar grids. Existing tools (CDO, NCL, NCO, ESMF, etc.) have addressed this with both stand-alone command line tools and python libraries. While existing python libraries have some of the desired functionality, they do not currently interface with xarray.
This is a list of requirements:
DataArray
objects.da.remap.remap_like(da_target, how='bilinear')
)da.remap.remap_to([('lat', 0.5), ('lon', 0.75)], how='nearest')
)reindex
/reindex_like
)My original thought here would be to xarray’s accessor namespace on top of the DataArray
. In my examples above, this would be the remap
attribute.
To be efficient, many of these regridding techniques will need to make use of a tree datastructure for multi-dimensional lookups. It would nice could be integrated a bit more deeply into xarray (e.g., KDTreeIndex
)
Often it is useful to specify function signatures, class methods / attributes.
This lists tests that should be used to verify that the code is working correctly, especially with respect to meeting requirements. Ideally, this would be a list of unit tests demonstrating that requirements have been met.