Skip to content

SETI/rms-metadata-tools

GitHub release; latest by date GitHub Release Date Test Status Documentation Status Code coverage
PyPI - Version PyPI - Format PyPI - Downloads PyPI - Python Version
GitHub commits since latest release GitHub commit activity GitHub last commit
Number of GitHub open issues Number of GitHub closed issues Number of GitHub open pull requests Number of GitHub closed pull requests
GitHub License Number of GitHub stars GitHub forks

Introduction

metadata-tools is a Python module that generates index and geometry metadata tables and their corresponding PDS3 labels. Each line of the table contains metadata for a single data file (e.g. image).

Index files contain descriptive information about the data product, like observation times, exposures, instrument modes and settings, etc. Index file entries are taken from the label for the data product by default, but may instead be derived from label quantities by defining the appropriate configuration function in the host_config.py for the specific host.

Raw index files are provided by each project, with varying levels of compliance. The project-supplied index files are modified to produce the corrected index files that can be used with the host from_index() method. The metadata-tools package is intended to produce supplemental index files, which add columns to the corrected index file. Supplemental index files are identical in structure to index files, so this package can generate any kind of index file. Supplemental index files can be provded as arguments to from_index() to create a merged dictionary.

Supplemental index files are used as input to OPUS, and are available via viewmaster to be downloaded by PDS users.

Geometry files tabulate the values of geometrc quantites for each data file, which are derived from SPICE using the information in the index file or from the PDS3 label using OOPS. The purpose of the geometry files is to provide input to OPUS.

metadata-tools is a product of the PDS Ring-Moon Systems Node.

Installation

The metadata-tools module is available via the rms-metadata-toolsimage package on PyPI and can be installed with:

pip install rms-metadata-tools

Getting Started

The procedure for generating metadata tables is as follows:

  1. Create a directory for the new host collection under the hosts/ subdirectory, e.g., GO_0xxx, COISS_xxxx, etc.

  2. Copy the python files from an existing host directory and rename them according to the new collection. You should have these files:

    init.py host_init.py host_config.py index_config.py geometry_config.py _index.py _geometry.py _cumulative.py

  3. Create a templates/ subdirectory and copy the label templates from an existing host, and rename accordingly, yielding:

    templates/_supplmental_index.lbl templates/_body_summary.lbl templates/_ring_summary.lbl templates/host_defs.lbl

  4. Edit the config modules as needed.

  5. Edit the supplemental and summary templates and generate the tables using _index.py and _geometry.py according to the instructions in those files.

  6. Generate the cumulative tables using _cumulative.py according to the instructions in that file.

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.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published