Skip to main content

Package to create NCAS AMOF netCDF files.

Project description

ncas-amof-netcdf-template

PyPI Conda (channel only) PyPI - Python Version

Documentation Status GitHub Workflow Status pre-commit.ci status

Ruff Code style: black codecov

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ncas_amof_netcdf_template-2.6.1.tar.gz (34.0 kB view details)

Uploaded Source

Built Distribution

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

ncas_amof_netcdf_template-2.6.1-py3-none-any.whl (27.7 kB view details)

Uploaded Python 3

File details

Details for the file ncas_amof_netcdf_template-2.6.1.tar.gz.

File metadata

File hashes

Hashes for ncas_amof_netcdf_template-2.6.1.tar.gz
Algorithm Hash digest
SHA256 050216730847beb06f1571528d718224adb3c0877957c38c951133d0f9521cd7
MD5 9b60c743af6cdecdbd71ecae5528db4d
BLAKE2b-256 6bff508b0d0122d62be825f54bef53471992d878bf1ef6bd0e24841947ac2f32

See more details on using hashes here.

File details

Details for the file ncas_amof_netcdf_template-2.6.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ncas_amof_netcdf_template-2.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6b8c5739ce51f653ba8aae6a9918a4ccfe9d16d719f75b43a5428fe1a71f94de
MD5 9da5340a6b5b81bd3474c37ebb6d21a9
BLAKE2b-256 73eafed08d6cbb005a57461f8b6cf0b7911126d5da7cf3a18347a4aeb7595d75

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