Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File System #15

Open
HumphreysCarter opened this issue Oct 28, 2021 · 1 comment
Open

File System #15

HumphreysCarter opened this issue Oct 28, 2021 · 1 comment

Comments

@HumphreysCarter
Copy link

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.

@wefoust
Copy link
Contributor

wefoust commented Nov 11, 2021

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants