提供对MICAPS文件, 卫星云图, 天气雷达等数据的读写, 并访问CIMISS和MICAPS CASSANDRA数据库文件等.
Go to file
2020-03-30 23:17:05 +08:00
documents Add examples and documents. 2020-02-17 21:29:11 +08:00
examples Add read micaps example notebooks. 2020-03-30 23:17:05 +08:00
nmc_met_io read_micaps functions can handle the "not numeric" string. 2020-03-30 21:06:17 +08:00
.gitignore add .vscode to ignore 2019-07-04 09:25:35 +08:00
LICENSE Update get_station_data function. 2019-07-03 22:07:05 +08:00
MANIFEST.in Update get_station_data function. 2019-07-03 22:07:05 +08:00
README.md Update readme. 2020-03-27 10:59:32 +08:00
setup.py Add zip_safe = False to setup.py 2020-03-30 16:53:39 +08:00

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

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

Only Python 3 is supported.

Dependencies

Other required packages:

  • numpy
  • scipy
  • xarray
  • pandas
  • protobuf
  • urllib3
  • tqdm
  • 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 = ~ 

这里xxxx用相应的地址, 接口和用户信息代替.