Package to create NCAS AMOF netCDF files.
Project description
ncas-amof-netcdf-template
Makes 'just-add-data' AMOF-compliant netCDF4 file for either a given NCAS instrument or one of the defined data products.
A full description on how to install and use this module can be found through the documentation.
Requirements
Installation
Releases of ncas-amof-netcdf-template
can be installed using conda,
conda install -c conda-forge ncas-amof-netcdf-template
or by using pip,
pip install ncas-amof-netcdf-template
or releases can be downloaded from GitHub and installed using
pip install .
Usage
A fuller description of how to use this module can be found in the documentation.
import ncas_amof_netcdf_template as nant
nant.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.verbose
- additional level of information and warnings to print. Only 1 additional layer of warnings are currently available.
All products associated with an instrument can be printed by
import ncas_amof_netcdf_template as nant
nant.create_netcdf.list_products(instrument)
where instrument
is replaced with the name of the NCAS instrument.
Contributing
Contributions are welcome from everyone, provided they enhance and improve the capabilities of this package, and code can be distributed under the conditions of the licence. When contributing, users should create a new branch under their forked repository.
Note that pre-commit-ci
will run on all pull requests to this repository, however autofix is disabled. It is recommended that users ensure their contributions pass these checks before submitting pull requests, however users can type pre-commit.ci autofix
into a comment after a failed pre-commit-ci run to automatically fix issues. See pre-commit for more details.
Licence
This package is available under the MIT licence.
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.5.0a0.tar.gz
.
File metadata
- Download URL: ncas_amof_netcdf_template-2.5.0a0.tar.gz
- Upload date:
- Size: 29.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2940e7177c7149551550af4a2d9239878585b7ab5e43d1017b2c39432ace40cd |
|
MD5 | 415ed300e9182b08298e0140091aab70 |
|
BLAKE2b-256 | 8bdf0ce8ec9cec53650b6f0aedb3a8af9d4ce3e5c7d395fc42d6f7cad1d49e81 |
File details
Details for the file ncas_amof_netcdf_template-2.5.0a0-py3-none-any.whl
.
File metadata
- Download URL: ncas_amof_netcdf_template-2.5.0a0-py3-none-any.whl
- Upload date:
- Size: 22.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d27ecfc276cc69c3e310126bb9fe15a492c6674e4b41329221d4e38c26a4270 |
|
MD5 | 694ffa0b43e1dab43812eb356ebd4ac2 |
|
BLAKE2b-256 | 5022b6242dc2dc2ba3aac3c202fa025a499854e7e315b09ec034205193cc0bb6 |