Skip to main content

气象数据读写及访问程序库

提供对MICAPS文件, 卫星云图, 天气雷达等数据的读写程序, 并访问CMADaaS, CIMISS和MICAPS CASSANDRA数据库文件等.

Only Python 3 is supported. 建议安装Anaconda数据科学工具库, 已包括scipy, numpy, matplotlib等大多数常用科学程序库.

Install

请预先安装下列程序库:

  • Numpy, conda install -c conda-forge numpy
  • Scipy, conda install -c conda-forge scipy
  • Xarray, conda install -c conda-forge xarray
  • Pandas, conda install -c conda-forge pandas
  • protobuf, conda install -c conda-forge protobuf
  • urllib3, conda install -c conda-forge urllib3
  • tqdm, conda install -c conda-forge tqdm
  • Python-dateutil, conda install -c conda-forge python-dateutil

若需要实现对grib格式数据的读取, 请安装:

  • eccodes, 使用conda install -c conda-forge eccodes命令(ECMWF的grib工具库, 支持Windows和Linux)
  • cfgrib, 使用conda install -c conda-forge cfgrib命令

若需要使用将标准雷达格式转化为pyart格式程序standard_data_to_pyart, 请安装:

  • arm_pyart, conda install -c conda-forge arm_pyart

Install

Using the fellowing command to install packages:

  pip install git+git://github.com/nmcdev/nmc_met_io.git

or download the package and install:

  git clone --recursive https://github.com/nmcdev/nmc_met_io.git
  cd nmc_met_io
  python setup.py install

设置CIMISS、CMADaaS或MICAPS服务器的地址及用户信息

若要访问CIMISS、CMADaaS或MICAPS服务器, 在配置文件中设置地址和用户信息(若不需要, 则相应项无需配置). 在系统用户目录下("C:\Users\用户名"(windows)或"/home/用户名/"(Linux)), 建立文件夹".nmcdev", 并在里面创建文本文件"config.ini", 内容模板为:

[CIMISS]
DNS = xx.xx.xx.xx
USER_ID = xxxxxxxxx
PASSWORD = xxxxxxxx

[CMADaaS]
DNS = xx.xx.xx.xx
PORT = xx
USER_ID = xxxxxxxxx
PASSWORD = xxxxxxxx
serviceNodeId = NMIC_MUSIC_CMADAAS

[MICAPS]
GDS_IP = xx.xx.xx.xx
GDS_PORT = xxxx

# Cached file directory, if not set,
#   /home/USERNAME/.nmcdev/cache (linux) or C:/Users/USERNAME/.nmcdev/cache (windows) will be used.
[CACHE]
# CACHE_DIR = ~ 

[MAPBOX]
token = pk.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

这里xxxx用相应的地址, 接口和用户信息代替. 如果要用到MAPBOX地图, 可以申请access token.


Metadata

Release files for nmc_met_io 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nmc_met_io 0.1.0
File Size Uploaded Provenance
nmc_met_io-0.1.0.tar.gz 3.2 MB Without provenance Details

Release files / nmc_met_io-0.1.0.tar.gz

Download URL nmc_met_io-0.1.0.tar.gz
Size 3.2 MB
Tags Source
SHA-256 checksum
How to use checksums
907e8a946163258f791fb251aceaac4c6073da2faf34df9625d50b4d377a7808
BLAKE2b-256 checksum
How to use checksums
d6cfc16583e9c783d1b93c4a3067abfae5fcbfc1b5663d7de54f86679d82098f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.0.post20200616 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

Security for nmc_met_io 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page