Planetary Body Examples

Below are plots of supported planetary bodies in craterpy. Example crater lists and global imagery are available from craterpy.sample_data for plotting and testing purposes.

  • Image data are named <body>.tif (ex. sample_data["moon.tif"])

  • Crater data are named <body>_craters_km.csv (ex. sample_data["moon_craters_km.csv"])

Hide code cell content

import warnings
warnings.filterwarnings("ignore", "Skipping ROIs that cross pole or antimeridian*")
from craterpy import all_bodies, CraterDatabase, sample_data
import matplotlib.pyplot as plt
print("Supported planetary bodies:", all_bodies)
Supported planetary bodies: ['mercury', 'venus', 'moon', 'earth', 'mars', 'ceres', 'vesta', 'europa', 'ganymede', 'callisto', 'enceladus', 'tethys', 'dione', 'rhea', 'iapetus', 'pluto']
/home/docs/checkouts/readthedocs.org/user_builds/craterpy/checkouts/latest/craterpy/helper.py:20: TqdmExperimentalWarning: Using `tqdm.autonotebook.tqdm` in notebook mode. Use `tqdm.tqdm` instead to force console mode (e.g. in jupyter console)
  from tqdm.autonotebook import tqdm
for body in all_bodies:
    fname = f'{body}_craters_km.csv'
    if fname not in sample_data:
        continue
    cdb = CraterDatabase(sample_data[fname], body, units='km')
    print("Starting", body.capitalize(), "with CRS:", ":".join(cdb.data.crs.to_authority()))
    cdb.add_circles('Rim', 1)
    cdb.add_circles('Ejecta', 2.5)
    ax = cdb.plot(sample_data[f'{body}.tif'], "Rim")
    ax = cdb.plot_rois(sample_data[f'{body}.tif'], "Ejecta")
    plt.show()
Starting Mercury with CRS: IAU_2015:19900
_images/6df2ef389b1d04c8bec5321b61f1e81b94dd89d47b6257b9181c531678f868dc.png _images/c7e1f66ffac4b1d6e69849358b50182b5f113541f7c66cf162697fdbad6d7cf5.png
Starting Venus with CRS: IAU_2015:29900
_images/add8093ee285d99aac810b7e45815e66d0097fe56d88ebb5a0c79b8091ba176e.png _images/084979eb5b871dc196240b099c5297bbeb2fcdff020fd7b771b4b7de7a189aa3.png
Starting Moon with CRS: IAU_2015:30100
_images/694a523f443d45a02f29e73e06c3c2907de3e45fb5d0305ecb8274e6b68e8a98.png _images/6352bb904e56c97802df1d02a155e50635daa070a7c51d9ff05b9dee4edfae8a.png
Starting Mars with CRS: IAU_2015:49900
_images/1b84d3e4a4e9f17f6815c053b22f685ff27c881bca28f0417125f49ab739abce.png _images/f05a8e037f656115e97bb58dbeea0973f2917c392757bc3c6892854d97650cd0.png
Starting Ceres with CRS: IAU_2015:200000100
_images/e91eadbbe66597f8c03cecbb4ec19df8c502a7a5e396eb326c38f67ef61ba772.png _images/861682d2d923f747653b1f75163b0bf4e54ef331c418a6355f20e44e71d3e1f3.png
Starting Vesta with CRS: IAU_2015:200000400
_images/2b05938d75f082ddbb4a0d2296baa4f16c45f1ab482ee5529c1e55bba5d62676.png _images/315aa9736d37482936dd3226bf4c863c6bcc0ed9f99f8da982da4221e32a4196.png
Starting Europa with CRS: IAU_2015:50200
_images/550133f69e71fd04874a79ace9707bce7f5a7bd98d1b6ea0fc47893fd3ea97ce.png _images/cf7a6eb0e6fa6c1e18816b2d597da7c55b68afc125a56da2609fd582b24e8931.png
Starting Ganymede with CRS: IAU_2015:50300
_images/432766f9960afc07ff3fe09784a26b761beb812a8ccc49271958756858430abc.png _images/2eda10f5b98bca729dda4fc504840cb2fa2f7349ab2dde3a48b0094a30c30316.png
Starting Callisto with CRS: IAU_2015:50400
_images/4194fe8bd45c2f6185e8ec45862ca7223635536088fe117f56cdc21b7d064841.png _images/f186b9adb08a5b67cf0d416566b841f9f25d424be33cff3313fae2e185562eb8.png
Starting Enceladus with CRS: IAU_2015:60200
_images/fcb2b7dad0201c7703b3675e6fc4589afa6cb96945af996ccb4d242bbd5a9a1c.png _images/a6dbe097565884d74006e76426ff3da80d86bebcff14966334e72dfae1c4daa6.png
Starting Tethys with CRS: IAU_2015:60300
_images/b4735bccd582e494cb3298488e0af9a2d779f6bb336c9cc37c6cc8cf744b6e77.png _images/e5535e1492353402ef2f64387bcaf90ac978d339d06835f1b37a47ec85841b5e.png
Starting Dione with CRS: IAU_2015:60400
_images/02a5b83e872395105010a97ffb185209f020f07d93bd97cc5adcb7381c2e7491.png _images/e5de8e6da07b4511051f46ab7300e81174d3d464812fba3b89b88cc9b7595291.png
Starting Rhea with CRS: IAU_2015:60500
_images/2e2b9d32dd22bc7afcb36354655f4d3a498ddf2eafc393cad85ac99ce76c7f32.png _images/b602429607d09f62c78431c1a36122dc779c246917ebcc16435508825e743f00.png
Starting Iapetus with CRS: IAU_2015:60800
_images/58834b99949632b5530fc1c4ae83df5e6b65adfeca619730de93c4beb47f5213.png _images/015e69882067ce05fee3ea0783c62c579262c56b2e68df12e9d73e4f84829768.png
Starting Pluto with CRS: IAU_2015:99900
_images/9085726c261b0c341f3f6d647367f91ca7d53fa1db1efa3c2d088280e8d1639c.png _images/71fe860ffed682a1198872f76e57ff58ce83c090003b2a07bdb8095c27ebabeb.png