NCAR/pi-wrf

File System

Opened this issue · 1 comments

Where are the files output to? I see them in the notebook but I'd like to access them outside of that environment, as well look at the raw files produced by WRF.

Also what code is it looking at? I tried to change the domain resolution in set_domain.py but it's still 30 km each time.

Hi @HumphreysCarter,
I haven't looked into the files in the notebook, but I think I do see the issue with changing the resolution. The resolution variable in set_domain.py does not update the dx and dy in the namelist.wps file. Hence, the code assumes 30km resolution.

A quick fix is to add the following lines to the set_domain.py file.

`subprocess.call("sed -i /dx/c\dx='{}' " "/pi-wrf/WRF_System/WPS/namelist.wps".format(resolution),shell=True)

subprocess.call("sed -i /dx/c\dx='{}' " "/pi-wrf/WRF_System/WRFV3/run/namelist.input".format(resolution),shell=True)

subprocess.call("sed -i /dy/c\dy='{}' " "/pi-wrf/WRF_System/WPS/namelist.wps".format(resolution),shell=True)

subprocess.call("sed -i /dy/c\dy='{}' " "/pi-wrf/WRF_System/WRFV3/run/namelist.input".format(resolution),shell=True)`

However, be careful. You may need to scale your indexes to compensate for the increased resolution (e.g. s_we, e_we,s_sn,e_sn). Lastly, make sure to adjust the timestep which is found in the last few lines of set_domain.py

Hope this helps!