Skip to main content

No project description provided

Project description

tsingroc-pymeteo

清鹏智能气象数据Python SDK

安装

pip install tsingroc-pymeteo

使用

from tsingrocpymeteo import Meteo
from shapely.geometry import box
from datetime import datetime

meteo = Meteo(
    "<后端服务地址>", "<access key>", "<secret key>"
)

# 创建查询范围,类型为shapely.Polygon
center = (115.875, 27.5)
bbox = box(center[0] - 0.4, center[1] - 0.4, center[0] + 0.4, center[1] + 0.4)

res = meteo.get(
    "archive_cn", # 数据表名
    None,
    "era5", # 气象模型名
    bbox,
    (datetime(2024, 11, 7, 0, 0, 0, 0), datetime(2024, 11, 8, 0, 0, 0, 0)), # 时间范围
)

print(res)

响应格式如下:

  • dict: 查询结果
    • table_name (str): 数据表名
    • points (List[dict]): 查询结果
      • model (str): 气象模型名
      • location (str): 坐标点的 WKT 字符串
      • data (pd.DataFrame): 查询结果
    • cost (dict): 查询耗时

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

tsingroc_pymeteo-0.1.3.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

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

tsingroc_pymeteo-0.1.3-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file tsingroc_pymeteo-0.1.3.tar.gz.

File metadata

  • Download URL: tsingroc_pymeteo-0.1.3.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for tsingroc_pymeteo-0.1.3.tar.gz
Algorithm Hash digest
SHA256 a9d6259bacfc312954f302ffd78639960e7074aee2d1cd15f9ff3579dc2f122b
MD5 08eb30764b7571cbc1dd83c67fce5f03
BLAKE2b-256 244e2bff2b5c69f2bf7fcbe3964ab762c7b817060f3d03c3480c53edd876ad4c

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsingroc_pymeteo-0.1.3.tar.gz:

Publisher: release-pypi.yml on tsingroc/tsingroc-pymeteo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tsingroc_pymeteo-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for tsingroc_pymeteo-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a76d7841168279f6fcd98aa821d8db12d40eebd50907f2ac0d9787fa6bb55ce0
MD5 1b74173753acd9035a4b3008d16f0fd6
BLAKE2b-256 b11620acca0aa231d948b16e1a5b549a1547651d08ab364f7db275cd62b6be01

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsingroc_pymeteo-0.1.3-py3-none-any.whl:

Publisher: release-pypi.yml on tsingroc/tsingroc-pymeteo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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