|
1 | 1 | # Data Tutorials and User Services for the ASDC |
2 | 2 |
|
3 | | -This GitHub page serves as a comprehensive resource for end users |
4 | | -seeking guidance and instructions on |
5 | | -working with data from select missions that are archived and distributed by |
6 | | -the Atmospheric Science Data Center (ASDC). |
7 | | -Its aim is to enhance the knowledge and proficiency of data users, |
8 | | -enabling more effective usage of the valuable resources made available by ASDC. |
9 | | -Through this transfer of expertise from ASDC to users, we hope to |
10 | | -foster a collaborative environment that drives innovation and progress in space-related endeavors. |
11 | | - |
12 | | -**View the rendered page [here](https://nasa.github.io/ASDC_Data_and_User_Services/).** |
13 | | - |
14 | | -*This site is under active, open development. Stay tuned for more and ever-evolving content!* |
| 3 | +How-to guides, tutorials, and scripts for working with data from missions |
| 4 | +archived and distributed by NASA's |
| 5 | +[Atmospheric Science Data Center (ASDC)](https://www.earthdata.nasa.gov/centers/asdc-daac). |
| 6 | +The site covers CALIPSO, CERES, DSCOVR, MAIA, MISR, MOPITT, POWER, PREFIRE, |
| 7 | +SAGE III-ISS, STAQS, TEMPO, and TOLNet. |
| 8 | + |
| 9 | +**Browse the rendered site: <https://nasa.github.io/ASDC_Data_and_User_Services/>** |
| 10 | + |
| 11 | +*This site is under active, open development. Stay tuned for more and ever-evolving content!* |
| 12 | + |
| 13 | +## Getting started (contributors) |
| 14 | + |
| 15 | +You need [Python 3.10+](https://www.python.org/), |
| 16 | +[uv](https://docs.astral.sh/uv/), and |
| 17 | +[Quarto](https://quarto.org/docs/get-started/). |
| 18 | + |
| 19 | +```bash |
| 20 | +git clone https://github.com/nasa/ASDC_Data_and_User_Services.git |
| 21 | +cd ASDC_Data_and_User_Services |
| 22 | + |
| 23 | +uv sync # install Python dependencies |
| 24 | +pre-commit install # enable local quality checks on commit |
| 25 | +quarto preview # live-preview the site at localhost |
| 26 | +``` |
| 27 | + |
| 28 | +See the [Contributing Guide](https://nasa.github.io/ASDC_Data_and_User_Services/contributing.html) |
| 29 | +for notebook style and content guidelines. |
| 30 | + |
| 31 | +### Environment files |
| 32 | + |
| 33 | +This repo has two environment definitions. They serve different purposes: |
| 34 | + |
| 35 | +| File | Managed by | Purpose | |
| 36 | +|------|------------|---------| |
| 37 | +| `pyproject.toml` / `uv.lock` | `uv` | **Local development.** All packages needed to run every notebook. Use `uv sync` to install. | |
| 38 | +| `environment.yml` | conda (CI only) | **Site builds.** Minimal Jupyter kernel so Quarto can render pre-executed notebooks. You should not need this locally. | |
| 39 | + |
| 40 | +Quarto is configured with `freeze: true`, which means it never re-executes |
| 41 | +notebook code during a build. It converts the already-rendered `.ipynb` outputs |
| 42 | +straight to HTML. This keeps CI fast and avoids the need for data access |
| 43 | +credentials in the build environment. |
| 44 | + |
| 45 | +### Pre-commit hooks |
| 46 | + |
| 47 | +The pre-commit configuration runs on every commit: |
| 48 | + |
| 49 | +- **gitleaks** — secret detection |
| 50 | +- **ruff** — Python linting and formatting |
| 51 | +- **markdown-link-check** — broken link detection |
| 52 | +- **check-notebook-headers** — validates required sections (summary, prerequisites, author) |
| 53 | +- **check-notebook-imports** — cross-references imports against `pyproject.toml` (warn-only) |
| 54 | + |
| 55 | +See [`.git-hooks/README.md`](.git-hooks/README.md) for details on the custom |
| 56 | +notebook hooks. |
| 57 | + |
| 58 | +## Data files |
| 59 | + |
| 60 | +Notebooks should fetch data programmatically at runtime (e.g., via |
| 61 | +`earthaccess` or `harmony-py`) rather than committing data files to the |
| 62 | +repository. Large files such as `.nc`, `.hdf`, and `.h5` are not tracked |
| 63 | +by git and should stay that way. |
| 64 | + |
| 65 | +## Questions or issues? |
| 66 | + |
| 67 | +Open an [issue](https://github.com/nasa/ASDC_Data_and_User_Services/issues) or |
| 68 | +reach out via the [Earthdata Forum](https://forum.earthdata.nasa.gov/). |
0 commit comments