前提

wrf-python用于处理WRF模式的数据,jupyter notebook用于交互式编程,大服务器可以用jupyter运行wrf-python,主要调用ll_to_xy函数,用于将经纬度坐标转换为网格坐标。

1. 创建新的python环境

这里指定一下python=3.7比较稳定,之前用3.10的版本和ikernal有冲突,无法启动jupyter notebook。

1
2
conda create -n wrfpython_env python=3.7
conda activate wrfpython_env

2. 安装jupyter notebook并使设置密码

1
2
conda install jupyter
jupyter notebook password

3. 安装wrf-python

1
conda install -c conda-forge wrf-python

4. 安装ipykernel并设置名称

1
2
conda install -c conda-forge ipykernel
python -m ipykernel install --user --name wrfpython_env --display-name "wrfpython_env"

5. 启动jupyter notebook

1
jupyter notebook

完结撒花!!