Library of netcdf functions in wrf_io.F90

Any miscellaneous question/problem/comment related to WRF support that does not fit under any of the other category
Post Reply
Posts: 3
Joined: Fri Dec 11, 2020 10:02 pm

Library of netcdf functions in wrf_io.F90

Post by Jeff_Duda » Fri Apr 16, 2021 8:14 pm

I wish to modify WRF history files in such a way as to be able to use the modified files as IC files (i.e., wrfinput_d01/wrfinput_d02 etc.) for subsequent WRF runs. I have Fortran 90 code that does this, and it uses netcdf 4.6.1 for it. The problem is that some operation within my code causes the input WRF history file format to change from netcdf3 to netcdf4, and the particular version of WRF (this part is unalterable, so please do not suggest I use a different version of WRF) I have cannot use netcdf4 formatted wrfinput files.

A colleague pointed out to me that there are functions in external/io_netcdf/wrf_io.F90 that can modify WRF files without changing the netcdf file format. I have examined the source code but am not familiar with the functions within.

Can someone provide a brief instruction on which operations need to be performed using this library of functions to open, inquire, and write to an existing WRF history files, please?


Post Reply

Return to “Miscellaneous”