From fd6ac7d574d0052bcf94eca2dbd0e00eb8bce226 Mon Sep 17 00:00:00 2001 From: Xylar Asay-Davis Date: Wed, 14 Oct 2026 05:30:53 +0200 Subject: [PATCH 1/2] Require nco >=5.4.2 This is needed for the new `--mpa_flg` option to `ncremap`, which replaces the deprecated `-C`/`--clm_flg` option. Co-Authored-By: Claude Opus 5.5 (1M context) --- ci/recipe/meta.yaml | 2 +- dev-spec.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/recipe/meta.yaml b/ci/recipe/meta.yaml index 0ec0a62..50e77e6 100644 --- a/ci/recipe/meta.yaml +++ b/ci/recipe/meta.yaml @@ -26,7 +26,7 @@ requirements: - netcdf4 - xarray >=0.10.0 - dask - - nco >=4.8.1 + - nco >=5.4.2 - esmf - pyproj diff --git a/dev-spec.txt b/dev-spec.txt index ae926d3..3a77244 100644 --- a/dev-spec.txt +++ b/dev-spec.txt @@ -5,7 +5,7 @@ python >=3.10 dask esmf -nco >=4.8.1 +nco >=5.4.2 netcdf4 numpy scipy From 08c2b9c2ad069beffc0e95094d8f404024d09342 Mon Sep 17 00:00:00 2001 From: Xylar Asay-Davis Date: Wed, 14 Oct 2026 05:30:58 +0200 Subject: [PATCH 2/2] Switch from ncremap -C to --mpa_flg The `-C` and `--clm_flg` options are deprecated as of NCO 5.4.2 in favor of `--mpa_flg`. Co-Authored-By: Claude Opus 5.5 (1M context) --- pyremap/remapper/ncremap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyremap/remapper/ncremap.py b/pyremap/remapper/ncremap.py index 3839ee1..4e5b745 100644 --- a/pyremap/remapper/ncremap.py +++ b/pyremap/remapper/ncremap.py @@ -53,7 +53,7 @@ def _build_args( if isinstance(src_descriptor, mpas_descriptors): args.extend(['-P', 'mpas']) if not replace_mpas_fill: - args.append('-C') + args.append('--mpa_flg') if isinstance(src_descriptor, MpasEdgeMeshDescriptor): regrid_args.extend(['--rgr col_nm=nEdges']) if (