-
Notifications
You must be signed in to change notification settings - Fork 131
Downloader & cmorizer for NOAA GML surface flask trace gases #3847
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Hey @jlenh, |
I am still wondering if this should be included as is or if one could adapt the ESRL cmorizer mentioned in the related issue #3839. I haven't had the time to look into more detail but I think I can still adapt 2-3 things before this is ready for proper review. |
Description
This work adds a downloader and a formatter to ESMValTool to download and CMORize surface flask measurements of trace gases (CH4, CO2, and N2O) from the Global Monitoring Lab (GML) of NOAA. This work contributes to the ongoing development of a recipe and diagnostic to evaluate model output of surface concentrations of trace gases against the NOAA GML station measurements #3838.
The downloader retrieves event-based and monthly station averages of surface flask measurements of CH4, CO2 and N2O (see NOAA-GML) as an archive. Only the monthly averages of each station are CMORized here and are already computed following the methodology described on NOAA's GML website from the event-based files also present in the downloaded archive. The dataset archives are downloaded separately for each trace gas.
The formatter CMORizes the station monthly averages for a given trace gas by creating a NetCDF file containing all stations for which a location was available in the corresponding event files. The NetCDF file holds a time series for each station with the coordinates station_id, latitude and longitude. The general dataset architecture is taken from #3227 which implemented a CMORizer for time series of surface station observations. This allows the access to all stations data in a single file, speeding up loading times and processing operations. The general formatting functions are implemented in a separate file from which a single function is then imported and called in the respective trace gases formatter files.
Note: the CMORized variables produced here (
ch4s
,co2s
,n2os
) are not available in the CMOR table CMIP6 - Amon. However, in the case of model outputs, they need to be derived from their 3D counterparts (ch4
,co2
,n2o
, see #2611) which are present in the corresponding CMOR table.Before you get started
Checklist
It is the responsibility of the author to make sure the pull request is ready to review. The icons indicate whether the item will be subject to the 🛠 Technical or 🧪 Scientific review.
New or updated data reformatting script