starplot 0.12.5__tar.gz → 0.13.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of starplot might be problematic. Click here for more details.
- {starplot-0.12.5 → starplot-0.13.0}/.github/workflows/test.yml +7 -0
- {starplot-0.12.5 → starplot-0.13.0}/.gitignore +1 -0
- {starplot-0.12.5 → starplot-0.13.0}/Dockerfile +2 -8
- {starplot-0.12.5 → starplot-0.13.0}/Makefile +14 -5
- {starplot-0.12.5 → starplot-0.13.0}/PKG-INFO +7 -8
- {starplot-0.12.5 → starplot-0.13.0}/README.md +6 -7
- {starplot-0.12.5 → starplot-0.13.0}/docs/about.md +5 -1
- {starplot-0.12.5 → starplot-0.13.0}/docs/changelog.md +16 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/coming-soon.md +2 -3
- {starplot-0.12.5 → starplot-0.13.0}/docs/examples/map-canis-major.md +2 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/examples/map-orion.md +1 -1
- {starplot-0.12.5 → starplot-0.13.0}/docs/index.md +2 -1
- {starplot-0.12.5 → starplot-0.13.0}/docs/installation.md +13 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/reference-styling.md +4 -4
- {starplot-0.12.5 → starplot-0.13.0}/docs/tutorial/02.md +2 -1
- {starplot-0.12.5 → starplot-0.13.0}/docs/tutorial/05.md +2 -2
- {starplot-0.12.5 → starplot-0.13.0}/docs/tutorial/06.md +1 -1
- {starplot-0.12.5 → starplot-0.13.0}/docs/tutorial/08.md +1 -1
- {starplot-0.12.5 → starplot-0.13.0}/docs/tutorial.md +1 -1
- {starplot-0.12.5 → starplot-0.13.0}/examples/examples.py +10 -14
- starplot-0.13.0/examples/map_big.py +56 -0
- {starplot-0.12.5 → starplot-0.13.0}/examples/map_big_dipper.py +1 -8
- {starplot-0.12.5 → starplot-0.13.0}/examples/map_canis_major.py +5 -15
- {starplot-0.12.5 → starplot-0.13.0}/examples/map_comet_neowise.py +5 -5
- {starplot-0.12.5 → starplot-0.13.0}/examples/map_milky_way_stars.py +1 -1
- starplot-0.13.0/examples/map_orion.py +50 -0
- {starplot-0.12.5 → starplot-0.13.0}/examples/map_orthographic.py +6 -7
- {starplot-0.12.5 → starplot-0.13.0}/examples/map_sagittarius.py +18 -17
- {starplot-0.12.5 → starplot-0.13.0}/examples/optic_m45.py +2 -1
- {starplot-0.12.5 → starplot-0.13.0}/examples/optic_moon_saturn.py +3 -2
- {starplot-0.12.5 → starplot-0.13.0}/examples/optic_orion_nebula.py +2 -1
- {starplot-0.12.5 → starplot-0.13.0}/examples/star_chart_basic.py +3 -2
- {starplot-0.12.5 → starplot-0.13.0}/examples/star_chart_detail.py +3 -2
- {starplot-0.12.5 → starplot-0.13.0}/hash_checks/hashlock.yml +53 -53
- {starplot-0.12.5 → starplot-0.13.0}/hash_checks/map_checks.py +22 -8
- {starplot-0.12.5 → starplot-0.13.0}/hash_checks/optic_checks.py +18 -10
- {starplot-0.12.5 → starplot-0.13.0}/hash_checks/zenith_checks.py +3 -2
- {starplot-0.12.5 → starplot-0.13.0}/requirements.txt +3 -3
- {starplot-0.12.5 → starplot-0.13.0}/scripts/geopack.py +4 -1
- starplot-0.13.0/scripts/starnames.py +52 -0
- starplot-0.13.0/scripts/voronoi.py +163 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/__init__.py +1 -1
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/base.py +368 -57
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/callables.py +61 -7
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/data/bayer.py +1532 -3
- starplot-0.13.0/src/starplot/data/flamsteed.py +2682 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/data/library/constellation_borders_inv.gpkg +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/data/library/constellation_lines_hips.json +3 -1
- starplot-0.13.0/src/starplot/data/stars.py +478 -0
- starplot-0.13.0/src/starplot/horizon.py +398 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/map.py +144 -19
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/optic.py +26 -14
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/plotters/dsos.py +5 -1
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/plotters/stars.py +114 -13
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/styles/base.py +263 -156
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/styles/ext/antique.yml +45 -39
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/styles/ext/blue_dark.yml +32 -36
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/styles/ext/blue_light.yml +43 -25
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/styles/ext/blue_medium.yml +48 -44
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/styles/ext/cb_wong.yml +7 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/styles/ext/grayscale.yml +13 -7
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/styles/ext/grayscale_dark.yml +12 -4
- starplot-0.13.0/src/starplot/styles/ext/map.yml +9 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/styles/ext/nord.yml +32 -32
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/styles/ext/optic.yml +7 -5
- starplot-0.13.0/src/starplot/styles/fonts-library/gfs-didot/DESCRIPTION.en_us.html +9 -0
- starplot-0.13.0/src/starplot/styles/fonts-library/gfs-didot/GFSDidot-Regular.ttf +0 -0
- starplot-0.13.0/src/starplot/styles/fonts-library/gfs-didot/METADATA.pb +16 -0
- starplot-0.13.0/src/starplot/styles/fonts-library/gfs-didot/OFL.txt +94 -0
- starplot-0.13.0/src/starplot/styles/fonts-library/hind/DESCRIPTION.en_us.html +28 -0
- starplot-0.13.0/src/starplot/styles/fonts-library/hind/Hind-Bold.ttf +0 -0
- starplot-0.13.0/src/starplot/styles/fonts-library/hind/Hind-Light.ttf +0 -0
- starplot-0.13.0/src/starplot/styles/fonts-library/hind/Hind-Medium.ttf +0 -0
- starplot-0.13.0/src/starplot/styles/fonts-library/hind/Hind-Regular.ttf +0 -0
- starplot-0.13.0/src/starplot/styles/fonts-library/hind/Hind-SemiBold.ttf +0 -0
- starplot-0.13.0/src/starplot/styles/fonts-library/hind/METADATA.pb +58 -0
- starplot-0.13.0/src/starplot/styles/fonts-library/hind/OFL.txt +93 -0
- starplot-0.13.0/src/starplot/styles/fonts-library/inter/Inter-Black.ttf +0 -0
- starplot-0.13.0/src/starplot/styles/fonts-library/inter/Inter-BlackItalic.ttf +0 -0
- starplot-0.13.0/src/starplot/styles/fonts-library/inter/Inter-Bold.ttf +0 -0
- starplot-0.13.0/src/starplot/styles/fonts-library/inter/Inter-BoldItalic.ttf +0 -0
- starplot-0.13.0/src/starplot/styles/fonts-library/inter/Inter-ExtraBold.ttf +0 -0
- starplot-0.13.0/src/starplot/styles/fonts-library/inter/Inter-ExtraBoldItalic.ttf +0 -0
- starplot-0.13.0/src/starplot/styles/fonts-library/inter/Inter-ExtraLight.ttf +0 -0
- starplot-0.13.0/src/starplot/styles/fonts-library/inter/Inter-ExtraLightItalic.ttf +0 -0
- starplot-0.13.0/src/starplot/styles/fonts-library/inter/Inter-Italic.ttf +0 -0
- starplot-0.13.0/src/starplot/styles/fonts-library/inter/Inter-Light.ttf +0 -0
- starplot-0.13.0/src/starplot/styles/fonts-library/inter/Inter-LightItalic.ttf +0 -0
- starplot-0.13.0/src/starplot/styles/fonts-library/inter/Inter-Medium.ttf +0 -0
- starplot-0.13.0/src/starplot/styles/fonts-library/inter/Inter-MediumItalic.ttf +0 -0
- starplot-0.13.0/src/starplot/styles/fonts-library/inter/Inter-Regular.ttf +0 -0
- starplot-0.13.0/src/starplot/styles/fonts-library/inter/Inter-SemiBold.ttf +0 -0
- starplot-0.13.0/src/starplot/styles/fonts-library/inter/Inter-SemiBoldItalic.ttf +0 -0
- starplot-0.13.0/src/starplot/styles/fonts-library/inter/Inter-Thin.ttf +0 -0
- starplot-0.13.0/src/starplot/styles/fonts-library/inter/Inter-ThinItalic.ttf +0 -0
- starplot-0.13.0/src/starplot/styles/fonts-library/inter/LICENSE.txt +92 -0
- starplot-0.13.0/src/starplot/styles/fonts.py +15 -0
- starplot-0.13.0/src/starplot/styles/markers.py +308 -0
- {starplot-0.12.5 → starplot-0.13.0}/tutorial/tutorial_02.py +2 -1
- {starplot-0.12.5 → starplot-0.13.0}/tutorial/tutorial_03.py +9 -5
- {starplot-0.12.5 → starplot-0.13.0}/tutorial/tutorial_04.py +8 -10
- {starplot-0.12.5 → starplot-0.13.0}/tutorial/tutorial_05.py +2 -2
- starplot-0.13.0/tutorial/tutorial_06.py +67 -0
- {starplot-0.12.5 → starplot-0.13.0}/tutorial/tutorial_07.py +7 -3
- {starplot-0.12.5 → starplot-0.13.0}/tutorial/tutorial_08.py +1 -0
- starplot-0.12.5/examples/map_big.py +0 -37
- starplot-0.12.5/examples/map_orion.py +0 -53
- starplot-0.12.5/src/starplot/data/stars.py +0 -157
- starplot-0.12.5/src/starplot/styles/ext/map.yml +0 -9
- starplot-0.12.5/src/starplot/styles/markers.py +0 -107
- starplot-0.12.5/tutorial/tutorial_06.py +0 -64
- {starplot-0.12.5 → starplot-0.13.0}/.dockerignore +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/.github/FUNDING.yml +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/.github/workflows/docs.yml +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/.github/workflows/release.yml +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/CODE_OF_CONDUCT.md +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/CONTRIBUTING.md +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/LICENSE +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/css/extra.css +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/custom/main.html +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/data/.keep +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/data-sources.md +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/examples/map-big-dipper.md +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/examples/map-big.md +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/examples/map-comet-neowise.md +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/examples/map-milky-way-stars.md +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/examples/map-orthographic.md +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/examples/map-sagittarius.md +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/examples/optic-m45.md +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/examples/optic-moon-saturn.md +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/examples/optic-orion.md +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/examples/optic-solar-eclipse.md +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/examples/star-chart-basic.md +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/examples/star-chart-detail.md +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/examples.md +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/images/banner.png +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/images/banner.svg +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/images/banner.vectornator +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/images/celestial-globe.svg +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/images/examples/.keep +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/images/favicon.png +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/images/favicon.svg +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/images/logo.png +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/images/logo.svg +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/images/logo.vectornator +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/images/logo2.png +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/images/logo2.vectornator +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/images/logo500.png +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/images/mono.png +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/images/mono.svg +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/images/star.svg +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/images/tutorial/.keep +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/license.md +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/reference-callables.md +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/reference-data.md +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/reference-mapplot.md +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/reference-models.md +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/reference-ongc.md +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/reference-opticplot.md +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/reference-selecting-objects.md +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/robots.txt +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/tutorial/01.md +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/tutorial/03.md +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/tutorial/04.md +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/tutorial/07.md +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/docs/tutorial/09.md +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/examples/optic_solar_eclipse.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/hash_checks/__init__.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/hash_checks/data/.keep +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/hash_checks/hashio.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/hash_checks/template.html +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/mkdocs.yml +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/pyproject.toml +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/requirements-dev.txt +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/scripts/constellation_hips.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/scripts/download_cons.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/scripts/ecliptic.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/scripts/gallery.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/scripts/gpack_constellations.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/scripts/hip.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/scripts/hip_parquet.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/scripts/ipy.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/scripts/moonphases.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/scripts/ongc_docdata.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/scripts/ongc_geopack.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/data/__init__.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/data/bigsky.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/data/constellations.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/data/dsos.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/data/ecliptic.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/data/library/constellation_lines_inv.gpkg +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/data/library/constellations.gpkg +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/data/library/constellations_hip.fab +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/data/library/de421_2001.bsp +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/data/library/milkyway.gpkg +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/data/library/milkyway_inv.gpkg +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/data/library/ongc.gpkg.zip +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/data/library/stars.bigsky.mag11.parquet +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/data/library/stars.hipparcos.parquet +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/data/messier.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/data/prep/__init__.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/data/prep/constellations.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/data/prep/dsos.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/data/prep/utils.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/data/utils.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/geod.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/mixins.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/models/__init__.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/models/base.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/models/constellation.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/models/dso.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/models/geometry.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/models/moon.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/models/objects.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/models/planet.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/models/star.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/models/sun.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/optics.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/plotters/__init__.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/projections.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/styles/__init__.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/styles/ext/color_print.yml +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/styles/extensions.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/styles/helpers.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/src/starplot/utils.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/tests/__init__.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/tests/data/.keep +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/tests/test_constellations.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/tests/test_data.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/tests/test_map.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/tests/test_models.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/tests/test_optic.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/tests/test_stars.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/tests/test_styles.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/tests/test_utils.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/tests/utils.py +0 -0
- {starplot-0.12.5 → starplot-0.13.0}/tutorial/build.py +0 -0
|
@@ -49,3 +49,10 @@ jobs:
|
|
|
49
49
|
- uses: actions/checkout@v4
|
|
50
50
|
- name: Run Tests - Python 3.12
|
|
51
51
|
run: make test-3.12 CI=true
|
|
52
|
+
# Python 3.13 not supported yet, needs investigation!
|
|
53
|
+
# test-python-3-13:
|
|
54
|
+
# runs-on: ubuntu-22.04
|
|
55
|
+
# steps:
|
|
56
|
+
# - uses: actions/checkout@v4
|
|
57
|
+
# - name: Run Tests - Python 3.13
|
|
58
|
+
# run: make test-3.13 CI=true
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
ARG PYTHON_VERSION=3.11.
|
|
1
|
+
ARG PYTHON_VERSION=3.11.11
|
|
2
2
|
FROM python:${PYTHON_VERSION}-bookworm AS base
|
|
3
3
|
|
|
4
4
|
WORKDIR /starplot
|
|
5
5
|
|
|
6
|
+
# Install required system libraries (GEOS + GDAL)
|
|
6
7
|
RUN apt-get clean && apt-get update -y && apt-get install -y libgeos-dev libgdal-dev
|
|
7
8
|
|
|
8
|
-
# Install fonts
|
|
9
|
-
# not required, but make the maps look better (especially greek letters)
|
|
10
|
-
RUN mkdir -p /usr/share/fonts/truetype
|
|
11
|
-
RUN wget https://github.com/google/fonts/raw/main/ofl/gfsdidot/GFSDidot-Regular.ttf -P /tmp/fonts
|
|
12
|
-
RUN install -m644 /tmp/fonts/*.ttf /usr/share/fonts/truetype/
|
|
13
|
-
RUN fc-cache -f
|
|
14
|
-
|
|
15
9
|
# ---------------------------------------------------------------------
|
|
16
10
|
FROM base as dev
|
|
17
11
|
|
|
@@ -22,7 +22,7 @@ DOCKER_RUN_PYTHON_TEST=docker run --rm $(DR_ARGS) -v $(shell pwd):/starplot star
|
|
|
22
22
|
export PYTHONPATH=./src/
|
|
23
23
|
|
|
24
24
|
# ------------------------------------------------------------------
|
|
25
|
-
build: PYTHON_VERSION=3.11.
|
|
25
|
+
build: PYTHON_VERSION=3.11.11
|
|
26
26
|
build: DOCKER_BUILD_ARGS=-t starplot-dev
|
|
27
27
|
build:
|
|
28
28
|
touch -a .env
|
|
@@ -82,26 +82,32 @@ version:
|
|
|
82
82
|
# ------------------------------------------------------------------
|
|
83
83
|
# Python version testing
|
|
84
84
|
# ------------------------------------------------------------------
|
|
85
|
-
test-3.9: PYTHON_VERSION=3.9.
|
|
85
|
+
test-3.9: PYTHON_VERSION=3.9.21
|
|
86
86
|
test-3.9:
|
|
87
87
|
$(DOCKER_BUILD_PYTHON)
|
|
88
88
|
$(DOCKER_RUN_PYTHON_TEST)
|
|
89
89
|
|
|
90
|
-
test-3.10: PYTHON_VERSION=3.10.
|
|
90
|
+
test-3.10: PYTHON_VERSION=3.10.16
|
|
91
91
|
test-3.10:
|
|
92
92
|
$(DOCKER_BUILD_PYTHON)
|
|
93
93
|
$(DOCKER_RUN_PYTHON_TEST)
|
|
94
94
|
|
|
95
|
-
test-3.11: PYTHON_VERSION=3.11.
|
|
95
|
+
test-3.11: PYTHON_VERSION=3.11.11
|
|
96
96
|
test-3.11:
|
|
97
97
|
$(DOCKER_BUILD_PYTHON)
|
|
98
98
|
$(DOCKER_RUN_PYTHON_TEST)
|
|
99
99
|
|
|
100
|
-
test-3.12: PYTHON_VERSION=3.12.
|
|
100
|
+
test-3.12: PYTHON_VERSION=3.12.8
|
|
101
101
|
test-3.12:
|
|
102
102
|
$(DOCKER_BUILD_PYTHON)
|
|
103
103
|
$(DOCKER_RUN_PYTHON_TEST)
|
|
104
104
|
|
|
105
|
+
# Python 3.13 not supported yet!
|
|
106
|
+
test-3.13: PYTHON_VERSION=3.13.1
|
|
107
|
+
test-3.13:
|
|
108
|
+
$(DOCKER_BUILD_PYTHON)
|
|
109
|
+
$(DOCKER_RUN_PYTHON_TEST)
|
|
110
|
+
|
|
105
111
|
# ------------------------------------------------------------------
|
|
106
112
|
# Docs
|
|
107
113
|
docs-serve: DR_ARGS=-it -p 8000:8000
|
|
@@ -134,6 +140,9 @@ hip8:
|
|
|
134
140
|
scripts:
|
|
135
141
|
$(DOCKER_RUN) "python ./scripts/$(SCRIPT).py"
|
|
136
142
|
|
|
143
|
+
allsky:
|
|
144
|
+
$(DOCKER_RUN) "python ./scripts/temp/allsky.py"
|
|
145
|
+
|
|
137
146
|
clean:
|
|
138
147
|
rm -rf __pycache__
|
|
139
148
|
rm -rf venv
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: starplot
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.13.0
|
|
4
4
|
Summary: Star charts and maps of the sky
|
|
5
5
|
Keywords: astronomy,stars,charts,maps,constellations
|
|
6
6
|
Author-email: Steve Berardi <hello@steveberardi.com>
|
|
@@ -39,7 +39,7 @@ Project-URL: Source, https://github.com/steveberardi/starplot
|
|
|
39
39
|
|
|
40
40
|
**Starplot** is a Python library for creating star charts and maps of the sky.
|
|
41
41
|
|
|
42
|
-
- ⭐ **Zenith Plots** - showing the
|
|
42
|
+
- ⭐ **Zenith Plots** - showing the whole sky from a specific time/location
|
|
43
43
|
- 🗺️ **Map Plots** - including many map projections
|
|
44
44
|
- 🔭 **Optic Plots** - simulates what you'll see through an optic (e.g. binoculars, telescope) from a time/location
|
|
45
45
|
- 🪐 **Planets and Deep Sky Objects (DSOs)**
|
|
@@ -54,7 +54,7 @@ Project-URL: Source, https://github.com/steveberardi/starplot
|
|
|
54
54
|
*Map around the constellation Orion:*
|
|
55
55
|

|
|
56
56
|
|
|
57
|
-
*
|
|
57
|
+
*The Pleiades star cluster, as seen through a refractor telescope from a specific time and location:*
|
|
58
58
|

|
|
59
59
|
|
|
60
60
|
## Basic Usage
|
|
@@ -75,9 +75,9 @@ p = sp.MapPlot(
|
|
|
75
75
|
dt=datetime.now(tz).replace(hour=22),
|
|
76
76
|
style=sp.styles.PlotStyle().extend(
|
|
77
77
|
sp.styles.extensions.BLUE_MEDIUM,
|
|
78
|
-
sp.styles.extensions.ZENITH,
|
|
79
78
|
),
|
|
80
|
-
resolution=
|
|
79
|
+
resolution=3200,
|
|
80
|
+
autoscale=True,
|
|
81
81
|
)
|
|
82
82
|
p.constellations()
|
|
83
83
|
p.stars(mag=4.6)
|
|
@@ -105,12 +105,11 @@ https://discord.gg/WewJJjshFu
|
|
|
105
105
|
Contributing to Starplot is welcome and very much appreciated! Please see [here](CONTRIBUTING.md) for details.
|
|
106
106
|
|
|
107
107
|
## Coming Soon
|
|
108
|
+
- 🌄 Horizon plots
|
|
108
109
|
- 🌑 Planet moons
|
|
109
110
|
- ✴️ Custom markers
|
|
110
|
-
- 🚀 Plotting Optimizations
|
|
111
111
|
- ☄️ Comet model
|
|
112
|
-
-
|
|
113
|
-
- ⚖️ Better auto font-size adjustment
|
|
112
|
+
- 💫 Better constellation label placement
|
|
114
113
|
- 😄 🔭 Clear skies
|
|
115
114
|
|
|
116
115
|
See more details on the [Public Roadmap](https://trello.com/b/sUksygn4/starplot-roadmap)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
**Starplot** is a Python library for creating star charts and maps of the sky.
|
|
8
8
|
|
|
9
|
-
- ⭐ **Zenith Plots** - showing the
|
|
9
|
+
- ⭐ **Zenith Plots** - showing the whole sky from a specific time/location
|
|
10
10
|
- 🗺️ **Map Plots** - including many map projections
|
|
11
11
|
- 🔭 **Optic Plots** - simulates what you'll see through an optic (e.g. binoculars, telescope) from a time/location
|
|
12
12
|
- 🪐 **Planets and Deep Sky Objects (DSOs)**
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
*Map around the constellation Orion:*
|
|
22
22
|

|
|
23
23
|
|
|
24
|
-
*
|
|
24
|
+
*The Pleiades star cluster, as seen through a refractor telescope from a specific time and location:*
|
|
25
25
|

|
|
26
26
|
|
|
27
27
|
## Basic Usage
|
|
@@ -42,9 +42,9 @@ p = sp.MapPlot(
|
|
|
42
42
|
dt=datetime.now(tz).replace(hour=22),
|
|
43
43
|
style=sp.styles.PlotStyle().extend(
|
|
44
44
|
sp.styles.extensions.BLUE_MEDIUM,
|
|
45
|
-
sp.styles.extensions.ZENITH,
|
|
46
45
|
),
|
|
47
|
-
resolution=
|
|
46
|
+
resolution=3200,
|
|
47
|
+
autoscale=True,
|
|
48
48
|
)
|
|
49
49
|
p.constellations()
|
|
50
50
|
p.stars(mag=4.6)
|
|
@@ -72,12 +72,11 @@ https://discord.gg/WewJJjshFu
|
|
|
72
72
|
Contributing to Starplot is welcome and very much appreciated! Please see [here](CONTRIBUTING.md) for details.
|
|
73
73
|
|
|
74
74
|
## Coming Soon
|
|
75
|
+
- 🌄 Horizon plots
|
|
75
76
|
- 🌑 Planet moons
|
|
76
77
|
- ✴️ Custom markers
|
|
77
|
-
- 🚀 Plotting Optimizations
|
|
78
78
|
- ☄️ Comet model
|
|
79
|
-
-
|
|
80
|
-
- ⚖️ Better auto font-size adjustment
|
|
79
|
+
- 💫 Better constellation label placement
|
|
81
80
|
- 😄 🔭 Clear skies
|
|
82
81
|
|
|
83
82
|
See more details on the [Public Roadmap](https://trello.com/b/sUksygn4/starplot-roadmap)
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
{ align=right width="128" .off-glb }
|
|
2
2
|
|
|
3
|
-
**Starplot** is a Python library for creating star charts and maps. It lets you create zenith plots that show the whole sky from a time/place, map plots that show more detail of an area, and optic plots that simulate the field of view from a particular optic (e.g. telescope, binoculars, or a camera).
|
|
3
|
+
**Starplot** is a Python library for creating star charts and maps of the sky. It lets you create zenith plots that show the whole sky from a time/place, map plots that show more detail of an area, and optic plots that simulate the field of view from a particular optic (e.g. telescope, binoculars, or a camera).
|
|
4
|
+
|
|
5
|
+
👷 **Work In Progress** 🚧 Starplot is still very much a work in progress, and under active development. We try to follow [semantic versioning](https://semver.org/), which means that [_anything_ can change between versions before `1.0.0`](https://semver.org/#spec-item-4).
|
|
6
|
+
|
|
7
|
+
However, the Starplot API becomes more stable with each new version. We anticipate that version `1.0.0` is still at least a year away. The best way to help us get there faster is to [join as a contributor](https://github.com/steveberardi/starplot/blob/main/CONTRIBUTING.md) 😃 help is wanted and very much appreciated!
|
|
4
8
|
|
|
5
9
|
Join other starplotters on [Discord :fontawesome-brands-discord:{ .fg-primary }](https://discord.gg/WewJJjshFu)
|
|
6
10
|
|
|
@@ -1,4 +1,17 @@
|
|
|
1
|
+
## v0.13.x
|
|
2
|
+
|
|
3
|
+
- Adds a `scale` factor to control sizing of all objects/text
|
|
4
|
+
- Adds an "auto" option for label offsets from markers
|
|
5
|
+
- Adds constellation lines to label collision detection
|
|
6
|
+
- Adds a `gid` to plotted objects to make exported SVGs easier to work with in external applications (e.g. Inkscape)
|
|
7
|
+
- Adds Flamsteed numbers to stars
|
|
8
|
+
- Adds all star names from IAU
|
|
9
|
+
- Adds the standard symbol for planetary nebulae
|
|
10
|
+
- Adds a border size/color property to label styles
|
|
11
|
+
- Bundles fonts: Inter & GFS Didot
|
|
12
|
+
|
|
1
13
|
## v0.12.x
|
|
14
|
+
[Documentation](https://archives.starplot.dev/0.12.5/)
|
|
2
15
|
|
|
3
16
|
- Adds Shapely geometry to all sky object models, including support for `intersects` in `where` clauses
|
|
4
17
|
- Adds kwarg to map plots to allow custom clip paths
|
|
@@ -12,6 +25,9 @@
|
|
|
12
25
|
- [**v0.12.2**] Allows tuples for line styles on polygons and adds geometry kwarg to polygon function
|
|
13
26
|
- [**v0.12.3**] Fixes bug with constellation names
|
|
14
27
|
- [**v0.12.4**] Makes labels on markers default to None
|
|
28
|
+
- [**v0.12.5**]
|
|
29
|
+
- Fixes bug with a few constellation ids
|
|
30
|
+
- Fixes bug with `zenith()` function on map plots
|
|
15
31
|
|
|
16
32
|
## v0.11.x
|
|
17
33
|
[Documentation](https://archives.starplot.dev/0.11.4/)
|
|
@@ -7,6 +7,8 @@ title: Map of Canis Major
|
|
|
7
7
|
|
|
8
8
|

|
|
9
9
|
|
|
10
|
+
In this example, we set the plot's `clip_path` to the boundary of Canis Major, so only objects in that constellation are plotted:
|
|
11
|
+
|
|
10
12
|
```python
|
|
11
13
|
--8<-- "examples/map_canis_major.py"
|
|
12
14
|
```
|
|
@@ -7,7 +7,7 @@ title: Map of Orion
|
|
|
7
7
|
|
|
8
8
|

|
|
9
9
|
|
|
10
|
-
The following code will create a simple map plot that shows the area around the constellation
|
|
10
|
+
The following code will create a simple map plot that shows the area around the constellation [Orion](https://en.wikipedia.org/wiki/Orion_(constellation)):
|
|
11
11
|
|
|
12
12
|
```python
|
|
13
13
|
--8<-- "examples/map_orion.py"
|
|
@@ -28,6 +28,7 @@ Starplot is a Python library for creating star charts and maps of the sky.
|
|
|
28
28
|
|
|
29
29
|
Join other starplotters on [Discord :fontawesome-brands-discord:{ .fg-primary }](https://discord.gg/WewJJjshFu)
|
|
30
30
|
|
|
31
|
+
|
|
31
32
|
*Example charts and maps created with Starplot:*
|
|
32
33
|
<!-- {.text-subtitle} -->
|
|
33
34
|
|
|
@@ -38,7 +39,7 @@ Join other starplotters on [Discord :fontawesome-brands-discord:{ .fg-primary }]
|
|
|
38
39
|
|
|
39
40
|
<figure markdown>
|
|
40
41
|
<img src="images/examples/map_orion.png" width="900">
|
|
41
|
-
<figcaption>Map around the constellation Orion
|
|
42
|
+
<figcaption>Map around the constellation Orion (<a href="/examples/map-orion/">source code</a>)</figcaption>
|
|
42
43
|
</figure>
|
|
43
44
|
|
|
44
45
|
|
|
@@ -28,6 +28,19 @@ apt-get install libgeos-dev libgdal-dev
|
|
|
28
28
|
pip install starplot
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
+
## Docker
|
|
32
|
+
|
|
33
|
+
Here's a basic Docker container definition that'll get you up and running:
|
|
34
|
+
|
|
35
|
+
```docker
|
|
36
|
+
FROM python:3.11.11-bookworm
|
|
37
|
+
|
|
38
|
+
# Install required system libraries (GEOS + GDAL)
|
|
39
|
+
RUN apt-get clean && apt-get update -y && apt-get install -y libgeos-dev libgdal-dev
|
|
40
|
+
|
|
41
|
+
RUN pip install starplot
|
|
42
|
+
```
|
|
43
|
+
|
|
31
44
|
!!! star "What about Windows?"
|
|
32
45
|
|
|
33
46
|
I haven't tried installing Starplot on Windows, but if you have and would like to share instructions, please feel free to [open a pull request on GitHub](https://github.com/steveberardi/starplot) with an update to this file (`docs/installation.md`). Thanks! :)
|
|
@@ -83,7 +83,7 @@ from starplot import PlotStyle
|
|
|
83
83
|
style = PlotStyle().extend(
|
|
84
84
|
{
|
|
85
85
|
"bayer_labels": {
|
|
86
|
-
"font_name": "
|
|
86
|
+
"font_name": "Literata",
|
|
87
87
|
"font_size": 10
|
|
88
88
|
}
|
|
89
89
|
}
|
|
@@ -92,7 +92,7 @@ style = PlotStyle().extend(
|
|
|
92
92
|
Alternatively, you can do this:
|
|
93
93
|
```python
|
|
94
94
|
style = PlotStyle()
|
|
95
|
-
style.bayer_labels.font_name = "
|
|
95
|
+
style.bayer_labels.font_name = "Literata"
|
|
96
96
|
style.bayer_labels.font_size = 10
|
|
97
97
|
|
|
98
98
|
```
|
|
@@ -152,8 +152,8 @@ Starplot has a bunch of built-in style extensions (all imported from `starplot.s
|
|
|
152
152
|
- `GRAYSCALE` - Optimized for printing in grayscale ([details](#extensions-grayscale))
|
|
153
153
|
- `GRAYSCALE_DARK` - Like `GRAYSCALE`, but inverted (white stars, black background) ([details](#extensions-grayscale-dark))
|
|
154
154
|
- `BLUE_LIGHT` - Light and bright colors ([details](#extensions-blue-light))
|
|
155
|
-
- `BLUE_MEDIUM` - Medium brightness
|
|
156
|
-
- `BLUE_DARK` - Dark
|
|
155
|
+
- `BLUE_MEDIUM` - Medium brightness blue colors ([details](#extensions-blue-medium))
|
|
156
|
+
- `BLUE_DARK` - Dark blue and contrasting colors ([details](#extensions-blue-dark))
|
|
157
157
|
- `ANTIQUE` - Antique map inspired colors ([details](#extensions-antique))
|
|
158
158
|
- `NORD` - Nord-inspired colors ([details](#extensions-nord))
|
|
159
159
|
- **Plot types**
|
|
@@ -37,8 +37,9 @@ On line 8, we create a [`MapPlot`][starplot.MapPlot] instance that specifies a f
|
|
|
37
37
|
- `lat`/`lon`: Observing location
|
|
38
38
|
- `dt`: Observing date/time
|
|
39
39
|
- `resolution`: Resolution (in pixels) of the widest dimension of the plot
|
|
40
|
+
- `scale`: This controls the sizing of all text and markers. At scale `1.0` everything is optimized for a basic map of 1-3 constellations, so if you're plotting a larger area (or just want everything smaller), then it's a good idea to decrease the scale so the plot isn't too crowded.
|
|
40
41
|
|
|
41
|
-
When you create a plot instance, initially it'll be empty (i.e. it won't have any stars). In Starplot, you have to explicitly plot all objects. So, on line
|
|
42
|
+
When you create a plot instance, initially it'll be empty (i.e. it won't have any stars). In Starplot, you have to explicitly plot all objects. So, on line 16 we plot the constellations, which includes lines and labels. Then, we plot stars with a limiting magnitude of 4.6.
|
|
42
43
|
|
|
43
44
|
Finally, we export the plot to a PNG file.
|
|
44
45
|
|
|
@@ -22,7 +22,7 @@ For example, here's how you'd create an optic plot of the Beehive Star Cluster (
|
|
|
22
22
|
|
|
23
23
|
The first 13 lines should look familiar from the other plots we've created in this tutorial.
|
|
24
24
|
|
|
25
|
-
Line
|
|
25
|
+
Line 14 is where we create the instance of an `OpticPlot`. Most of the kwargs are the same as the map plot's kwargs, except for the following:
|
|
26
26
|
|
|
27
27
|
- `ra`: Right ascension of the target
|
|
28
28
|
- `dec`: Declination of the target
|
|
@@ -30,7 +30,7 @@ Line 15 is where we create the instance of an `OpticPlot`. Most of the kwargs ar
|
|
|
30
30
|
|
|
31
31
|
The `ra`/`dec` you specify for the target will be the center of the plot.
|
|
32
32
|
|
|
33
|
-
On line 31, we plot stars down to magnitude
|
|
33
|
+
On line 31, we plot stars down to magnitude 12, but we also specify the [star catalog](/reference-data/#starplot.data.stars.StarCatalog) to use. By default, Starplot uses the Hipparcos catalog, but it also has the [Big Sky Catalog](https://github.com/steveberardi/bigsky) built-in which has many more stars.
|
|
34
34
|
|
|
35
35
|
*In the [next section](06.md), we'll learn how to be more selective of objects to plot...*
|
|
36
36
|
|
|
@@ -20,7 +20,7 @@ p.stars(
|
|
|
20
20
|
],
|
|
21
21
|
)
|
|
22
22
|
```
|
|
23
|
-
When passing the `where` kwarg, the `mag` kwarg will be ignored, and only the stars/DSOs that satisfy ALL the `where` conditions will be plotted. You can reference any field on the model in expressions, and there are also a few functions available for determining if a field is null or is in a list of values. For complete details about selecting objects, see the [reference page](/reference-selecting-objects/).
|
|
23
|
+
When passing the `where` kwarg, the `mag` kwarg will be ignored, and only the stars/DSOs that satisfy ALL the `where` conditions will be plotted. You can reference any field on the [model](/reference-models/) in expressions, and there are also a few functions available for determining if a field is null or is in a list of values. For complete details about selecting objects, see the [reference page](/reference-selecting-objects/).
|
|
24
24
|
|
|
25
25
|
Here's some code that uses the `where` kwarg extensively to produce the image above:
|
|
26
26
|
<div class="tutorial" markdown>
|
|
@@ -11,7 +11,7 @@ title: 8 - Using Callables
|
|
|
11
11
|
|
|
12
12
|
[Callables](/reference-callables/) allow you to define your own functions for calculating a few of the style properties for stars: size, alpha (opacity), color, and their labels. DSOs support callables for alpha and labels only. Starplot has a few basic callables built-in, but you can also create your own.
|
|
13
13
|
|
|
14
|
-
Here's an example that uses the built-in callable `color_by_bv` to create an optic plot of [Antares](https://en.wikipedia.org/wiki/Antares) that colorizes the stars based on their B-V index (Antares B-V is 1.83 so it appears red/orange in the sky):
|
|
14
|
+
Here's an example that uses the built-in callable `color_by_bv` to create an optic plot of [Antares](https://en.wikipedia.org/wiki/Antares) that colorizes the stars based on their B-V index (Antares' B-V is 1.83 so it appears red/orange in the sky):
|
|
15
15
|
<div class="tutorial" markdown>
|
|
16
16
|
```python linenums="1"
|
|
17
17
|
--8<-- "tutorial/tutorial_08.py"
|
|
@@ -5,10 +5,15 @@ import glob
|
|
|
5
5
|
import time
|
|
6
6
|
|
|
7
7
|
from PIL import Image
|
|
8
|
-
from multiprocessing import Pool
|
|
8
|
+
from multiprocessing import Pool
|
|
9
9
|
|
|
10
10
|
start = time.time()
|
|
11
11
|
|
|
12
|
+
skip = [
|
|
13
|
+
# "map_milky_way_stars.py",
|
|
14
|
+
# "stuff.py",
|
|
15
|
+
]
|
|
16
|
+
|
|
12
17
|
|
|
13
18
|
def thumbnail(filename, max_dimension=900):
|
|
14
19
|
print(filename)
|
|
@@ -23,16 +28,17 @@ def get_example_names():
|
|
|
23
28
|
for filename in glob.iglob("*.py"):
|
|
24
29
|
if filename.endswith("examples.py"):
|
|
25
30
|
continue
|
|
31
|
+
|
|
32
|
+
if filename in skip:
|
|
33
|
+
continue
|
|
34
|
+
|
|
26
35
|
filenames.append(filename)
|
|
27
36
|
|
|
28
37
|
return filenames
|
|
29
38
|
|
|
30
39
|
|
|
31
40
|
def run_example(filename):
|
|
32
|
-
import subprocess
|
|
33
|
-
|
|
34
41
|
print(f"Running {filename}")
|
|
35
|
-
|
|
36
42
|
subprocess.call(["python", filename])
|
|
37
43
|
|
|
38
44
|
|
|
@@ -42,16 +48,6 @@ processes = []
|
|
|
42
48
|
with Pool(5) as pool:
|
|
43
49
|
pool.map(run_example, example_files)
|
|
44
50
|
|
|
45
|
-
# Run all examples
|
|
46
|
-
# for filename in glob.iglob("*.py"):
|
|
47
|
-
# if filename.endswith("examples.py"):
|
|
48
|
-
# continue
|
|
49
|
-
|
|
50
|
-
# # if filename != "map_lyra.py":
|
|
51
|
-
# # continue
|
|
52
|
-
# print(f"Running {filename}")
|
|
53
|
-
# subprocess.call(f"python {filename}", shell=True)
|
|
54
|
-
|
|
55
51
|
# Create thumbnail images for the examples list page
|
|
56
52
|
image_files = glob.glob("*.png")
|
|
57
53
|
pool = Pool(5)
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
from starplot import MapPlot, Projection, DSO, Star
|
|
2
|
+
from starplot.styles import PlotStyle, extensions
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
style = PlotStyle().extend(
|
|
6
|
+
extensions.BLUE_DARK,
|
|
7
|
+
extensions.MAP,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
p = MapPlot(
|
|
11
|
+
projection=Projection.MILLER,
|
|
12
|
+
ra_min=0,
|
|
13
|
+
ra_max=24,
|
|
14
|
+
dec_min=-80,
|
|
15
|
+
dec_max=80,
|
|
16
|
+
style=style,
|
|
17
|
+
resolution=6000,
|
|
18
|
+
# since this map has a very large extent, let's scale everything down
|
|
19
|
+
scale=0.8,
|
|
20
|
+
)
|
|
21
|
+
p.gridlines()
|
|
22
|
+
p.constellations(
|
|
23
|
+
style__label__font_size=28,
|
|
24
|
+
)
|
|
25
|
+
p.stars(mag=6, where_labels=[Star.magnitude < 2.1])
|
|
26
|
+
p.open_clusters(
|
|
27
|
+
labels=None,
|
|
28
|
+
where=[
|
|
29
|
+
DSO.magnitude <= 8,
|
|
30
|
+
],
|
|
31
|
+
true_size=False,
|
|
32
|
+
)
|
|
33
|
+
p.globular_clusters(
|
|
34
|
+
labels=None,
|
|
35
|
+
where=[
|
|
36
|
+
DSO.magnitude <= 9,
|
|
37
|
+
],
|
|
38
|
+
true_size=False,
|
|
39
|
+
)
|
|
40
|
+
p.galaxies(
|
|
41
|
+
labels=None,
|
|
42
|
+
where=[
|
|
43
|
+
DSO.magnitude <= 10,
|
|
44
|
+
],
|
|
45
|
+
true_size=False,
|
|
46
|
+
)
|
|
47
|
+
p.nebula(
|
|
48
|
+
labels=None,
|
|
49
|
+
where=[(DSO.magnitude <= 10) | (DSO.magnitude.is_null()), DSO.size > 0.05],
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
p.milky_way()
|
|
53
|
+
p.ecliptic()
|
|
54
|
+
p.celestial_equator()
|
|
55
|
+
|
|
56
|
+
p.export("map_big.png", padding=0.5)
|
|
@@ -21,16 +21,9 @@ p.stars(
|
|
|
21
21
|
Star.dec > 45,
|
|
22
22
|
Star.dec < 64,
|
|
23
23
|
],
|
|
24
|
-
# By default, star sizes are calculated based on their magnitude first,
|
|
25
|
-
# but then that result will be multiplied by the star's marker size in the PlotStyle
|
|
26
|
-
# so, adjusting the star marker size is a way to make all stars bigger or smaller
|
|
27
|
-
style__marker__size=96,
|
|
28
24
|
style__marker__symbol="star",
|
|
29
25
|
style__marker__color="#ffff73",
|
|
30
|
-
style__label__font_size=
|
|
26
|
+
style__label__font_size=20,
|
|
31
27
|
style__label__font_weight="normal",
|
|
32
|
-
style__label__anchor_point="bottom right",
|
|
33
|
-
style__label__offset_x=16,
|
|
34
|
-
style__label__offset_y=-52,
|
|
35
28
|
)
|
|
36
29
|
p.export("map_big_dipper.png", transparent=True)
|
|
@@ -2,17 +2,8 @@ from starplot import MapPlot, Projection, Constellation
|
|
|
2
2
|
from starplot.styles import PlotStyle, extensions
|
|
3
3
|
|
|
4
4
|
style = PlotStyle().extend(
|
|
5
|
-
extensions.
|
|
5
|
+
extensions.BLUE_LIGHT,
|
|
6
6
|
extensions.MAP,
|
|
7
|
-
{
|
|
8
|
-
"star": {"marker": {"size": 40}, "label": {"font_size": 13}},
|
|
9
|
-
"bayer_labels": {
|
|
10
|
-
"font_name": "GFS Didot", # use a better font for Greek letters
|
|
11
|
-
"font_size": 10,
|
|
12
|
-
"font_alpha": 0.9,
|
|
13
|
-
},
|
|
14
|
-
"dso_open_cluster": {"marker": {"size": 20}, "label": {"font_size": 10}},
|
|
15
|
-
},
|
|
16
7
|
)
|
|
17
8
|
canis_major = Constellation.get(name="Canis Major")
|
|
18
9
|
p = MapPlot(
|
|
@@ -22,16 +13,15 @@ p = MapPlot(
|
|
|
22
13
|
dec_min=-35,
|
|
23
14
|
dec_max=-9,
|
|
24
15
|
style=style,
|
|
25
|
-
resolution=
|
|
16
|
+
resolution=3600,
|
|
26
17
|
clip_path=canis_major.boundary,
|
|
18
|
+
scale=1.3,
|
|
27
19
|
)
|
|
28
|
-
p.open_clusters(mag=8, true_size=False, label_fn=lambda d: f"{d.ngc}")
|
|
29
|
-
p.stars(mag=9, bayer_labels=True, catalog="big-sky-mag11")
|
|
30
20
|
p.constellations(
|
|
31
21
|
where=[Constellation.iau_id == "cma"],
|
|
32
|
-
style__line__width=7,
|
|
33
|
-
style__label__font_size=18,
|
|
34
22
|
)
|
|
35
23
|
p.constellation_borders()
|
|
24
|
+
p.open_clusters(mag=8, true_size=False, label_fn=lambda d: f"{d.ngc}")
|
|
25
|
+
p.stars(mag=9, bayer_labels=True, catalog="big-sky-mag11")
|
|
36
26
|
p.ax.set_axis_off()
|
|
37
27
|
p.export("map_canis_major.png", padding=0, transparent=True)
|
|
@@ -2,7 +2,7 @@ from skyfield.api import load
|
|
|
2
2
|
from skyfield.data import mpc
|
|
3
3
|
from skyfield.constants import GM_SUN_Pitjeva_2005_km3_s2 as GM_SUN
|
|
4
4
|
|
|
5
|
-
from starplot import MapPlot, Projection
|
|
5
|
+
from starplot import MapPlot, Projection, Star
|
|
6
6
|
from starplot.styles import PlotStyle, extensions
|
|
7
7
|
|
|
8
8
|
# First, we use Skyfield to get comet data
|
|
@@ -41,7 +41,6 @@ style = PlotStyle().extend(
|
|
|
41
41
|
{
|
|
42
42
|
"star": {
|
|
43
43
|
"label": {
|
|
44
|
-
"font_size": 9,
|
|
45
44
|
"font_weight": "normal",
|
|
46
45
|
}
|
|
47
46
|
},
|
|
@@ -60,6 +59,7 @@ p = MapPlot(
|
|
|
60
59
|
dec_max=80,
|
|
61
60
|
style=style,
|
|
62
61
|
resolution=2800,
|
|
62
|
+
autoscale=True,
|
|
63
63
|
)
|
|
64
64
|
|
|
65
65
|
# Plot the comet markers first, to ensure their labels are plotted
|
|
@@ -70,7 +70,7 @@ for t, ra, dec in radecs:
|
|
|
70
70
|
dec=dec,
|
|
71
71
|
style={
|
|
72
72
|
"marker": {
|
|
73
|
-
"size":
|
|
73
|
+
"size": 40,
|
|
74
74
|
"symbol": "circle",
|
|
75
75
|
"fill": "full",
|
|
76
76
|
"color": "hsl(358, 78%, 58%)",
|
|
@@ -79,7 +79,7 @@ for t, ra, dec in radecs:
|
|
|
79
79
|
"zorder": 4096,
|
|
80
80
|
},
|
|
81
81
|
"label": {
|
|
82
|
-
"font_size":
|
|
82
|
+
"font_size": 46,
|
|
83
83
|
"font_weight": "bold",
|
|
84
84
|
"font_color": "hsl(60, 70%, 72%)",
|
|
85
85
|
"zorder": 4096,
|
|
@@ -90,9 +90,9 @@ for t, ra, dec in radecs:
|
|
|
90
90
|
)
|
|
91
91
|
|
|
92
92
|
p.gridlines(labels=False)
|
|
93
|
-
p.stars(mag=6)
|
|
94
93
|
p.constellations()
|
|
95
94
|
p.constellation_borders()
|
|
95
|
+
p.stars(mag=6, where_labels=[Star.magnitude < 2])
|
|
96
96
|
p.milky_way()
|
|
97
97
|
p.legend()
|
|
98
98
|
|