Scripts, originally developed by Lu Shen, to generate Tropomi smoothed fields for usage as scaled boundary conditions.
- Make sure you have run the GCClassic simulation for the time period you are creating boundary conditions for. The run directory can be found at /home/ubuntu/run_gc_13.3.3
- Make any changes necessary to the
boundary_condition_config.yml
file. This will likely include changing the default dates. - cd into
Step1_convert_GC
and run./template_archive.py
. This will create a number of pkl files in thedata_converted_BC
directory. Note:make_run.sh
is used for parallelising the creation of BC files. This is not yet supported on aws until we set up sbatch. - cd into
Step2_regrid_fast
and run./read_daily.py
. This will create aDaily_CH4.nc
file in theStep3_correct_background
directory. - cd into the
Step3_correct_background
directory and runRscript correct_final.R
. This will create the Bias corrections file for CH4:Bias_4x5_dk_2_updated.nc
. - cd into
Step4_write_boundary
and run./write_boundary.py
. If you have theupload_to_s3
setting set to true in your config file, the created boundary conditions will be uploaded to s3 in the config-specified output bucket.
Note: because tropomi data is hosted in a different aws region you will incur costs for downloading tropomi data.