Skip to main content

minio/s3 api

Project description

wis-s3api

image image

获取minio中的grid数据

安装

  • 通过pip
pip install wis-s3api
  • 通过源代码
git clone http://gitlab.waterism.com:8888/zhujianfeng/wis-s3api.git

功能及使用

直接从内网minio获取grid数据,返回xarray.Dataset或DataArray格式。数据包括:

from wis_s3api import era5

# 起止时间和四至范围
start_time = np.datetime64('2021-01-01T01:00:00.000000000')
end_time = np.datetime64('2021-02-01T00:00:00.000000000')
bbox = (121,38,122,40)

# 获取Dataset
ds = era5.open(['Total precipitation','10 metre U wind component'],start_time=start_time,end_time=end_time,bbox=bbox)
  • 获取GPM数据
from wis_s3api import gpm

# 起止时间和四至范围
start_time = np.datetime64('2021-01-01T01:00:00.000000000')
end_time = np.datetime64('2021-02-01T00:00:00.000000000')
bbox = (121,38,122,40)

# 获取Dataset
ds = gpm.open(start_time=start_time,end_time=end_time,bbox=bbox)
  • 获取GFS数据

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

wis-s3api-0.0.9.tar.gz (9.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page