Download data from dry-run output
Once you have successfully executed a GEOS-Chem dry-run, you
can use the output from the dry-run (contained in the log.dryrun
file)
to download the data files that GEOS-Chem will need to perform the
corresponding “production” simulation. You may download from different
data repositories.
Important
Before you use the download_data.py
script, make sure to
initialize a Mamba or Conda environment with the relevant command
shown below:
$ mamba activate ENV-NAME # If using Mamba
$ conda activate ENV-NAME # If using Conda
Here ENV-NAME
is the name of your environment.
Also make sure that you have installed the PyYAML module to your
conda environment. PyYAML will allow the download_data.py
script to read certain configurable settings from a YAML file in
your run directory.
The Python environment for GCPy has all of the proper packages that you need to download data from a dry-run simulation. For more information, please see gcpy.readthedocs.io.
Choose a data portal
You can download input data from any of the portals listed below.
Portal |
S3 Explorer |
AWS CLI |
HTTP |
Bashdatacatalog |
Globus |
---|---|---|---|---|---|
GEOS-Chem Input Data |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
No |
No |
|
No |
No |
Yes |
No |
No |
Run the download_data.py
script on the dryrun log file
Navigate to your GEOS-Chem run directory where you executed the dry-run and type.
$ ./download_data.py log.dryrun PORTAL-NAME
where:
download_data.py
is the dry-run data download program (written in Python). It is included in each GEOS-Chem Classic run directory that you create.
log.dryrun
is the log file from your GEOS-Chem dry-run simulation.
PORTAL-NAME
specifies the data portal that you wish to download from. Allowed values are: Value
Downloads from portal
With this command
Via this method
geoschem+aws
aws s3 cp
AWS CLI
geoschem+http
wget
HTTP
nested+aws
aws s3 cp
AWS CLI
nested+http
wget
HTTP
rochester
wget
HTTP
For example, to download data from the GEOS-Chem Input Data portal using the AWS CLI download (which is faster than HTTP download), use this command:
$ ./download_data.py log.dryrun geoschem+s3
Note
You must have the AWS CLI (command-line interface) software installed on your system
before in order to use the geoschem+aws
or
nested+aws
options in the table listed above.
The download_data.py
program will generate a log of
unique data files (i.e. with all duplicate listings removed), which
looks similar to this:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!! LIST OF (UNIQUE) FILES REQUIRED FOR THE SIMULATION
!!! Start Date : 20190701 000000
!!! End Date : 20190701 010000
!!! Simulation : fullchem
!!! Meteorology : MERRA2
!!! Grid Resolution : 4.0x5.0
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
./HEMCO_Config.rc
./HEMCO_Config.rc.gmao_metfields
./HEMCO_Diagn.rc
./HISTORY.rc
./Restarts/GEOSChem.Restart.20190701_0000z.nc4 --> /home/ubuntu/ExtData/GEOSCHEM_RESTARTS/GC_14.5.0/GEOSChem.Restart.fullchem.20190701_0000z.nc4
./Restarts/HEMCO_restart.201907010000.nc
./geoschem_config.yml
/path/to/ExtData/CHEM_INPUTS/CLOUD_J/v2024-09/FJX_j2j.dat
/path/to/ExtData/CHEM_INPUTS/CLOUD_J/v2024-09/FJX_scat-aer.dat
/path/to/ExtData/CHEM_INPUTS/CLOUD_J/v2024-09/FJX_scat-cld.dat
/path/to/ExtData/CHEM_INPUTS/CLOUD_J/v2024-09/FJX_scat-ssa.dat
/path/to/ExtData/CHEM_INPUTS/CLOUD_J/v2024-09/FJX_spec.dat
/path/to/ExtData/CHEM_INPUTS/FastJ_201204/fastj.jv_atms_dat.nc
/path/to/ExtData/CHEM_INPUTS/Linoz_200910/Linoz_March2007.dat
/path/to/ExtData/CHEM_INPUTS/Olson_Land_Map_201203/Olson_2001_Drydep_Inputs.nc
/path/to/ExtData/CHEM_INPUTS/UCX_201403/NoonTime/Grid4x5/InitCFC_JN2O_01.dat
... etc ...
This name of this “unique” log file will be the same as the log file
with dryrun ouptut, with .unique
appended. In our above
example, we passed log.dryrun
to download_data.py
, so
the “unique” log file will be named log.dryrun.unique
. This
“unique” log file can be very useful for documentation purposes.
Skip download, but create log of unique files
If you wish to only produce the *log of unique data files without downloading any data, then type the following command from within your GEOS-Chem run directory:
$ ./download_data.py log.dryrun skip-download
or for short:
$ ./download_data.py log.dryrun skip
This can be useful if you already have the necessary data downloaded to your system but wish to create the log of unique files for documentation purposes (such as for benchmark simulations, etc.)