Note on tslist for sub 100m simulations

jphorne

New member
This is a unique situation that most people will not encounter, but I thought I would bring it up regardless.

If you are running WRF-LES at sub-100 m resolution, be aware that the lat/lon precision (0.001~111m) used by default in the tslist is insufficient to pinpoint the correct grid cell.

This can be altered by increasing the precision of the lat/lon in the tslist read in by wrf_tsin.F:
ELSE
READ(UNIT=iunit, FMT='(A25,1X,A5,1X,F9.5,1X,F10.5)', IOSTAT=istatus) ! <------- HERE I increased the floating point percison
grid%desctsloc(grid%ntsloc+1), grid%nametsloc(grid%ntsloc+1), &
grid%lattsloc(grid%ntsloc+1), grid%lontsloc(grid%ntsloc+1)

For example now ...
#-----------------------------------------------#
# 24 characters for name | pfx | LAT | LON |
#-----------------------------------------------#
BSEC_AGC BSAGC 39.29824 -76.58285
 
This is a unique situation that most people will not encounter, but I thought I would bring it up regardless.

If you are running WRF-LES at sub-100 m resolution, be aware that the lat/lon precision (0.001~111m) used by default in the tslist is insufficient to pinpoint the correct grid cell.

This can be altered by increasing the precision of the lat/lon in the tslist read in by wrf_tsin.F:
ELSE
READ(UNIT=iunit, FMT='(A25,1X,A5,1X,F9.5,1X,F10.5)', IOSTAT=istatus) ! <------- HERE I increased the floating point percison
grid%desctsloc(grid%ntsloc+1), grid%nametsloc(grid%ntsloc+1), &
grid%lattsloc(grid%ntsloc+1), grid%lontsloc(grid%ntsloc+1)

For example now ...
#-----------------------------------------------#
# 24 characters for name | pfx | LAT | LON |
#-----------------------------------------------#
BSEC_AGC BSAGC 39.29824 -76.58285
Hello,
In which version of WRF are you implementing this? I can't seem to find exactly this part of code in wrf_timeseries.F from WRF v4.6.0 version.
I would like to know the precision of the lat-lon coordinates in my model.
 
Back
Top