climate-data-operators
Minimalistic NodeJS wrapper for CDO
CDO is a collection of command line Operators to manipulate and analyse Climate and NWP model Data. Supported data formats are GRIB 1/2, netCDF 3/4, SERVICE, EXTRA and IEG. There are more than 600 operators available.
Usage
Install climate-data-operators
npm install --save climate-data-operators
Use with distribution-provided CDO (best)
sudo apt install cdo
const CDO = const cdo = cdocdo
Use with precompiled binary
This scenario is useful where APT is not available (ie: serverless functions).
climate-data-operators-bin
provides precompiled binary for Ubuntu 18.04 (no external dependency is required)
# install cdo precompiled binary npm install --save climate-data-operators-bin # install eccodes-lib data for file format you need # see https://www.npmjs.com/package/eccodes-lib # example: npm install --save eccodes-data-grib1npm install --save eccodes-data-grib2
const CDO = const CDOCustomBinary = const grib1FormatData = const grib2FormatData = const demo = async { const cdo = CDOCustomBinary await cdo await cdo await cdo // delete temporary format data // (needed only when using CDOCustomBinary) await cdo}
CDO commands
See CDO Reference Card for a list of usefull commands