grace_date

  • Reads GRACE/GRACE-FO index file from podaac_cumulus.py or gfz_isdc_grace_ftp.py

  • Parses dates of each GRACE/GRACE-FO file and assigns the month number

  • Creates an index of dates for GRACE/GRACE-FO files

Calling Sequence

from gravity_toolkit.grace_date import grace_date
grace_files = grace_date(base_dir, PROC=PROC, DREL=DREL, DSET=DSET)

Source code

gravity_toolkit.grace_date(base_dir, PROC='', DREL='', DSET='', OUTPUT=True, MODE=509)[source]

Reads index file containing GRACE/GRACE-FO/Swarm data files

Parses dates of each GRACE/GRACE-FO file and assigns the month number

Creates an index of dates for GRACE/GRACE-FO files

Parameters:
base_dir: str

Working data directory

PROC: str, default ‘’

Data processing center or satellite mission

  • 'CSR': University of Texas Center for Space Research

  • 'GFZ': German Research Centre for Geosciences (GeoForschungsZentrum)

  • 'JPL': Jet Propulsion Laboratory

  • 'CNES': French Centre National D’Etudes Spatiales

  • 'GRAZ': Institute of Geodesy from GRAZ University of Technology

  • 'COSTG': Combination Service for Time-variable Gravity Fields

  • 'Swarm': Time-variable gravity data from Swarm satellites

  • 'GRGS': CNES Groupe de Recherche de Geodesie Spatiale

DREL: str, default ‘’

GRACE/GRACE-FO/Swarm data release

DSET: str, default ‘’

GRACE/GRACE-FO/Swarm dataset

  • 'GAA': non-tidal atmospheric correction

  • 'GAB': non-tidal oceanic correction

  • 'GAC': combined non-tidal atmospheric and oceanic correction

  • 'GAD': ocean bottom pressure product

  • 'GSM': corrected monthly static gravity field product

OUTPUT: bool, default True

create index file of dates for GRACE/GRACE-FO data

MODE: oct, default 0o775

Permission mode of directories and files

Returns:
output_files: dict

dictionary of GRACE/GRACE-FO files indexed by month