ncmerge - Regrid Irregular NetCDF Data

Banner image

Overview

ncmerge can combine cell-based irregular grids very quickly into a single equirectangular (Plate Carree) grid to simplify visualization workflows. It first creates a map file from coordinate grids, and then performs fast lookups when regridding data values. 3D time varying variables are supported.

Example

# Create map file once for all the coordinates.
GRIDS=1.nc,2.nc,3.nc,4.nc,5.nc,6.nc
ncmerge --map map.nc --eta --near 4 --grids $GRIDS --cells --gridvars xt,yt --nx 400 --ny 200

# Progress output.
# Done |  Elapsed | Remaining |  Processed | Unprocessed | Rate
# 100% | 00:00:00 |  00:00:00 | 80,000 pts |       0 pts | 685,365 pts/s

# Regrid the values.
ncmerge --map map.nc --tiles $GRIDS --var data -o regridded.nc

Figure1

Figure 1. Original grids from 6 cubed sphere tiles.

Figure2

Figure 2. Tiles visualized on a 3D sphere.

Figure3

Figure 3. Tiles regridded onto unified grid by ncmerge.

Download

Source code

Installation

# After adjusting Makefile.inc.
make
make test
make install
make clean

News

v0.0.0 2012/10/19

Distribution

make html
make dist VER=0.0.0

Publishing

ssh -t rsz,ncmerge@shell.sourceforge.net create
scp html/* rsz,ncmerge@shell.sourceforge.net:/home/project-web/ncmerge/htdocs
scp ../ncmerge-0.0.0.tar.gz rsz,ncmerge@shell.sourceforge.net:/home/frs/project/p/py/ncmerge

License

Copyright 2012 Remik Ziemlinski under the terms of the GNU General Public License v3