Liliputian_123
Member
Dear WRF users,
I converted OISST netcdf to grib format.
I am using the script from the WRF directory.
https://www2.mmm.ucar.edu/wrf/users/special_code.html
netcdf-to-intermediate.f
When I compiled the code,
I removed this line:
integer, intrinsic :: iargc
and added this line:
open(11, file=filename, form='unformatted',convert='big_endian')
Then, it successfully compiled.
The output is read perfectly fine when I used rd_intermediate.exe.
When I tried using plotfmt.ncl, the code stops with the following error:
Output of rd_intermediate.exe
But when I tried the plotfmt.ncl in utilities, I get the following error:
I tried converting the file to netcdf and also used the plotfmt_nc.ncl but the results are weird.
I am attaching the output image here and the converted file.
any suggestions how to solve this?
Just remove the .txt extension in the SST file.
View attachment SST_2021-07-01_00.txt
I converted OISST netcdf to grib format.
I am using the script from the WRF directory.
https://www2.mmm.ucar.edu/wrf/users/special_code.html
netcdf-to-intermediate.f
When I compiled the code,
I removed this line:
integer, intrinsic :: iargc
and added this line:
open(11, file=filename, form='unformatted',convert='big_endian')
Then, it successfully compiled.
The output is read perfectly fine when I used rd_intermediate.exe.
When I tried using plotfmt.ncl, the code stops with the following error:
Output of rd_intermediate.exe
Code:
================================================
FIELD = SST
UNITS = K DESCRIPTION = Sea Surface Temperature
DATE = 2021-07-01_00:00:00.0000 FCST = 0.000000
SOURCE =
LEVEL = 200100.000000
I,J DIMS = 1440, 720
IPROJ = 0 PROJECTION = LAT LON
REF_X, REF_Y = 1.000000, 1.000000
REF_LAT, REF_LON = -89.875000, 0.125000
DLAT, DLON = 0.250000, 0.250000
EARTH_RADIUS = 6370.000000
DATA(1,1)=-999.000000
================================================
FIELD = LANDSEA
UNITS = DESCRIPTION = Land Sea Mask
DATE = 2021-07-01_00:00:00.0000 FCST = 0.000000
SOURCE =
LEVEL = 200100.000000
I,J DIMS = 1440, 720
IPROJ = 0 PROJECTION = LAT LON
REF_X, REF_Y = 1.000000, 1.000000
REF_LAT, REF_LON = -89.875000, 0.125000
DLAT, DLON = 0.250000, 0.250000
EARTH_RADIUS = 6370.000000
DATA(1,1)=1.000000
SUCCESSFUL COMPLETION OF PROGRAM RD_INTERMEDIATE
But when I tried the plotfmt.ncl in utilities, I get the following error:
Code:
At line 32 of file plotfmt_rdhead.f90 (unit = 10, file = 'SST:2021-07-01_00')
Fortran runtime error: I/O past end of record on unformatted file
I tried converting the file to netcdf and also used the plotfmt_nc.ncl but the results are weird.
I am attaching the output image here and the converted file.
any suggestions how to solve this?
Just remove the .txt extension in the SST file.
View attachment SST_2021-07-01_00.txt
