Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

119 Commits

Folders and files

Repository files navigation

adjointModel

This is a case study to combine the source oriented and receptor source apportionment methods based on the measurements during Feb.7 to Feb.11, 2021.

Preparation

Now we have a long queue to download the meteo data from ECMWF. The precessing tools in Polyphemus need the meteo data saved by days. To shorten the queueing time, we download all the data for the calculation period once. Then use the grib_filter in the grib tools to split the whole data into days.

Install the grib api tools

sudo apt-get install libgrib-api-tools

Meteorological data preparation

  • Meteorological data: the adjoint model should run backward in time. Considering the measurements duration, we decided to prepare the meteorological data covering whole January until Feb. 12, 2021.

To split the file, in "rules_file"

write "[centre]_[date].grib";

Then, run the grib_filter to split the data file

grib_filter rules_file SingleLevel_20210101.grib

where SingleLevel_20210101.grib is the downloaded file

Xygrib can be used to overview the generated data files, and check the file information, including area and numbers of grid points.

  • fetchEcmwfData.ipynb: download raw meteo data from the ERA5 reanalysis product database of ECMWF
  • preProcessing.py: generate the model-ready ground data and meteorological data for Polair3d model.

Map data

  • Shapefiles: the shapefiles should be downloaded and extracted into the map folder.

Emission data preparation

  • Temporal profile: use the newly developed high resolution emission profiles in EDGAR. The hourly profile is generated by the combination of weekly factors and daily factors.
  • profiles_MEIC.m: generate the model ready emissions for five sectors (i.e. industry, residential combustion, traffic, power and agriculture) by combining three emission inventories, Beijing-Tianjing-Hebei fine emission inventory, MEIC emission inventory for China and MIX for Asia, which can be obtained from the MEIC database.

Run forward model

  • preProcessing.py: prepare the input data for the forward run.
  • configs: all the configurations files for the forward run.
  • changeConfigLog: the items that might be changed in the configs for new cases.

Run adjoint model

  • adjointFullRun.m: generate the meteorological data for the adjoint model, and run the adjoint model based on the time period of the measurement data
  • utils: common tools required by adjoint and other models.

Postprocessing

  • drawMap.m: generate maps for postprocessing.

Polyphemus modifications

scons meteo_parallel openmp=yes flag_openmp=mp

  • polair3dAdjoint.cpp: modified code for adjoint run, and it should be put in the 'processing/photochemistry' folder of the original Polyphemus codes.
  • luc-glcf.cpp: modified the bugs in the original code when preprocessing the land use data due to the exceeding the limits of the input file. It should be noted that 'Shift' is defined and used in the config, because the Starting index of LUCs. Usually: 0 for GLCF and 1 for GLC2000
  • Preprocessing_T639_meteo.cpp: new code to preprocess the meteo data from the T639 model.
  • included files: the modified codes in this folder should be put in the "/include/models" folder o the original Polyphemus codes.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages