![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
With xarray-regrid it is possible to regrid between two rectilinear grids. The following methods are supported:
All regridding methods can operate lazily on Dask arrays.
Note that "Most common value" is designed to regrid categorical data to a coarse resolution. For regridding categorical data to a finer resolution, please use "nearest-neighbor" regridder.
Regridding is a common operation in earth science and other fields. While xarray does have some interpolation methods available, these are not always straightforward to use. Additionally, methods such as conservative regridding, or taking the most common value, are not available in xarray.
For a minimal install:
pip install xarray-regrid
To improve performance in certain cases:
pip install xarray-regrid[accel]
which includes optional extras such as:
dask
: parallelization over chunked datasparse
: for performing conservative regridding using sparse weight matricesopt-einsum
: optimized einsum routines used in conservative regriddingBenchmarking varies across different hardware specifications, but the inclusion of these extras can often provide significant speedups.
The xarray-regrid routines are accessed using the "regrid" accessor on an xarray Dataset:
import xarray_regrid
ds = xr.open_dataset("input_data.nc")
ds_grid = xr.open_dataset("target_grid.nc")
ds.regrid.linear(ds_grid)
For examples, see the benchmark notebooks and the demo notebooks.
The benchmark notebooks contain comparisons to more standard methods (CDO, xESMF).
To be able to run the notebooks, a conda environment is required (due to ESMF and CDO).
You can install this environment using the environment.yml
file in this repository.
Micromamba is a lightweight version of the much faster "mamba" conda alternative.
micromamba create -n environment_name -f environment.yml
This package was developed under Netherlands eScience Center grant NLESC.OEC.2022.017.
FAQs
Regridding tools using xarray and flox.
We found that xarray-regrid demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.