regress_maps.py

  • Reads in spatial files and fits a regression model at each grid point

Source code

Calling Sequence

usage: regress_maps.py [-h] [--start START] [--end END]
                       [--missing MISSING [MISSING ...]]
                       [--spacing dlon [dlat ...]] [--interval {1,2,3}]
                       [--bounds lon_min lon_max lat_min lat_max]
                       [--format {ascii,netCDF4,HDF5,index-ascii,index-netCDF4,index-HDF5}]
                       [--order ORDER] [--cycles CYCLES [CYCLES ...]] [--log]
                       [--verbose] [--mode MODE]
                       [infiles] [outfile]

Positional Arguments

infiles

Input files

outfile

Output file

Named Arguments

--start, -S

Starting GRACE/GRACE-FO month for time series regression

--end, -E

Ending GRACE/GRACE-FO month for time series regression

--missing, -N

Missing GRACE/GRACE-FO months

--spacing

Spatial resolution of output data

--interval

Output grid interval

  • 1: (0:360, 90:-90)

  • 2: (degree spacing/2)

  • 3: non-global grid (set with defined bounds)

--bounds

Bounding box for non-global grid

--format, -F

Possible choices: ascii, netCDF4, HDF5, index-ascii, index-netCDF4, index-HDF5

Input/output data format

--order

Regression fit polynomial order

--cycles

Regression fit cyclical terms

--log

Output log file for each job

--verbose, -V

Verbose output of run

--mode, -M

Permissions mode of output files