This a python package to run and download submitted files on RSHub
Project description
Remote Sensing hub toolbox (RShub)
This is Python based toolbox to run model, check status, and retrieve model results
Supported functions
Function 1: Run a model
from rstool import submit_jobs
data1 = {
'scenario_flag': scenario_flag,
'output_var': output_var,
'fGHz': fGHz,
'algorithm':algorithm,
'scatters': scatters1,
'project_name':project_name,
'task_name':task_name1,
'token': token,
'level_required':1
}
result1=submit_jobs.run(data1)
Function 2: Check Job Status
from rstool import submit_jobs
result=submit_jobs.check_completion(token, project_name, task_name)
print(result)
Function 3: Retrieve error messages from failed jobs (if any)
from rstool.load_file import load_file
data = load_file(token, project_name, task_name, fGHz)
message = data.load_error_message()
Function 4: Retrieve Results
from rshub.load_file import load_file
data1 = load_file(token, project_name, task_name1, fGHz, scenario_flag,output_var)
data_multi = data1.load_outputs()
# Using vegetation model as an example,
# Brightness temperature and incident angles are stored in "data"
TU_all = data_multi['TU_all'] # Brightness temperature
theta_obs = data_multi['theta_obs'] # IncidentAngles
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
rshub-0.2.1.tar.gz
(4.4 kB
view details)
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
rshub-0.2.1-py3-none-any.whl
(4.9 kB
view details)
File details
Details for the file rshub-0.2.1.tar.gz.
File metadata
- Download URL: rshub-0.2.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0693b8ade03bc04e0b093ae0507e321ca2e9ec565a2ec1b86114a6b8e50e71c6
|
|
| MD5 |
d706ea85a208e51b9684eb08c672f192
|
|
| BLAKE2b-256 |
a00ea80e6e4fbbf3278dbcaf53bbfa32cfb14418e3dbbc0efb608324c819d3cd
|
File details
Details for the file rshub-0.2.1-py3-none-any.whl.
File metadata
- Download URL: rshub-0.2.1-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
623f5e2751bc76786fa3afa294ad1a9273fed5391ce8bdd38099324ce3e30bef
|
|
| MD5 |
6acf9176d6ffc1787010ab212b3f37fb
|
|
| BLAKE2b-256 |
e527a42175a6ab2b7df8d6496acc1db689624fdd3e6c5e810753c29156639776
|