Craterpy simplifies the extraction and statistical analysis of impact craters in planetary datasets. It can:
Craterpy currently only supports simple cylindrical images and requires you to provide a table of crater locations and sizes (e.g. it isn't a crater detection program). See the example below!
Note: Craterpy is in alpha. We appreciate bug reports and feature requests on the issues board.
Craterpy in action:
python
import pandas as pd
from craterpy import dataset, stats
df = pd.DataFrame({'Name': ["Orientale", "Langrenus", "Compton"],
'Lat': [-19.9, -8.86, 55.9],
'Lon': [-94.7, 61.0, 104.0],
'Rad': [147.0, 66.0, 82.3]})
moon = dataset.CraterpyDataset("moon.tif")
stat_df = cs.ejecta_stats(df, moon, 4, ['mean', 'median', 'std'], plot=True)
python
stats_df.head()
New users should start with the Jupyter notebook tutorial for typical usage with examples. See also craterpy documentation on Read the Docs.
Note: This package currently only accepts image data in simple-cylindrical (Plate Caree) projection. If your data is in another projection, please reproject it to simple-cylindrical before importing it with craterpy. If you would like add reprojection functionality to craterpy, consider Contributing.
With pip:
bash
pip install craterpy
python -c "import craterpy; print(craterpy.__version__)"
In a new conda environment:
```bash
conda create -n craterpy python=3.9 conda activate craterpy
pip install craterpy python -c "import craterpy; print(craterpy.version)" ```
With git and poetry (for latest version & development):
```bash
$ cd ~ $ git clone https://github.com/cjtu/craterpy.git
$ cd craterpy
poetry config virtualenvs.create true --local poetry config virtualenvs.in-project true --local
$ poetry install
poetry version
$ poetry run jupyter notebook
```
On Windows (see rasterio installation for Windows):
```bash
pip install GDAL-X.Y.Z-...-win.whl pip install rasterio-X.Y.Z-...-win.whl python -c "import rasterio" pip install craterpy python -c "import craterpy; print(craterpy.version)" ```
Trouble installing craterpy? Let us know on the issues board.
Craterpy requires python >3.7.7 and is tested on Ubuntu and OS X. It's core dependencies are:
Full API documentation is available at readthedocs.
There are two major ways you can help improve craterpy:
You can report bugs or request new features on the issues board.
Want to fix a bug / implement a feature / fix some documentation? We welcome pull requests from all new contributors! You (yes you!) can help us make craterpy as good as it can be! See CONTRIBUTING.rst for details on how to get started - first time GitHub contributors welcome - and encouraged!
Craterpy is MIT Licenced and is free to use with attribution. Citation information can be found here.
If you have comments/question/concerns or just want to get in touch, you can email Christian at [email protected] or follow @TaiUdovicic on Twitter.
Bumps markdown-it-py from 2.1.0 to 2.2.0.
Sourced from markdown-it-py's releases.
v2.2.0
What's Changed
- ⬆️ UPGRADE: Allow linkify-it-py v2 by
@hukkin
in #218- 🐛 FIX: CVE-2023-26303 by
@chrisjsewell
in #246- 🐛 FIX: CLI crash on non-utf8 character by
@chrisjsewell
in #247- 📚 DOCS: Update the example by
@redstoneleo
in #229- 📚 DOCS: Add section about markdown renderer by
@holamgadol
in #227- 🔧 Create SECURITY.md by
@chrisjsewell
in #248- 🔧 MAINTAIN: Update mypy's additional dependencies by
@hukkin
in #217- Fix typo by
@jwilk
in #230- 🔧 Bump GH actions by
@chrisjsewell
in #244- 🔧 Update benchmark pkg versions by
@chrisjsewell
in #245New Contributors
Thanks to 🎉
@jwilk
made their first contribution in #230@holamgadol
made their first contribution in #227@redstoneleo
made their first contribution in #229Full Changelog: https://github.com/executablebooks/markdown-it-py/compare/v2.1.0...v2.2.0
Sourced from markdown-it-py's changelog.
2.2.0 - 2023-02-22
What's Changed
- ⬆️ UPGRADE: Allow linkify-it-py v2 by
@hukkin
in #218- 🐛 FIX: CVE-2023-26303 by
@chrisjsewell
in #246- 🐛 FIX: CLI crash on non-utf8 character by
@chrisjsewell
in #247- 📚 DOCS: Update the example by
@redstoneleo
in #229- 📚 DOCS: Add section about markdown renderer by
@holamgadol
in #227- 🔧 Create SECURITY.md by
@chrisjsewell
in #248- 🔧 MAINTAIN: Update mypy's additional dependencies by
@hukkin
in #217- Fix typo by
@jwilk
in #230- 🔧 Bump GH actions by
@chrisjsewell
in #244- 🔧 Update benchmark pkg versions by
@chrisjsewell
in #245New Contributors
Thanks to 🎉
@jwilk
made their first contribution in #230@holamgadol
made their first contribution in #227@redstoneleo
made their first contribution in #229Full Changelog: https://github.com/executablebooks/markdown-it-py/compare/v2.1.0...v2.2.0
73a0147
🚀 RELEASE: v2.2.0 (#250)53ca3e9
🐛 FIX: CLI crash on non-utf8 character (#247)6491bc2
📚 Add email to security section (#249)cf8b2d8
🔧 Create SECURITY.md (#248)ae03c61
🐛 FIX: CVE-2023-26303 (#246)2c93e0b
📚 DOCS: Update the example (#229)4670f0c
⬆️ UPGRADE: Allow linkify-it-py v2 (#218)032c742
📚 DOCS: Add section about markdown renderer (#227)c9f6856
🔧 Update benchmark pkg versions (#245)2160a3d
🔧 Bump GH actions (#244)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Bumps ipython from 8.4.0 to 8.10.0.
15ea1ed
release 8.10.0560ad10
DOC: Update what's new for 8.10 (#13939)7557ade
DOC: Update what's new for 8.10385d693
Merge pull request from GHSA-29gw-9793-fvw7e548ee2
Swallow potential exceptions from showtraceback() (#13934)0694b08
MAINT: mock slowest test. (#13885)8655912
MAINT: mock slowest test.a011765
Isolate the attack tests with setUp and tearDown methodsc7a9470
Add some regression tests for this changefd34cf5
Swallow potential exceptions from showtraceback()Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Bumps certifi from 2022.6.15 to 2022.12.7.
9e9e840
2022.12.07b81bdb2
2022.09.24939a28f
2022.09.14aca828a
2022.06.15.2de0eae1
Only use importlib.resources's new files() / Traversable API on Python ≥3.11 ...b8eb5e9
2022.06.15.147fb7ab
Fix deprecation warning on Python 3.11 (#199)b0b48e0
fixes #198 -- update link in licenseDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Bumps certifi from 2022.6.15 to 2022.12.7.
9e9e840
2022.12.07b81bdb2
2022.09.24939a28f
2022.09.14aca828a
2022.06.15.2de0eae1
Only use importlib.resources's new files() / Traversable API on Python ≥3.11 ...b8eb5e9
2022.06.15.147fb7ab
Fix deprecation warning on Python 3.11 (#199)b0b48e0
fixes #198 -- update link in licenseDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Bumps nbconvert from 6.5.0 to 6.5.1.
7471b75
Release 6.5.1c1943e0
Fix pre-commit8685e93
Fix tests0abf290
Run black and prettier418d545
Run test on 6.x branchbef65d7
Convert input to string prior to escape HTML0818628
Check input type before escapingb206470
GHSL-2021-1017, GHSL-2021-1020, GHSL-2021-1021a03cbb8
GHSL-2021-1026, GHSL-2021-102548fe71e
GHSL-2021-1024Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Bumps mistune from 0.8.4 to 2.0.3.
Sourced from mistune's releases.
Version 2.0.2
Fix
escape_url
via lepture/mistune#295Version 2.0.1
Fix XSS for image link syntax.
Version 2.0.0
First release of Mistune v2.
Version 2.0.0 RC1
In this release, we have a Security Fix for harmful links.
Version 2.0.0 Alpha 1
This is the first release of v2. An alpha version for users to have a preview of the new mistune.
Sourced from mistune's changelog.
Changelog
Here is the full history of mistune v2.
Version 2.0.4
Released on Jul 15, 2022
- Fix
url
plugin in<a>
tag- Fix
*
formattingVersion 2.0.3
Released on Jun 27, 2022
- Fix
table
plugin- Security fix for CVE-2022-34749
Version 2.0.2
Released on Jan 14, 2022
Fix
escape_url
Version 2.0.1
Released on Dec 30, 2021
XSS fix for image link syntax.
Version 2.0.0
Released on Dec 5, 2021
This is the first non-alpha release of mistune v2.
Version 2.0.0rc1
Released on Feb 16, 2021
Version 2.0.0a6
</tr></table>
... (truncated)
3f422f1
Version bump 2.0.3a6d4321
Fix asteris emphasis regex CVE-2022-347495638e46
Merge pull request #307 from jieter/patch-10eba471
Fix typo in guide.rst61e9337
Fix table plugin76dec68
Add documentation for renderer heading when TOC enabled799cd11
Version bump 2.0.2babb0cf
Merge pull request #295 from dairiki/bug.escape_urlfc2cd53
Make mistune.util.escape_url less aggressive3e8d352
Version bump 2.0.1Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Bump minimum python version to 3.8, update dependencies and docs
Update metadata
Improve CI, documentation and testing.
Fix project metadata.
Many changes in this version of craterpy: - This release removes the GDAL dependency which caused the package to be much more difficult to install. - Image I/O is now handled completely by rasterio. - The default installation method is now poetry which will hopefully also clear up dependency conflicts. - The build is now tested and passing on macOS and Ubuntu. - More tests were added. - Minor bug fixes.
Waning: There are some API breaking changes in this release! Most notable will be if your workflow accessed gdal attributes or methods through the CraterpyDataset wrapper. It now wraps the rasterio.DatasetReader so you will need to migrate your CraterpyDataset operations to the rasterio syntax (see Switching from GDAL bindings in the rasterio docs)
New craterpy release with some bug fixes and improvements
Original: Apr 8, 2021 Edited: May 21, 2021 to fix semantic versioning
planetary data-science python open-science