- Notifications
You must be signed in to change notification settings - Fork3
Download figures from National Meteorological Center, China (NMC) website
License
NotificationsYou must be signed in to change notification settings
zxdawn/nmc-crawler
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Script of downloading figures from NMC website:http://www.nmc.cn/
Currently, this script supports downloadingweathercharts andradar figures.
Download or clone the repository first
git clone https://github.com/zxdawn/nmc-crawler.git
Check the help information
python nmc_crawler.py --help
Usage: nmc_crawler.py [OPTIONS] Download weathercharts and radar figures from NMC. Contact: xinzhang1215@gmail.comOptions: -k, --kind [radar|weatherchart|ltng] Kind of data [required] -a, --area [all|region|station] Region of maps: For weatherchart and ltng, you don't need to specify this parameter. [default: region] -r, --resolution [medium|small] Resolution of figures [default: medium] -s, --savepath TEXT Savepath of figures [default: ./] -v, --verbose INTEGER verbose level [default: 0] --help Show this message and exit.
Run the script at the background every hour:
nohup bash -c "while true; do python -u nmc_crawler.py -k radar; sleep 3600; done" > radar.log 2>&1 &
Download regional radar figures:
Download radar figures of all stations:
Download weathercharts:
Download lightning figures
├── radar│ ├── region│ │ ├── chinaall│ │ │ └── yyyymm│ │ │ └── mmdd│ │ ├── dongbei│ │ │ └── yyyymm│ │ │ └── mmdd│ │ ├── huabei│ │ │ └── yyyymm│ │ │ └── mmdd│ │ ├── huadong│ │ │ └── yyyymm│ │ │ └── mmdd│ │ ├── huanan│ │ │ └── yyyymm│ │ │ └── mmdd│ │ ├── huazhong│ │ │ └── yyyymm│ │ │ └── mmdd│ │ ├── xibei│ │ │ └── yyyymm│ │ │ └── mmdd│ │ └── xinan│ │ └── yyyymm│ │ └── mmdd│ └── station│ ├── jiang-su│ │ ├── chang-zhou│ │ ├── huai-an│ │ ├── lian-yun-gang│ │ ├── nan-jing│ │ ├── nan-tong│ │ ├── tai-zhou│ │ ├── xu-zhou│ │ └── yan-cheng│ ├── liao-ning│ │ ├── chao-yang│ │ ├── da-lian│ │ ├── shen-yang│ │ └── ying-kou│ └── ....└── weatherchart └── china └── yyyymm ├── cloud-h000 ├── cloud-h100 ├── cloud-h200 ├── cloud-h500 ├── cloud-h700 ├── cloud-h850 ├── cloud-h925 ├── radar-h000 ├── radar-h100 ├── radar-h200 ├── radar-h500 ├── radar-h700 ├── radar-h850 ├── radar-h925 ├── weatherchart-h000 ├── weatherchart-h100 ├── weatherchart-h200 ├── weatherchart-h500 ├── weatherchart-h700 ├── weatherchart-h850 └── weatherchart-h925