python SDK for R2CLOUD
r2cloud python sdk makes it easier for you to work with your r2cloud server using the python programming language. The SDK uses an object-oriented design and tries to look like r2cloud API.
pip install r2cloud
make install make doc # for generate documentation
import r2cloud.api # init api station = r2cloud.api('https://192.168.0.10') # login to r2cloud station.login("firstname.lastname@example.org", "my_password") # get all observations obs = station.observationList() # filter observation of "NOAA 19", "NOAA 18" and "NOAA 15" obs = r2cloud.tools.common.filterSat(obs, ["NOAA 19", "NOAA 18", "NOAA 15"]) # filter observation with data only obs = r2cloud.tools.common.filterHasData(obs) # print all filtred observations ids for ob in obs: print("Observation " + str(ob.id) + " by " + ob.name)
more examples you can find in
/examples dir on github
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.