Skip to main content

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


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.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

rshub-0.2.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file rshub-0.2.0.tar.gz.

File metadata

  • Download URL: rshub-0.2.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.8.5

File hashes

Hashes for rshub-0.2.0.tar.gz
Algorithm Hash digest
SHA256 5c4fdeeec43f682c9ad64650b566d1667eaf4d05d501ea02dc5d00d17c13dc53
MD5 10607130e6663414f8795bcab9bda53f
BLAKE2b-256 8f453e5499fd3414028f3f5a2adf7a963e75f1aeffd60bb74d5a02e0996f4f9f

See more details on using hashes here.

File details

Details for the file rshub-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: rshub-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.8.5

File hashes

Hashes for rshub-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cf025eedbc914363aab50fa15b184e75e3236084f3e38b4aafac0f04b7a57827
MD5 ac46b339f06bff71329dcc613e8f09b8
BLAKE2b-256 fedc6c11861140f14f287e96d1d7e47001ba9a904a390e043fa470bb19428360

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