Skip to main content

planetarypy-hirise

MRO HiRISE support for planetarypy.

pip install planetarypy-hirise          # pure-Python half
pip install planetarypy-hirise[isis]    # + the ISIS mosaic pipeline

or, equivalently, from core's extra:

pip install planetarypy[hirise]

The import path is unchanged

Code written against core's in-tree HiRISE module keeps working verbatim:

from planetarypy.instruments.mro.hirise import get_browse, get_metadata

planetarypy.instruments and planetarypy.instruments.mro are PEP 420 namespace packages — neither carries an __init__.py — so core and this package contribute modules to the same dotted path. Never add an __init__.py at either level, in either distribution; it converts them back to regular packages and the split breaks.

What is here, and what stayed in core

Core keeps the declarative catalog knowledge: the index registry entries for mro.hirise.{edr,rdr,dtm} and the mission/instrument name maps. A core-only install can therefore still run plp indexes peek mro.hirise.edr, plp fetch mro.hirise.edr, and find HiRISE in the catalog without this package.

This package adds the behaviour:

browse images browse_url, get_browse
metadata get_metadata, format_meta, sun_azimuth_from_top
EDR products SOURCE_PRODUCT, RED_PRODUCT, edr_products, download_edr
GeoTIFF conversion jp2_to_geotiff
ISIS pipeline ([isis]) ingest_edr, calibrate_channel, stitch_channels, map_project, create_mosaic, create_mosaics, create_red_mosaic

CLI

Installing this package adds four verbs to plp, via the planetarypy.cli_plugins entry point:

plp hibrowse OBSID      download a browse JPEG from EXTRAS
plp hiedr    OBSID      download EDR channel products
plp himos    OBSID      build a CCD mosaic via ISIS
plp hitif    FILE.JP2   convert a projected JP2 to GeoTIFF in an official IAU CRS

How the plugin registers

planetarypy_hirise.cli:register is the entry point core calls on every plp invocation. It imports planetarypy.instruments.mro.hirise at module load, which is load-bearing rather than incidental: that import runs register_storage_resolver and register_meta_handler, so plp meta mro.hirise.edr finds the HiRISE row formatter. Core removed its hard-coded fallback for that lookup when HiRISE moved out, so making the import lazy would silently regress plp meta to a generic two-column dump.

License

BSD-3.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

planetarypy_hirise-0.1.0.tar.gz (22.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

planetarypy_hirise-0.1.0-py3-none-any.whl (23.5 kB view details)

Uploaded Python 3

File details

Details for the file planetarypy_hirise-0.1.0.tar.gz.

File metadata

  • Download URL: planetarypy_hirise-0.1.0.tar.gz
  • Upload date:
  • Size: 22.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for planetarypy_hirise-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5cd2cfac145f01e3410309dc155374375a1769bff941ef8701aafda886c04ddb
MD5 07156fcd8ab817db206fd8e129841228
BLAKE2b-256 e156fab66ed4f4558918b39a134aa1f96268c2c485a96a1c0e59151dafba8f83

See more details on using hashes here.

File details

Details for the file planetarypy_hirise-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for planetarypy_hirise-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ec0b344b90627b0525e8fe94cff553f38ecd707723351678fc97d9a97a3a2888
MD5 fb18d373127b304a0da19fa2a15a6669
BLAKE2b-256 913ca592ab435d5f60d10b18b7b9e34bcb1c078440256ee80e0a338c96df2234

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.0

2 files

This release

0.1.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page