用于R2CLOUD的python SDK
r2cloud的Python项目详细描述
关于
r2cloudpythonsdk使您可以更轻松地使用python编程语言来使用r2cloud服务器。SDK使用面向对象的设计,并试图看起来像r2cloudapi。在
安装
带pip3
pip install r2cloud
来自回购
^{pr2}$快速入门
importr2cloud.apiimportr2cloud.tools.common# init apistation=r2cloud.api('https://192.168.0.10')# login to r2cloudstation.login("myemail@example.org","my_password")# get all observationsobs=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 onlyobs=r2cloud.tools.common.filterHasData(obs)# print all filtred observations idsforobinobs:print("Observation "+str(ob.id)+" by "+ob.name)
您可以在github上的/examples
dir中找到更多示例
示例屏幕截图
- 项目
标签: