spatial_operators.py

  • Performs basic operations on spatial files

Source code

Calling Sequence

usage: spatial_operators.py [-h] --operation OPERATION
                            [--spacing dlon [dlat ...]] [--interval {1,2,3}]
                            [--header HEADER] [--format FORMAT [FORMAT ...]]
                            [--date] [--verbose] [--mode MODE]
                            infiles [infiles ...] outfile

Positional Arguments

infiles

Input files

outfile

Output file

Named Arguments

--operation, -O

Possible choices: add, subtract, multiply, divide, mean, error, RMS, mask

Operation to run

--spacing, -S

Spatial resolution of output data

--interval, -I

Output grid interval

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

  • 2: (degree spacing/2)

--header

Number of header rows to skip in input ascii files

--format, -F

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

Input and output data format

--date, -D

Input and output files have date information

--verbose, -V

Verbose output of processing run

--mode, -M

Permission mode of directories and files