pds4indextools
Project description
Introduction
pds4indextools
is a set of programs and modules for parsing PDS4 XML labels.
They were created and are maintained by the Ring-Moon Systems Node
of NASA's Planetary Data System (PDS).
The following tools are currently available:
pds4_create_xml_index
: A command-line program to scrape all metadata information from a series of PDS4 XML labels, usually in a single collection, and generate a summary index file. Such summary index files may be optionally provided as part of a PDS4 delivery by a data provider, or may be created by end users to aid in their searching and processing of PDS4 data products.pds4_create_collection_product
: A command-line program to create a collection product from a collection of PDS4 XML labels. Collection products are a required part of PDS4 collections and are created by data providers.
Installation
pds4indextools
is available via the rms-pds4indextools
package on PyPI and
can be installed with:
pip install rms-pds4indextools
Note that this will install pds4indextools
into your current system Python, or into your
currently activated virtual environment (venv), if any.
If you already have the rms-pds4indextools
package installed but wish to upgrade to a
more recent version, you can use:
pip install --upgrade rms-pds4indextools
You may also install the index tools using pipx
, which will isolate the installation
from your system Python without requiring the creation of a virtual environment. To
install pipx
, please see the installation
instructions. Once pipx
is available, you
may install pds4indextools
with:
pipx install rms-pds4indextools
If you already have the rms-pds4indextools
package installed with pipx
, you may
upgrade to a more recent version with:
pipx upgrade rms-pds4indextools
Getting Started With pds4_create_xml_index
Once pds4indextools
has been installed, you may access the
pds4_create_xml_index
program directly from the command line.
The simplest use scrapes all metadata from all XML labels in a collection and generates an index file:
pds4_create_xml_index <collection_dir> "**/*.xml"
Many options are available to customize the scraping and generation process, including limiting which XML elements are scraped, changing the format of the resulting index file, and generating a PDS4-compliant label. A summary of available options is available by typing:
pds4_create_xml_index --help
Complete documentation is available here
Getting Started With pds4_create_collection_product
Once pds4indextools
has been installed, you may access the
pds4_create_collection_product
program directly from the command line.
The simplest use scrapes all XML labels from a collection and generates a collection product:
pds4_create_collection_product <collection_dir> --bundle bundle_name --collection collection_name
This will generate a collection product called collection_<collection_name>.csv
in the
given collection directory. Full instructions on usage can be found here:
pds4_create_collection_product --help
Complete documentation is available here
Contributing
Information on contributing to this package can be found in the Contributing Guide.
Links
Licensing
This code is licensed under the Apache License v2.0.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file rms_pds4indextools-1.1.0.tar.gz
.
File metadata
- Download URL: rms_pds4indextools-1.1.0.tar.gz
- Upload date:
- Size: 62.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47dc269e6a5dc156ca5734540e8fb1e51aabbee99218533b8b7df5710cbc2b18 |
|
MD5 | 656a6722e5599cf38ac0d314533b2138 |
|
BLAKE2b-256 | a14ad116bb3aba763abe41fd2c70d7b4822b3db3eeefe62cee39dfbbe1c13654 |
Provenance
File details
Details for the file rms_pds4indextools-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: rms_pds4indextools-1.1.0-py3-none-any.whl
- Upload date:
- Size: 28.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ab0c8c2b51cc56b075ffb652b29bde4bd19327f2cfb04c61a95c8e5b7332176 |
|
MD5 | 80d1f183d1b6adb89782e99ca16df6e5 |
|
BLAKE2b-256 | f5e0946e847e6e03fef148d8ce6f0296d338491fbae7257183f7b5dcd0245030 |