Cloudnet data submission tool
Project description
ACTRIS Cloudnet data submission tool
Installation
Linux/MacOS
If you have python
and pip
installed (python >= 3.8
),
run the command:
pip install cloudnet-submit
After that, you can use cloudnet-submit
command to run the program.
Windows
If you are using Windows Subsystem for Linux, then the aforementioned Linux installation should work.
If you are using windows command prompt
and have python
and pip
installed,
you can install cloudnet-submit
with pip
:
pip install cloudnet-submit
Test if the cloudnet-submit
command works:
cloudnet-submit --version
If not, you can use an alternative way to run the program:
python -m cloudnet_submit --version
Getting started
Configuration file
Generate a configuration file:
cloudnet-submit --generate-config
This will generate a cloudnet-config.toml
file in your working directory.
Update your submission credentials in the user_account
section,
and update site
, instrument
, instrument_pid
and path_fmt
fields
to match your instrument/model setup. Remove unnecessary instrument and model sections.
# cloudnet-config.toml
[user_account]
username = "alice"
password = "alicesSecretPassword"
[[instrument]]
site = "hyytiala"
instrument = "rpg-fmcw-94"
instrument_pid = "https://hdl.handle.net/21.12132/3.191564170f8a4686"
path_fmt = "/home/alice/data/hyytiala/rpg-fmcw-94/%Y/%m/%Y%m%d_hyytiala.nc"
[[instrument]]
# you can have additional sections for the same instrument
# e.g. for different path
site = "hyytiala"
instrument = "rpg-fmcw-94"
instrument_pid = "https://hdl.handle.net/21.12132/3.191564170f8a4686"
path_fmt = "/home/another-path/data/hyytiala/rpg-fmcw-94/%Y/%m/%Y%m%d_hyytiala.nc"
[[instrument]]
site = "granada"
instrument = "chm15k"
path_fmt = "/home/alice/data/granada/chm/%Y-%m/chm_grandada_%Y-%m-%d-*.nc"
[[model]]
site = "hyytiala"
model = "ecmwf"
path_fmt = "/home/alice/data/hyytiala/ecmwf/%Y/%Y%m%d_hyytiala_ecmwf.nc"
# You can use proxies (optional)
[network.proxies]
http = "http://10.10.1.10:3128"
https = "http://10.10.1.10:1080"
# Alternatively, You can define proxies as environment variables
# HTTP_PROXY and HTTPS_PROXY
# see: https://requests.readthedocs.io/en/latest/user/advanced/#proxies
cloudnet-submit
will look for files specified in the path_fmt
field
for a given measurement date.
Use the following format codes:
Directive | Meaning | Example |
---|---|---|
%Y |
Year with century | 0001, ..., 2022 |
%y |
Year without century (zero-padded) | 00, ..., 22 |
%m |
Month (zero-padded) | 01, ..., 12 |
%d |
Day (zero-padded) | 01, ..., 31 |
You can also use wildcard character *
in path_fmt
field.
By default, cloudnet-submit
expects the cloudnet-config.toml
file to be
in your working directory.
You can also use --config
flag to define another location and name of the config file:
cloudnet-submit --config /path/to/your/config.toml
Usage
By default, cloudnet-submit
submits data from the past three days.
Use --dry-run
to list files that would be submitted:
cloudnet-submit --dry-run
Submit data to the Cloudnet dataportal:
cloudnet-submit
You can also set the number of days to be submitted (including today):
cloudnet-submit --last-ndays 5
You can also specify a date you want to submit:
cloudnet-submit --date 2022-06-21
Or a list of dates:
cloudnet-submit --date 2022-06-21 2022-05-1
Or a range of dates:
cloudnet-submit --from-date 2022-05-01 --to-date 2022-06-24
See all the options:
cloudnet-submit --help
Feedback and contact
- Bugs, feature requests, documentation: Create an issue on Github
- Or just send us mail :)
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 cloudnet-submit-0.0.5.tar.gz
.
File metadata
- Download URL: cloudnet-submit-0.0.5.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f200396df49ca39e0ee7d367bde123d54644ad9f836f4899feb84b4e701669e6 |
|
MD5 | 403bfe5105f59f2c36d4a9d4f0f6ad3d |
|
BLAKE2b-256 | f267a7426f260ee8e01331b1b51ef74f23d20ea97950adf5de596caa733b1976 |
File details
Details for the file cloudnet_submit-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: cloudnet_submit-0.0.5-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c586f2b2dbee5f4c20a6a28257eceee2ce082500f45c519a4627b6efedf1106 |
|
MD5 | e0aa5c56ed9a44e8fee65a9ba88939ce |
|
BLAKE2b-256 | 9b874cf8eb3e633798d8e42854072ebf14b3833f398348a54d56ccff0ef6fbdd |