geoschem / geos-chem

GEOS-Chem "Science Codebase" repository. Contains GEOS-Chem science routines, run directory generation scripts, and interface code. This repository is used as a submodule within the GCClassic and GCHP wrappers, as well as in other modeling contexts (external ESMs).
http://geos-chem.org
Other
169 stars 165 forks source link

[FEATURE REQUEST] Add capability to save species database to file in run directory for input in GCPy #109

Closed msulprizio closed 5 years ago

msulprizio commented 5 years ago

Currently GCPy uses a species_database.json file to obtain species information (e.g. molecular weight) for use in generating emissions and mass tables for benchmarking. Instead of having two files containing this information (Headers/species_database_mod.F90 in GC and core/species_database.py in GCPy), it would be better to have GEOS-Chem save out this information to a file in the run directory that can be passed as input in GCPy. This would ensure you have the information for all species that you are trying to process in GCPy.

msulprizio commented 5 years ago

This can be done simultaneously with https://github.com/geoschem/geos-chem/issues/110

msulprizio commented 5 years ago

@yantosca wrote:

There is code to save out the species database from GC but it's commented out. Look for this in init_species_database, and uncomment those lines

    !-----------------------------------------------------------------------
    ! Print Species Database to JSON format
    ! NOTE: Comment this out unless you really need it!
    !CALL SpcData_To_JSON( am_I_Root, SpcData, RC )
    !STOP

If you run that in a benchmark simulation that should get all the species

msulprizio commented 5 years ago

Resolved in 7a169f7e2ffc69927f1f512c9550f59302999633