-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs/source/Compare-Diags.rst docs/source/Hemco-Formatting.rst docs/source/Single-Panel.rst docs/source/Six-Panel.rst docs/source/Test-Plot.rst - Fixed broken references and incorrect text - Now use more concise script location section - Changed "Calling Sequence" to "Usage" docs/source/Known-Bugs.rst - Edited the resolved bugs link so as to avoid a duplicate name warning docs/source/Plotting.rst docs/source/Guide-to-Useful-Capabilities.rst - Replace ref "plot-csl-and-czm" with separate refs "plot-csl" and "plot-czm" docs/source/ObsPack.rst - Added text docs/source/Plot-Timeseries.rst - Removed, as the example script no longer exists docs/source/index.rst - Removed ref to Plot-Timeseries.rst docs/source/conf.py - Bump version number up to 1.5.0 gcpy/community/create_obspack_coords_file.py - Moved here from gcpy/examples/diagnostics folder Signed-off-by: Bob Yantosca <yantosca@seas.harvard.edu>
- Loading branch information
Showing
14 changed files
with
774 additions
and
506 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,78 @@ | ||
.. _obspack: | ||
|
||
######################################################### | ||
Create an input file for the GEOS-Chem ObsPack diagnostic | ||
######################################################### | ||
############################################################## | ||
Create a coordinates file for the GEOS-Chem ObsPack diagnostic | ||
############################################################## | ||
|
||
This community contribution script generates a netCDF file containing | ||
longitude, latitude, and altitude values at which | ||
`GEOS-Chem ObsPack diagnostic output | ||
<https://geos-chem.readthedocs.io/en/latest/gcclassic-user-guide/obspack.html>`_ | ||
will be archived. | ||
|
||
Please reach out to the author directly if you have questions about | ||
using this script: | ||
|
||
+-----------------+---------------+ | ||
| Author | GitHub Handle | | ||
+=================+===============+ | ||
| Alli Moon | @alli-moon | | ||
+-----------------+---------------+ | ||
| Yuk Yun Chan | @yc-chan | | ||
+-----------------+---------------+ | ||
|
||
.. _obspack-code: | ||
|
||
=========== | ||
Source code | ||
=========== | ||
|
||
**Script location:** `gcpy/community/create_obspack_coords_file.py <https://github.com/geoschem/gcpy/blob/main/gcpy/community/create_obspack_coords_file.py>`_ | ||
|
||
.. _obspack-usage: | ||
|
||
===== | ||
Usage | ||
===== | ||
|
||
Navigate to a local directory where you will run the script. Then | ||
copy :file:`gcpy/community/create_obspack_coords_file.py` there: | ||
|
||
.. code-block:: console | ||
$ cd /path/to/my/local/directory | ||
$ cp /path/to/gcpy/gcpy/community/create_obspack_coords_file.py . | ||
Open :file:`create_obspack_coords_file.py` in your favorite editor and | ||
edit the configurable settings for your particular use case: | ||
|
||
.. code-block:: python | ||
# ================================================================== | ||
# Configurable settings -- edit for your own use case! | ||
DATASET_ID = 'GC-MODEL' | ||
OUTPUT_DIR = './' | ||
SAMPLING_DATES_SUMMER = pd.date_range( | ||
start='2022-05-31', | ||
end='2022-07-01', | ||
freq='d' | ||
) | ||
SAMPLING_DATES_WINTER = pd.date_range( | ||
start='2023-01-13', | ||
end='2023-2-13', | ||
freq='d' | ||
) | ||
SITE_LAT = 32.2644 | ||
SITE_LON = -64.8767 | ||
SITE_ALT = 0 | ||
ASSUMED_INLET_HEIGHT_ABOVE_GROUND = 30 # Unit:m | ||
# ================================================================== | ||
Once you have done this, you may run the script: | ||
|
||
.. code-block:: console | ||
$ python -m create_obspack_coords_file |
Oops, something went wrong.