Page 1 of 1

arw2arl

Posted: April 14th, 2016, 5:15 pm
by akp
Hello,

We are moving to new forecast grids and I am having a bit of trouble changing the header data in ARLDATA.CFG to get the WRF files to process. I was able to make changes to one domain with no trouble but the larger domain is significantly different from the old version.

My question is: What values need to be changed other than 'numb x pt', 'numb of y pt'?


The old ARLDATA.CFG file header is:

Model Type: AWRF
Grid Numb: 99
Vert Coord: 1
Pole Lat: 0.00
Pole Lon: -157.50
Ref Lat: 10.05
Ref Lon: -157.50
Grid Size: 3.00
Orientation: 0.00
Cone Angle: 10.05
Sync X Pt: 110.50
Sync Y Pt: 85.50
Sync Lat: 20.54
Sync Lon: -157.50
Reserved: 0.00
Numb X pt: 220
Numb Y pt: 170
Numb Levels: 40

which is associated with WRF header data:

:WEST-EAST_PATCH_START_UNSTAG = 1 ;
:WEST-EAST_PATCH_END_UNSTAG = 220 ;
:WEST-EAST_PATCH_START_STAG = 1 ;
:WEST-EAST_PATCH_END_STAG = 221 ;
:SOUTH-NORTH_PATCH_START_UNSTAG = 1 ;
:SOUTH-NORTH_PATCH_END_UNSTAG = 170 ;
:SOUTH-NORTH_PATCH_START_STAG = 1 ;
:SOUTH-NORTH_PATCH_END_STAG = 171 ;
:BOTTOM-TOP_PATCH_START_UNSTAG = 1 ;
:BOTTOM-TOP_PATCH_END_UNSTAG = 39 ;
:BOTTOM-TOP_PATCH_START_STAG = 1 ;
:BOTTOM-TOP_PATCH_END_STAG = 40 ;
:GRID_ID = 2 ;
:PARENT_ID = 1 ;
:I_PARENT_START = 104 ;
:J_PARENT_START = 113 ;
:PARENT_GRID_RATIO = 5 ;
:DT = 15.f ;
:CEN_LAT = 20.53873f ;
:CEN_LON = -157.5f ;
:TRUELAT1 = 20.f ;
:TRUELAT2 = 0.f ;
:MOAD_CEN_LAT = 19.99999f ;
:STAND_LON = -157.5f ;
:POLE_LAT = 90.f ;
:POLE_LON = 0.f ;


and the new ARLDATA.CFG file header is:

Model Type: AWRF
Grid Numb: 99
Vert Coord: 1
Pole Lat: 0.00
Pole Lon: -157.50
Ref Lat: 10.05
Ref Lon: -157.50
Grid Size: 4.50
Orientation: 0.00
Cone Angle: 10.05
Sync X Pt: 110.50
Sync Y Pt: 85.50
Sync Lat: 20.54
Sync Lon: -157.50
Reserved: 0.00
Numb X pt: 451
Numb Y pt: 451
Numb Levels: 40

which is associated with WRF header data:

:WEST-EAST_PATCH_START_UNSTAG = 1 ;
:WEST-EAST_PATCH_END_UNSTAG = 450 ;
:WEST-EAST_PATCH_START_STAG = 1 ;
:WEST-EAST_PATCH_END_STAG = 451 ;
:SOUTH-NORTH_PATCH_START_UNSTAG = 1 ;
:SOUTH-NORTH_PATCH_END_UNSTAG = 450 ;
:SOUTH-NORTH_PATCH_START_STAG = 1 ;
:SOUTH-NORTH_PATCH_END_STAG = 451 ;
:BOTTOM-TOP_PATCH_START_UNSTAG = 1 ;
:BOTTOM-TOP_PATCH_END_UNSTAG = 39 ;
:BOTTOM-TOP_PATCH_START_STAG = 1 ;
:BOTTOM-TOP_PATCH_END_STAG = 40 ;
:GRID_ID = 1 ;
:PARENT_ID = 0 ;
:I_PARENT_START = 1 ;
:J_PARENT_START = 1 ;
:PARENT_GRID_RATIO = 1 ;
:CEN_LAT = 19.99999f ;
:CEN_LON = -157.5f ;
:TRUELAT1 = 20.f ;
:TRUELAT2 = 0.f ;
:MOAD_CEN_LAT = 19.99999f ;
:STAND_LON = -157.5f ;
:POLE_LAT = 90.f ;
:POLE_LON = 0.f ;

Re: arw2arl

Posted: April 18th, 2016, 5:28 pm
by Fantine
The arw2arl program should pick up grid information from the header of a WRF output file to process the data. Please delete the old ARLDATA.CFG and run conversion program again.
If you still get error, please post the error message.