Skip to main content

LandscapeDNDC inventory postprocessor to netCDF format

Project description

LandscapeDNDC inventory postprocessor to netCDF format

Version Python Style

Overview

This package converts LanscapeDNDC output to netCDF files for selected variables. Currently used for Viet Nam inventory, but in general applicable for all raster- based LandscapeDNDC simulations.

Installation / Usage

To install use pip:

$ pip install ldndc2nc

Contributing

Please file a pull request (PR) at github here.

Example

ldndc2nc -r REFDATA.nc,cid -y 2000-2010 -o output.nc ldndc_results_dir ldndc_netcdf_dir

Usage

usage: ldndc2nc [-h] [-c MYCONF] [-l PATTERN] [-o OUTFILE] [-r FILE,VAR] [-s]
                [-S] [-v] [-y YEARS]
                indir outdir

positional arguments:
  indir        location of source ldndc txt files
  outdir       destination of created netCDF files

optional arguments:
  -h, --help   show this help message and exit
  -c MYCONF    use MYCONF file as config (default: None)
  -l PATTERN   limit files by PATTERN (default: None)
  -o OUTFILE   name of the output netCDF file (default: outfile.nc)
  -r FILE,VAR  refdata from netCDF file (default: None)
  -s           split output to yearly netCDF files (default: False)
  -S           make passed config (-c) the new default (default: False)
  -v           increase output verbosity (default: False)
  -y YEARS     range of years to consider (default: 2000-2015)

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

ldndc2nc-0.1.0.tar.gz (21.2 kB view details)

Uploaded Source

Built Distribution

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

ldndc2nc-0.1.0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file ldndc2nc-0.1.0.tar.gz.

File metadata

  • Download URL: ldndc2nc-0.1.0.tar.gz
  • Upload date:
  • Size: 21.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for ldndc2nc-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ad46017a3526844cdce41b648847176397c74455710171c9be43b5ba35ae9523
MD5 05e965b39e2d4d0036ae7ee76a3bf3f2
BLAKE2b-256 22ce263b6b358038be9408aa91787be4689987cbd4867a2ee24ad0b5f1140c7b

See more details on using hashes here.

File details

Details for the file ldndc2nc-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ldndc2nc-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for ldndc2nc-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 581d682234df6b90f8b12e9d09ad5ecf6b1804e56dd56f8bed0b058fe6af3e30
MD5 01c3ba16a742e6afe063d14dac47f14c
BLAKE2b-256 1f18077867198d57db4b1e337a210c64e47d646ae96f6ded0c2e3f822c738d54

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