Skip to main content

download mete data

Project description

dmete

基于谭永强提供的自动气象站观测下载接口,下载小时气象数据,并输出成标准的文本格式

用法

$ python -m dmete -h
usage: __main__.py [-h] [-b BEGTIME] [-e ENDTIME] [-o OUTPATH]

Parameters of this program

optional arguments:
  -h,         --help             show this help message and exit
  -b BEGTIME, --begTime BEGTIME  开始北京时间
  -e ENDTIME, --endTime ENDTIME  结束北京时间
  -o OUTPATH, --outPath OUTPATH  输出路径

如果不是在公司内网下载,请修改dmete/dump.py

class NetConfigure:
    ''' globale variables '''
    user = 'moshi'
    pswrd = 'ad7ed4f6730a7e784535c3b6a0becc92'
    inner = "http://10.110.18.215:8000/dataSup/getZrAws1DataIntegral"
    outer = "http://61.50.111.214:19008/dataSup/getZrAws1DataIntegral"
    address = outer # inner

例子

python -m dmete -b 2018090100
python -m dmete -b 2018090100 -e 2018090221
python -m dmete -b 2018090100 -e 2018090221 -o ./obs

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for dmete, version 1.1.0
Filename, size File type Python version Upload date Hashes
Filename, size dmete-1.1.0-py3-none-any.whl (55.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size dmete-1.1.0.tar.gz (54.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page