interp_SMB_correction.py

  • Interpolates SMB and firn model estimates for correcting surface elevations

    • Snow Height Change (zsurf)

    • Snow Height Change due to Compaction (zfirn)

    • Snow Height Change due to Surface Melt (zmelt)

    • Snow Height Change due to Surface Mass Balance (zsmb)

    • Snow Height Change due to Surface Accumulation (zaccum)

    • Cumulative Surface Mass Balance (SMB)

Source code

Calling Sequence

usage: interp_SMB_correction.py [-h] [--directory DIRECTORY] [--model FIRN]
                                [--region {AA,GL}]
                                [--format {csv,netCDF4,HDF5,geotiff,parquet}]
                                [--variables VARIABLES [VARIABLES ...]]
                                [--header HEADER] [--delimiter DELIMITER]
                                [--type {drift,grid,time series}]
                                [--epoch EPOCH]
                                [--deltatime DELTATIME [DELTATIME ...]]
                                [--standard {UTC,GPS,TAI,LORAN,datetime}]
                                [--projection PROJECTION] [--gzip]
                                [--fill-value FILL_VALUE] [--verbose]
                                [--mode MODE]
                                [infile] [outfile]

Positional Arguments

infile

Input file to run

outfile

Computed output file

Named Arguments

--directory, -D

Working data directory

--model, -m

Regional firn model to run (see list of models)

--region, -r

Possible choices: AA, GL

Region for firn model

--format, -F

Possible choices: csv, netCDF4, HDF5, geotiff, parquet

Input and output data format

--variables, -v

Variable names of data in input file

--header, -H

Number of header lines for csv files

--delimiter

Delimiter for csv or ascii files

--type, -t

Possible choices: drift, grid, time series

Input data type

--epoch, -e

Reference epoch of input time

--deltatime, -d

Input delta time for files without date variables

--standard, -s

Possible choices: UTC, GPS, TAI, LORAN, datetime

Input time standard for delta times

--projection, -P

Spatial projection as EPSG code or PROJ4 string

--gzip, -G

Model files are gzip compressed

--fill-value, -f

Invalid value for spatial fields

--verbose, -V

Verbose output of run

--mode, -M

Permission mode of output file

Models

  • Greenland

    • MARv3.9-ERA

    • MARv3.10-ERA

    • MARv3.11-NCEP

    • MARv3.11-ERA

    • MARv3.11.2-ERA-6km

    • MARv3.11.2-ERA-7.5km

    • MARv3.11.2-ERA-10km

    • MARv3.11.2-ERA-15km

    • MARv3.11.2-ERA-20km

    • MARv3.11.2-NCEP-20km

    • MARv3.11.5-ERA-6km

    • MARv3.11.5-ERA-10km

    • MARv3.11.5-ERA-15km

    • MARv3.11.5-ERA-20km

    • RACMO2.3-XGRN11

    • RACMO2.3p2-XGRN11

    • RACMO2.3p2-FGRN055

    • GSFC-fdm-v0

    • GSFC-fdm-v1

    • GSFC-fdm-v1.0

    • GSFC-fdm-v1.1

    • GSFC-fdm-v1.2

    • GSFC-fdm-v1.2.1

  • Antarctica

    • GSFC-fdm-v0

    • GSFC-fdm-v1

    • GSFC-fdm-v1.1

    • GSFC-fdm-v1.2.1