所需内容
- python3.6版本安装(①add-apt-repository ppa:deadsnakes/ppa
- ②apt install python3.6)
- pipenv安装(pip install -i +网址+pipenvSimple Index
https://pypi.tuna.tsinghua.edu.cn/simple
- 一堆脚本功能
GitHub - NCAR/wrf_hydro_gis_preprocessorhttps://github.com/NCAR/wrf_hydro_gis_preprocessor实现功能所需py库:(①pipenv --python3.6 创建虚拟环境
- ②pipenv install 初始化
- ③pipenv install -r requirements.txt 安装库
- ④pipenv shell 打开虚拟环境)
- gdal==3.0.4(需要ubuntu系统内先装好sqlite3【https://www.sqlite.org/download.html+第二个】,proj6.2.1,最后才能装gdal,然后才能在pipenv中安装)
- netcdf4==1.5.3
- numpy==1.18.1
- pyproj==2.6.0
- python==3.6.10
- whitebox==1.2.0
- ④pipenv shell 打开虚拟环境)
- ③pipenv install -r requirements.txt 安装库
- ②pipenv install 初始化
初步感想:①使用python自带库,联系WRF-HYDRO,WPS的nc文件,GIS=地理信息系统,即进行有机整合,类似plot一样画出图像【处理、可视化】
②写了很多脚本文件,类似test,以及wrf-hydro的namelist,wps的configure的维度选择,适用于不同情况
③整合各种优势=GIS优势(a.刻画shapefile边界)
=python优势(os库批量处理)
(读取nc,csv等特殊文件=xarray,geopandas)
(matplotlib可视化)
=大学优势(编写python文件实现人性化、各种功能)
=WRF,WPS(创建geotiff栅格文件;创建水流形态网格)