Skip to content

Commit

Permalink
Merge pull request #17 from nasa/feature/issue-16-move-not-yet-comple…
Browse files Browse the repository at this point in the history
…te-tutorials-into-an-in-development-subdirectory

reorganize and revise presentation of notebooks in quarto-rendered page
  • Loading branch information
danielfromearth authored Jan 31, 2025
2 parents 80f8618 + becccf3 commit 668bfe7
Show file tree
Hide file tree
Showing 82 changed files with 9,125 additions and 8,548 deletions.
139 changes: 139 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
/.quarto/
.html
_site/*
.idea/*

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Pycharm stuff:
.idea/

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/
/notebooks/temp_check.ipynb
/api_diagram.dio

# Mac Finder
.DS_Store
39 changes: 0 additions & 39 deletions CALIPSO/CALIPSO_Ozone_Number_Density.py

This file was deleted.

Binary file not shown.
Binary file removed CALIPSO/NYC.PNG
Binary file not shown.
185 changes: 185 additions & 0 deletions CALIPSO/how_to_plot_ozone_number_densities.ipynb

Large diffs are not rendered by default.

118 changes: 0 additions & 118 deletions DSCOVR/DSCOVR_EPIC_L2_TO3

This file was deleted.

Binary file removed DSCOVR/DSCOVR_EPIC_L2_TO3_03_20210402092724_03.png
Binary file not shown.
1 change: 0 additions & 1 deletion DSCOVR/DSCOVR_EPIC_L4_TrO3_vs_Pandora.readme

This file was deleted.

13 changes: 0 additions & 13 deletions DSCOVR/EPIC_L2_readme

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -519,11 +519,11 @@ def regress_0intercept(x, y):
print(EPIC_link)
EPIC_fname = EPIC_link.split('/')[-1]
downloaded_files = earthaccess.download(EPIC_link,
local_path='.')
local_path='../../_additional_scripts/DSCOVR')
# check if file exists in the local directory,
# if not, try to download again, if second attampt to download fails, remove from the list
if not os.path.exists(EPIC_fname):
downloaded_files = earthaccess.download(EPIC_link, local_path='.')
downloaded_files = earthaccess.download(EPIC_link, local_path='../../_additional_scripts/DSCOVR')
if not os.path.exists(EPIC_fname): failed_links.append(EPIC_link)

for link in failed_links: EPIC_links.remove(link)
Expand Down
12 changes: 12 additions & 0 deletions DSCOVR/additional_drafts/DSCOVR_EPIC_L4_TrO3_vs_Pandora_readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
The code plots three different versions of total ozone column timeseries from
DSCOVR_EPIC_L4_TrO3 and Pandora data.
The code allows a user to select a Pandora station of interest and input the desired timeframe.
DSCOVR EPIC data covering the location of the selected Pandora station and timeframe are
downloaded on-the-fly by the `earthaccess` library.
Both Pandora and DSCOVR EPIC data are read to form timeseries.
The timeseries are first plotted without uncertainties of Pandora retrievals that are added
in the second version of the plot. This version is usually messy as there are many more
Pandora retrievals than that from EPIC.
For this reason, Pandora measurements (along with their uncertainties) are averaged (smoothed)
to the times of EPIC measurements. This makes two timeseries directly comparable.
The result is plotted in the third version of the graph.
17 changes: 17 additions & 0 deletions DSCOVR/additional_drafts/EPIC_L2_readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Codes `epic_l2_aer_timeseries_web.py`, `epic_l2_aer_timeseries.py`, `epic_l2_to3_timeseries_web.py`,
and `epic_l2_to3_timeseries.py`
read DSCOVR EPIC L2 aerosol and ozone products, re-grid the AOD and total ozone column to a regular grid,
and write timeseries of these variables at the positions of interest (POIs) to output files.
The user must create a file named `POI_list` containing POI(s) inforamtion.
An example of `POI_list` is provided.

'_web' versions take a month of interest as a command line argument (in the form of a string `'yyyymm'`),
check the ASDC direct download site for all available data files, download, and process them.
The files are then deleted;
however, the user can comment the delete statement out (see comments in the codes).
To be able to find and download data files,
the user must have an account at https://urs.earthdata.nasa.gov/
and use that account to create an access token and update variable token (see comments in the codes).

Versions without '_web' are driven by a user-created list of data files that user must have on a local disk.
The list is supplied to the codes as a command line argument.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 668bfe7

Please sign in to comment.