merra_hybrid_harmonics.py

  • Reads 5-day MERRA-2 hybrid variables and converts to spherical harmonic coefficients [29]

  • Estimates the grid values as point masses for calculating the gravitational spherical harmonic coefficients

  • MERRA-2 Hybrid firn model outputs provided by Brooke Medley at GSFC

Source code

Calling Sequence

usage: merra_hybrid_harmonics.py [-h] [--directory DIRECTORY]
                                 [--region {gris,ais}]
                                 [--version {v0,v1,v1.0,v1.1,v1.2,v1.2.1}]
                                 [--product PRODUCT] [--year YEAR [YEAR ...]]
                                 [--mask MASK [MASK ...]] [--lmax LMAX]
                                 [--mmax MMAX] [--love {0,1,2,3,4}]
                                 [--reference {CF,CM,CE}]
                                 [--format {ascii,netCDF4,HDF5}] [--verbose]
                                 [--gzip] [--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

--product, -P

MERRA-2 hybrid product to calculate

--year, -Y

Years of model outputs to run

--mask

netCDF4 masks file for reducing to regions

--lmax, -l

Maximum spherical harmonic degree

--mmax, -m

Maximum spherical harmonic order

--love, -n

Possible choices: 0, 1, 2, 3, 4

Treatment of the Load Love numbers

  • 0: Han and Wahr (1995) values from PREM [8]

  • 1: Gegout (2005) values from PREM [6]

  • 2: Wang et al. (2012) values from PREM [30]

  • 3: Wang et al. (2012) values from PREM with hard sediment [30]

  • 4: Wang et al. (2012) values from PREM with soft sediment [30]

--reference

Possible choices: CF, CM, CE

Reference frame for load Love numbers

  • 'CF': Center of Surface Figure

  • 'CM': Center of Mass of Earth System

  • 'CE': Center of Mass of Solid Earth

--format, -F

Possible choices: ascii, netCDF4, HDF5

Input and output data format

--verbose, -V

Verbose output of processing run

--gzip, -G

netCDF4 file is locally gzip compressed

--mode, -M

Permission mode of directories and files