Skip to main content

AtmoTools SA package

Project description

AtmoTools : A toolkit for atmospheric sounding data visualization.

pypi PyPI - Downloads contributions welcome license Python >=3.11.10

Overview

AtmoTools is an open-source Python package that provides a wrapper for HDF4, HDF5 and NetCDF files and visualization tools for atmospheric sounding data.

Contacts

Antonin ZABUKOVEC : antonin.zabukove@cnes.fr
Sarah GUIBERT : sarah.guibert@cnes.fr

Features

  • Reader for HDF5, HDF4 and NetCDF files
  • Writer for NetCDF
  • Atmospheric sounding data visualizations

Quick Start

Installation

You can install AtmoTools by running the following command :

pip install atmotools

If you have difficulties using the previous command, run the following command :

pip install atmotools==<VERSION> --index-url https://pypi.org/simple

Requirements

  • Python >= 3.10.11

Developer installation

For an installation from the git repository follow this documentation

Else, you can install AtmoTools in "editable" mode :

pip install --editable atmotools

NOTE : The "editable" mode allows to imediatly update files modifications

Please read this guide for developer best practices and specific AtmoTools practices.

Run AtmoTools

Reader

Atmotools includes the possibility to create a reader from any HDF5, NetCDF or HDF4 file path.

import utils.hdf_netcdf_tools as hdfu

filepath = <YOUR_FILE_PATH>.nc / .h5 / .hdf
rdr = hdfu.createReader(filepath)

Describe a file

rdr.describe_file()
rdr.describe_all_vars()
  • describe_file() : describes the file as a whole, as a table (without the variables attributes) or as a tree (with the variables attributes)
  • describe_all_vars() : describes all of the variables of a file (or of a group if its path is given as an argument), as a json-like dictionary.

Get a variable

var = rdr.get_var(<VAR_PATH>)

Get information on a variable

var.describe()
var.get_data()
var.get_mean(axis)
  • describe() : describe the variable
  • get_data() : get the data of a variable
  • get_mean(axis) : returns the mean of a variable data along the specified axis

For more information on what this reader can do and how it works, please refer to the documentation and the example.

Writer

Create a file
It is also possible to create a file thanks to the writer. For example, to write a nc file_path:

import utils.hdf_netcdf_tools as hdfu

filepath = <YOUR_FILE_PATH>.nc
nc_writer = hdfu.Hdf5Netcdf4Writer(file_path = file_path,
                                    mode = "w",
                                    extension = ".nc")

The writer has all the same features as the reader, with some added features, like creating groups, variables, attributes, etc.
To find more detail on the writer and what it can be used for, please refer to the example and the documentation

Modify the content of a NetCDF/HDF5/HDF4 file

With the writer, it is also possible to modify the data of an already existing file. For example for a nc file_path:

import utils.hdf_netcdf_tools as hdfu

filepath = <YOUR_FILE_PATH>.nc
nc_writer = hdfu.Hdf5Netcdf4Writer(file_path = file_path,
                                    mode = "a",
                                    extension = ".nc")

To find more detail on the writer and what it can be used for, please refer to the example and the documentation

Interactive Visualization tools

Atmotools includes visualization tools for MicroCarb and IASI-NG , which can be launched respectively with the commands :

atmotools.microcarb.app

You can now use the tool by navigating to http://127.0.0.1:8051/ via your preferred browser.

atmotools.iasi_ng.app -rad <path_to_rad_file>.nc

You can now use the tool by navigating to http://127.0.0.1:8052/ via your preferred browser.

These commands launch the following apps.
MicroCarb visualization tool : mca_visu_tool_main_window
IASI-NG visualization tool : iasi_visu_tool_main_window

For more information on what these apps can do, how to launch them, and how they work, please refer to the documentation.

License

AtmoTools is licensed under permissive Apache License 2.0. Please refer to the LICENSE file for more details.

Support

Contributing

We welcome contributions! Please read our Contributing Guidelines for details on how to get involved, including coding standards and submission processes.

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

atmotools-1.2.9.tar.gz (107.0 kB view details)

Uploaded Source

Built Distribution

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

atmotools-1.2.9-py3-none-any.whl (128.8 kB view details)

Uploaded Python 3

File details

Details for the file atmotools-1.2.9.tar.gz.

File metadata

  • Download URL: atmotools-1.2.9.tar.gz
  • Upload date:
  • Size: 107.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.10

File hashes

Hashes for atmotools-1.2.9.tar.gz
Algorithm Hash digest
SHA256 27906d597bda8bd2810f2091cc77dc7c72e73596e0bd0bf6968ab248eceed26e
MD5 86dcb5666e04331205d93a1b26e76926
BLAKE2b-256 7165d4d77b71b08c2d800c9d97063159305f539682cfde8e7fa2a30fb508a300

See more details on using hashes here.

File details

Details for the file atmotools-1.2.9-py3-none-any.whl.

File metadata

  • Download URL: atmotools-1.2.9-py3-none-any.whl
  • Upload date:
  • Size: 128.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.10

File hashes

Hashes for atmotools-1.2.9-py3-none-any.whl
Algorithm Hash digest
SHA256 1d199c6e3cfe6cee6c380de7514fc328ec3a5b7090256611dbce97353d01cc67
MD5 c528c16d8c2afb5f643275e4d149dc34
BLAKE2b-256 65458ee802f37c617b0da200ac670002097831305863c2fcdb5d7c0814b861ae

See more details on using hashes here.

Supported by

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