merra_hybrid_cumulative.py

  • Reads MERRA-2 hybrid datafiles to calculate cumulative anomalies in derived surface mass balance products

Source code

General Methods

SMBcorr.merra_hybrid_cumulative(base_dir, REGION, VERSION, RANGE=None, GZIP=False, MODE=509)[source]

Calculates cumulative anomalies of MERRA-2 hybrid surface mass balance products

Parameters:
base_dir: str

Working data directory

REGION: str

MERRA-2 region to interpolate

  • ais: Antarctica

  • gris: Greenland

VERSION: str

MERRA-2 hybrid model version

RANGE: list

Start and end year for mean

GZIP: bool, default False

netCDF4 file is gzip compressed

VERBOSE: bool, default False

Verbose output of netCDF4 variables

MODE: oct, default 0o775

Permission mode of directories and files created

Calling Sequence

usage: merra_hybrid_cumulative.py [-h] [--directory DIRECTORY]
                                  [--region {gris,ais}]
                                  [--version {v0,v1,v1.0,v1.1,v1.2,v1.2.1}]
                                  [--mean START END] [--gzip] [--verbose]
                                  [--mode MODE]

Named Arguments

--directory, -D

Working data directory

--region, -R

Possible choices: gris, ais

Region of firn model to calculate

--version, -v

Possible choices: v0, v1, v1.0, v1.1, v1.2, v1.2.1

Version of firn model to calculate

--mean, -m

Start and end year range for mean

--gzip, -G

netCDF4 file is locally gzip compressed

--verbose, -V

Verbose output of processing run

--mode, -M

Permission mode of directories and files