Table of Contents
glodformat is a Python package that helps validate the format of netCDF files derived
from GLOD and other specifications.
This library was developed for the LIME Toolbox, under the LIME projects development efforts. More information about LIME can be found on lime.uva.es.
The LIME project is managed, financed and supported by the European Space Agency (ESA).
The project is a collaboration between multiple institutions, including:
- NPL (National Physics Laboratory, United Kingdom)
- UVa (Universidad de Valladolid, Spain)
- VITO (Vlaamse Instelling voor Technologisch Onderzoek, Belgium)
- Python >= 3.10
The package is available at PyPI and can be installed with:
pip install glodformatAnother option is installing the python package and its dependencies directly from the cloned repository in editable mode by using:
pip install -e .import glodformat
# Functions accept both paths or loaded xarray datasets
glodformat.validate_srf("response.nc")
glodformat.validate_moon_observation("moon_obs.nc")
glodformat.validate_srf_for_obs("response.nc", "moon_obs.nc")- Fully support checking if an observation file is correctly represented by a SRF file
- Add support for LIME Toolbox related formats
Version changes and descriptions are stored in the CHANGELOG. This file is updated each time a new version is released.
To prepare your environment for development, testing or deployment, follow these steps:
-
Install Pre-commit Hooks Install the
pre-commithooks to automatically check code styling:pre-commit install
- When you commit changes,
blackwill check your code for styling errors. - If errors are found, they will be corrected, and the commit will be aborted to allow you to review the changes.
- If you're satisfied, reattempt the commit.
- When you commit changes,
-
Install Python Dependencies
Install the python package dependencies listed in the
requirements.txtfile, preferably in a python virtual enironment:pip install -r requirements.txt
Run the following commands to ensure the code works as expected:
- Unit Tests
To perform unit tests:python3 -m unittest
Distributed under the LGPL-v3 License. See LGPL v3 for more information.