:orphan:
Examples
========
.. raw:: html
.. thumbnail-parent-div-open
.. thumbnail-parent-div-close
.. raw:: html
Get System Ready
----------------
The first step to running examples is to prepare the computer on. The examples
can be run on Linux, Mac (OS X), or Windows machines. Some of the instructions
will assume you are in a terminal (Linux or Mac), but can be adapted to Windows
Command Prompt or PowerShell.
Steps:
1. Download examples folder.
2. Setup a python version
* Either with a system Python
* Or mamba.
3. Get CAMx tutorial files.
Once you have done all these steps, you should will be ready to run example
scripts. The scripts use file paths to "point" to files assuming a relative
folder structure. Each python script (eg, `run_gridemiss_01_perturb.py`)
will be run using python from within its folder (eg, `examples/gridemiss/`).
So, it is important that the folder structure is as expected or you edit
the paths in the scripts.
So, if you were done preparing the system (steps 1-3), you would run an
example script like this on Linux or Mac:
.. code::
cd ~
cd examples/gridemiss
python run_gridemiss_01_perturb.py
Or Windows PowerShell
.. code::
cd ~
cd examples/gridemiss
py.exe run_gridemiss_01_perturb.py
As an alternative, you can run these script by pasting sections of them into an
interactive Python console. For example, on Linux/Mac:
.. code::
cd ~/examples/gridemiss
python
>>> # paste commands here
Or in Windows PowerShell:
.. code::
cd ~/examples/gridemiss
py.exe
>>> # paste commands here
Remember, this will not work until you complete the preparation steps:
1. Getting the examples folder done in `Get Examples Folder`
2. Preparing the python executable is described in the `Preparing Python Environment` (or in the `Using Mamba to get Python`).
3. Getting the CAMx tutorial data is described in the `Getting CAMx Files` example.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /auto_examples/prep/images/thumb/sphx_glr_ex_prep_01_examples_thumb.png
:alt:
:doc:`/auto_examples/prep/ex_prep_01_examples`
.. raw:: html
Get Examples Folder
.. raw:: html
.. only:: html
.. image:: /auto_examples/prep/images/thumb/sphx_glr_ex_prep_02_setup_thumb.png
:alt:
:doc:`/auto_examples/prep/ex_prep_02_setup`
.. raw:: html
Preparing Python Environment
.. raw:: html
.. only:: html
.. image:: /auto_examples/prep/images/thumb/sphx_glr_ex_prep_03_mamba_thumb.png
:alt:
:doc:`/auto_examples/prep/ex_prep_03_mamba`
.. raw:: html
Using Mamba to get Python
.. raw:: html
.. only:: html
.. image:: /auto_examples/prep/images/thumb/sphx_glr_ex_prep_04_downloadcamx_thumb.png
:alt:
:doc:`/auto_examples/prep/ex_prep_04_downloadcamx`
.. raw:: html
Getting CAMx Files
.. thumbnail-parent-div-close
.. raw:: html
Gridded Emission Examples
-------------------------
There are currently two gridded emission examples:
* Scale gridded emissions across the whole domain.
* Scale gridded emissions in a specific region.
*Caveat*:
The "specific region" can be modified to be very specific, but has limits.
The examples work from emissions that have already been gridded, speciated,
and often merged across many "sectors." When trying to make very specific
updates (e.g, a single SCC), sometimes this approach will fall short.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /auto_examples/gridemiss/images/thumb/sphx_glr_run_gridemiss_01_perturb_thumb.png
:alt:
:doc:`/auto_examples/gridemiss/run_gridemiss_01_perturb`
.. raw:: html
Domain-wide Gridded Emission Scaling
.. raw:: html
.. only:: html
.. image:: /auto_examples/gridemiss/images/thumb/sphx_glr_run_gridemiss_02_perturbbox_thumb.png
:alt:
:doc:`/auto_examples/gridemiss/run_gridemiss_02_perturbbox`
.. raw:: html
Region-specific Gridded Emission Scaling
.. thumbnail-parent-div-close
.. raw:: html
Point Source Emission Examples
------------------------------
There are currently two point source examples:
* Make a single representative source file.
* Perturb a facilities based on latitude/longitude.
*Caveat*:
These point source examples can be adapted to do many things, but there are
limitations. For example, sometimes "point source emissions" are split between
the amount subject to plume rise and the rest may be merged with the gridded.
In that case, scaling the point source file is not equivalent to scaling a
facility.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /auto_examples/ptsrce/images/thumb/sphx_glr_run_ptsrce_01_singlesource_thumb.png
:alt:
:doc:`/auto_examples/ptsrce/run_ptsrce_01_singlesource`
.. raw:: html
Create a Hypothetical Source
.. raw:: html
.. only:: html
.. image:: /auto_examples/ptsrce/images/thumb/sphx_glr_run_ptsrce_02_editlonlatbox_thumb.png
:alt:
:doc:`/auto_examples/ptsrce/run_ptsrce_02_editlonlatbox`
.. raw:: html
Modify a Selected Source
.. thumbnail-parent-div-close
.. raw:: html
Rerun CAMx
----------
- Edit run script to use edited emission files.
- Run CAMx as you normally would.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /auto_examples/interlude/images/thumb/sphx_glr_ex_camxrerun_thumb.png
:alt:
:doc:`/auto_examples/interlude/ex_camxrerun`
.. raw:: html
Rerun CAMx with Updated Emissions
.. thumbnail-parent-div-close
.. raw:: html
Model Performance Evaluation
----------------------------
There are currently two model performance examples. These are meant to be
instructive and do not cover all possibilities. These examples use EPA's
RSIG to aquire AirNow or AQS observations, which is useful for rapid
evaluation and retrospective evalaution.
* Compare CAMx to hourly NO2.
* Compare CAMx to Ozone Maximum Daily 8-hour Average.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /auto_examples/mpe/images/thumb/sphx_glr_run_mpe_01_no2_thumb.png
:alt:
:doc:`/auto_examples/mpe/run_mpe_01_no2`
.. raw:: html
Compare Model to Hourly Observations
.. raw:: html
.. only:: html
.. image:: /auto_examples/mpe/images/thumb/sphx_glr_run_mpe_02_o3mda8_thumb.png
:alt:
:doc:`/auto_examples/mpe/run_mpe_02_o3mda8`
.. raw:: html
Compare Model to Daily MDA8 Observations
.. thumbnail-parent-div-close
.. raw:: html
Satellite Comparison
--------------------
There are currently two satellite processing examples.
* OMI NO2 comparison without updating the model prior, and
* TropOMI NO2 comparison with an updated model prior.
Satellite NO2 use modeled NO2 (eg, GMI or TM5) to quantify the vertical
distribution of NO2, which allows for a quantitative translation from
measurements with differential vertical sensitivity to a best estimate
assuming equal sensitivity. Using your own model as the vertical
distribution ensures an apples to apples comparison.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /auto_examples/satellite/images/thumb/sphx_glr_run_satellite_01_simpleomi_thumb.png
:alt:
:doc:`/auto_examples/satellite/run_satellite_01_simpleomi`
.. raw:: html
Simple OMI
.. raw:: html
.. only:: html
.. image:: /auto_examples/satellite/images/thumb/sphx_glr_run_satellite_02_tropomiak_thumb.png
:alt:
:doc:`/auto_examples/satellite/run_satellite_02_tropomiak`
.. raw:: html
Pair CAMx with TropOMI NO2
.. thumbnail-parent-div-close
.. raw:: html
Making CAMx Maps
----------------
- Compare originally run CAMx to new run with new emissions.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /auto_examples/maps/images/thumb/sphx_glr_run_maps_01_compare_thumb.png
:alt:
:doc:`/auto_examples/maps/run_maps_01_compare`
.. raw:: html
Compare Two CAMx Runs
.. thumbnail-parent-div-close
.. raw:: html
.. toctree::
:hidden:
:includehidden:
/auto_examples/prep/index.rst
/auto_examples/gridemiss/index.rst
/auto_examples/ptsrce/index.rst
/auto_examples/interlude/index.rst
/auto_examples/mpe/index.rst
/auto_examples/satellite/index.rst
/auto_examples/maps/index.rst
.. only:: html
.. container:: sphx-glr-footer sphx-glr-footer-gallery
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download all examples in Python source code: auto_examples_python.zip `
.. container:: sphx-glr-download sphx-glr-download-jupyter
:download:`Download all examples in Jupyter notebooks: auto_examples_jupyter.zip `
.. only:: html
.. rst-class:: sphx-glr-signature
`Gallery generated by Sphinx-Gallery `_