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, products = product date = None, dimension_lengths = {}, loc = 'land')
where:
instrument- name of NCAS instrument, e.g. "ncas-ceilometer-3"products- data product to use to make netCDF file with.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.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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ncas_amof_netcdf_template-2.5.2.tar.gz.
File metadata
- Download URL: ncas_amof_netcdf_template-2.5.2.tar.gz
- Upload date:
- Size: 33.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38388659a661ff205bc1edaea56e0aac3472558521915d0b900ccce71fe7319d
|
|
| MD5 |
09932f2ee3d5738a54374c0a390aa86c
|
|
| BLAKE2b-256 |
9751fab39d6f983ba145735a95959ab42d0c2b0f48b3319f442ed4f38af4cea1
|
File details
Details for the file ncas_amof_netcdf_template-2.5.2-py3-none-any.whl.
File metadata
- Download URL: ncas_amof_netcdf_template-2.5.2-py3-none-any.whl
- Upload date:
- Size: 27.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7abb6a67184e9235b830078f009184e7aacac278b6106338401117a28330f282
|
|
| MD5 |
29ffe99b0fdbfc62eeb13460737c5436
|
|
| BLAKE2b-256 |
52983b44a1c38934c250e92281a5a6662c9dc637bac0eff3b36a9b32da3699ed
|