Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
philiplinden committed Nov 27, 2023
1 parent 2c55e31 commit df4a185
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 57 deletions.
44 changes: 22 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
[![CC BY 4.0][cc-by-shield]][cc-by] [![10.5281/zenodo.6025377][doi-shield]][doi]

This repository is a reproduction of [_Software for Simulating Lunar Surface Hydration Measurements for Multispectral Lidar at 3 µm_](./Earth%20and%20Space%20Science%20-%202022%20-%20Cremons.pdf)[^1]
using Python instead of Matlab. The goal is to reproduce the figures and results
from the data published by Cremons, et. al that accompanied their paper.

Reproduced figures and commentary are found in [repro/results.ipynb](repro/results.ipynb)
as a Jupyter Notebook running Python 3. Details about the code and environment
are found in [pyproject.toml](pyproject.toml)

This work is licensed under a
[Creative Commons Attribution 4.0 International License][cc-by].

[![CC BY 4.0][cc-by-image]][cc-by]

[^1]: Cremons, Daniel R., “Software for Simulating Lunar Surface Hydration Measurements for Multispectral Lidar at 3 µm”. Zenodo, Jul. 01, 2022. doi: [10.5281/zenodo.6025377](https://doi.org/10.1029/2022EA002277).

[doi]: https://doi.org/10.1029/2022EA002277
[doi-shield]: https://www.zenodo.org/badge/DOI/10.5281/zenodo.6025377.svg
[cc-by]: http://creativecommons.org/licenses/by/4.0/
[cc-by-image]: https://i.creativecommons.org/l/by/4.0/88x31.png
[cc-by-shield]: https://img.shields.io/badge/License-CC%20BY%204.0-lightgrey.svg
[![CC BY 4.0][cc-by-shield]][cc-by] [![10.5281/zenodo.6025377][doi-shield]][doi]

This repository is a reproduction of [_Software for Simulating Lunar Surface Hydration Measurements for Multispectral Lidar at 3 µm_](./Earth%20and%20Space%20Science%20-%202022%20-%20Cremons.pdf)[^1]
using Python instead of Matlab. The goal is to reproduce the figures and results
from the data published by Cremons, et. al that accompanied their paper.

Reproduced figures and commentary are found in [repro/results.ipynb](repro/results.ipynb)
as a Jupyter Notebook running Python 3. Details about the code and environment
are found in [pyproject.toml](pyproject.toml)

This work is licensed under a
[Creative Commons Attribution 4.0 International License][cc-by].

[![CC BY 4.0][cc-by-image]][cc-by]

[^1]: Cremons, Daniel R., “Software for Simulating Lunar Surface Hydration Measurements for Multispectral Lidar at 3 µm”. Zenodo, Jul. 01, 2022. doi: [10.5281/zenodo.6025377](https://doi.org/10.1029/2022EA002277).

[doi]: https://doi.org/10.1029/2022EA002277
[doi-shield]: https://www.zenodo.org/badge/DOI/10.5281/zenodo.6025377.svg
[cc-by]: http://creativecommons.org/licenses/by/4.0/
[cc-by-image]: https://i.creativecommons.org/l/by/4.0/88x31.png
[cc-by-shield]: https://img.shields.io/badge/License-CC%20BY%204.0-lightgrey.svg
62 changes: 34 additions & 28 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,28 +1,34 @@
[project]
name = "cremons-etal-2022"
version = "0.1.0"
description = """\
Python reproduction of Cremons, Daniel R., \
“Software for Simulating Lunar Surface Hydration \
Measurements for Multispectral Lidar at 3 µm”. \
Zenodo, Jul. 01, 2022. doi: 10.5281/zenodo.6025377. \
"""
requires-python = ">=3.8"
keywords = ["python", "nasa", "desci", "simulation", "lunar"]
authors = [
{ name = "Philip Linden", email = "phil@moondao.com" },
{ name = "Daniel R. Cremons" },
]
license = { text = "CC-BY 4.0" }
dependencies = ["notebook", "numpy>=1.20.0", "pandas", "scipy", "matplotlib"]

[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[tool.ruff]
line-length = 80

[tool.ruff.format]
# use single quotes for non-triple quote strings.
quote-style = "single"
[project]
name = "cremons-etal-2022"
version = "0.1.0"
description = """\
Python reproduction of Cremons, Daniel R., \
“Software for Simulating Lunar Surface Hydration \
Measurements for Multispectral Lidar at 3 µm”. \
Zenodo, Jul. 01, 2022. doi: 10.5281/zenodo.6025377. \
"""
requires-python = "3.11"
keywords = ["python", "nasa", "desci", "simulation", "lunar"]
authors = [
{ name = "Philip Linden", email = "phil@moondao.com" },
{ name = "Daniel R. Cremons" },
]
license = { text = "CC-BY 4.0" }
dependencies = [
"notebook==7.0.6",
"numpy>=1.20.0",
"pandas==2.1.2",
"scipy==1.11.3",
"matplotlib==3.8.1"
]

[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[tool.ruff]
line-length = 80

[tool.ruff.format]
# use single quotes for non-triple quote strings.
quote-style = "single"
25 changes: 18 additions & 7 deletions repro/results.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -665,13 +665,6 @@
" ssa_MORB, water_ppm, hydration_levels.tolist())\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 16,
Expand Down Expand Up @@ -761,6 +754,24 @@
" linewidth=1,\n",
")\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Great, our results match the manuscript!\n",
"\n",
"This interpolation of MORB glass spectra with varying total water abundance allows us to estimate the reflectance of a mixture across the whole range of hydration that we interpolated across, and we have reasonable confidence that it is representative of actual MORB spectra."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Spectral Mixing\n",
"\n",
"todo"
]
}
],
"metadata": {
Expand Down

0 comments on commit df4a185

Please sign in to comment.