Skip to content

About

Reader and diagnostics toolkit for GLOD netCDF files, LIME-specific LGLOD files, and SRF observations.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Version 0.0.1 License: LGPL 3.0 Issues Stargazers


glodformat logo

glodformat

Reader and diagnostics toolkit for GLOD-based netCDF files.

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Development Guide
  6. License
  7. Authors

About the project

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.

Collaborators

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)

Getting started

Prerequisites

  • Python >= 3.10

Installation

The package is available at PyPI and can be installed with:

pip install glodformat

Another option is installing the python package and its dependencies directly from the cloned repository in editable mode by using:

pip install -e .

Usage

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")

Roadmap

  • Fully support checking if an observation file is correctly represented by a SRF file
  • Add support for LIME Toolbox related formats

Development Guide

Versioning

Version changes and descriptions are stored in the CHANGELOG. This file is updated each time a new version is released.

Setting Up the Environment

To prepare your environment for development, testing or deployment, follow these steps:

  1. Install Pre-commit Hooks Install the pre-commit hooks to automatically check code styling:

    pre-commit install  
    • When you commit changes, black will 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.
  2. Install Python Dependencies

    Install the python package dependencies listed in the requirements.txt file, preferably in a python virtual enironment:

    pip install -r requirements.txt  

Testing

Run the following commands to ensure the code works as expected:

  1. Unit Tests
    To perform unit tests:
    python3 -m unittest  

License

Distributed under the LGPL-v3 License. See LGPL v3 for more information.

Acknowledgements

About

Reader and diagnostics toolkit for GLOD netCDF files, LIME-specific LGLOD files, and SRF observations.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages