Package to create NCAS AMOF netCDF files.
Project description
ncas-amof-netcdf-template
IMPORTANT: PLEASE READ!
This branch is a development version, and while it should be installable with pip and work as intended there are no guarantees.For a stable version, please switch to the main
branch or download the latest release version.
Carry on...
Makes 'just-add-data' AMOF-compliant netCDF4 file.
NOTE 1: Check out the wiki, it's much bettter than what's written here.
NOTE 2: Works, but still work in progress, bugs may well be present. Please report an issue with any problems discovered.
Usage
Python
import create_netcdf
create_netcdf.main(instrument, date = None, dimension_lengths = {}, loc = 'land', products = None)
where:
instrument
- name of NCAS instrument, e.g. "ncas-ceilometer-3"date
- date for data, YYYYmmdd format, default to today's date. Optional.dimension_lengths
- dictionary of lengths of dimensions, e.g. {'time':96, 'altitude':45}. If length for required dimensions are not given, then python will ask for user input, default empty. Optional.loc
- one of 'land', 'air', 'sea', or 'trajectory', default is 'land'. Optional.products
- applicable products of desired NCAS instrument to make netCDF for. Setting products asNone
(default) makes netCDF file for all available products. Optional.
All products associated with an instrument can be printed by
import create_netcdf
create_netcdf.list_products(instrument)
where instrument
is replaced with the name of the NCAS instrument.
Command Line
python create_netcdf.py ncas-instrument
will make a netCDF file for every applicable product for ncas-instrument
, where ncas-instrument
is replaced with the name of an NCAS instrument. Products can be listed with the by executing
python create_netcdf.py ncas-instrument --list-products
and individual products can be specified using the -p
flag. For all available options, python create_netcdf.py --help
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ncas_amof_netcdf_template-2.0a0.tar.gz
.
File metadata
- Download URL: ncas_amof_netcdf_template-2.0a0.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8aebe412ee15e78ff61ed28f8a6b9dfa7e30441b1ed84980d5005e06920d9357 |
|
MD5 | 144d982f70e5644acabe1750328a6b65 |
|
BLAKE2b-256 | 5cf4a35c99da69789099244360e6f44ad137584d8f78864f1d8cdd5bb3c7c60d |
Provenance
File details
Details for the file ncas_amof_netcdf_template-2.0a0-py3-none-any.whl
.
File metadata
- Download URL: ncas_amof_netcdf_template-2.0a0-py3-none-any.whl
- Upload date:
- Size: 14.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a86de27b1c61947467b15162b249a66caa2b7ef178463b34bbf7ff8563264711 |
|
MD5 | c7e8966990185a90b8348baf737ce5c8 |
|
BLAKE2b-256 | 5b963cc388ed18999dc7b91f3e32ab72e389a00e277343b5bb0e180954e9acff |