Skip to main content

MARIS companion package and tutorials

Project description

Marisco

The IAEA Marine Radioactivity Information System (MARIS) allows free access to users to search and download the results of measurements of radioactivity in seawater, biota, sediment and suspended matter. MARIS is maintained and developed by the IAEA Environmental Laboratories in Monaco.

The current Python package offers command-line utilities for encoding MARIS harvested datasets into NetCDF or .csv formats. This allows to convert MARIS data into a format that is compatible with a wide range of scientific and data analysis tools.

Install

Now, to install marisco simply run

pip install marisco

Once successfully installed, run the following command:

maris_init

This command:

  1. creates a .marisco/ directory containing various configuration/configurable files ((below)) in your /home directory
  2. creates a configs.toml file containing default but configurable settings (default paths, …)
  3. creates a configurable cdl.toml file used to generate a MARIS NetCDF4 CDL (Common Data Language) template;
  4. downloads several MARIS DB nomenclature/lookup table into .marisco/lut/ directory
  5. generate maris-template.nc, the MARIS NetCDF4 template generated from cdl.toml and use to encode MARIS datasets

[!TIP]

For inexperienced Python users, please refers to How to setup Marisco with Anaconda or How to setup Marisco with Windows Subsystem for Linux (WSL) and Visual Studio Code editor.

Getting started

Command line utilities

All commands accept a -h argument to get access to its documentation.

maris_init

Create configuration files, MARIS NetCDF CDL (Common Data Language) and donwload required lookup tables (nomenclatures).

maris_create_nc_template

Generate MARIS NetCDF template to be used when encoding datasets

maris_netcdfy

Encode MARIS dataset as NetCDF

Positional arguments:

  • handler_name: Handler’s name (e.g helcom, …)
  • str: Path to dataset to encode
  • dest: Path to converted NetCDF4

Example:

maris_netcdfy helcom _data/accdb/mors/csv _data/output/helcom.nc

Development

FAQ

How is cdl.toml created & what it is used for?

A Python dictionary named CONFIGS_CDL specifying MARIS NetCDF attributes, variables, dimensions, … is defined in nbs/api/configs.ipynb in the first instance. Running the command maris_init will generate a toml version of it named .marisco/cdl.toml further used to create a MARIS NetCDF template named in .marisco/maris-template.nc.

Once marisco installed, further customization of the MARIS NetCDF template can be done directly through .marisco/cdl.toml file then running the command maris_create_nc_template.

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

marisco-0.1.5.tar.gz (39.9 kB view details)

Uploaded Source

Built Distribution

marisco-0.1.5-py3-none-any.whl (47.2 kB view details)

Uploaded Python 3

File details

Details for the file marisco-0.1.5.tar.gz.

File metadata

  • Download URL: marisco-0.1.5.tar.gz
  • Upload date:
  • Size: 39.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for marisco-0.1.5.tar.gz
Algorithm Hash digest
SHA256 cc1721b6bbf93c24ed7922d60928daf18188c02ab2589e9424f5505ed3ff6b78
MD5 2bb1c52aed2d572aeb3f99184c3e0a7e
BLAKE2b-256 dfb8d5468d18366856c9c6034c74699cbf49f05ea2e3a1f19faa76874c3d4ab7

See more details on using hashes here.

File details

Details for the file marisco-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: marisco-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 47.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for marisco-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 47f87683e4f053d6a0d21fe6f099049a2080c8c639c021cfb873ea599daffda0
MD5 cc4b7b013b0d08fb56ab7221f1abb0b5
BLAKE2b-256 7c05c51c5f32a15e1e0d66d86c69e123e64e2a62266fc399155d73c19b2aaa86

See more details on using hashes here.

Supported by

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