I want to convert the navgem2.0_0.176c-sea_2020_03hr_wndspd.D file to the corresponding .nc file. I used hycom-tools.
Make_all.src file is set as follows:
setenv ARCH intelPGF;
Make_ncdf.src file is set as follows:
setenv NCDFC /usr/local/netcdf
setenv NCDF /usr/local/netcdf
setenv EXTRANCDF "-L${NCDFC}/lib -L${NCDF}/lib -lnetcdf -lnetcdff"
The nrl2nc_wnds.csh file is set as follows:
#!/bin/csh
##
##
##
set echo
set time = 1
# --- Create netCDF from a NRL wind stress file
##
##
#cd /root/HYCOM-tools-master/force/src
# --- Input.
##
setenv W navgem2.0_0.176c-sea_2020_03hr
##
setenv FOR071 ${W}_wndspd.D
#setenv CDF_INST "Naval Research Laboratory"
##
/bin/rm -f $CDF_FILE
##
~/HYCOM-tools-master/force/src/nrl2nc<<E-o-D
&NRL2NCDF
NFLD = 1,
CNAME ='wndspd',
FLG_SCL = 3,
T_BOUNDS = 0.0, 0.0,
&END
E-o-D
-------------------------------------------------- ------------------------------------------------
When I run the nrl2nc_wnds.csh file, the following occurs:
set time = 1
setenv W navgem2.0_0.176c-sea_2020_03hr
setenv FOR071 navgem2.0_0.176c-sea_2020_03hr_wndspd.D
/root/HYCOM-tools-master/force/src/nrl2nc
READING /NRL2NCDF/
&NRL2NCDF
NFLD = 1,
CNAME = wndspd,
,
,
,
,
PNAME =,
,
,
,
,
SNAME =,
,
,
,
,
UNAME =,
,
,
,
,
FLG_SCL = 3,
0,
0,
0,
0,
SCALE_I = 1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
ADD_OFF = 0.000000,
0.000000,
0.000000,
0.000000,
0.000000,
SCL_MKS = 1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
OFF_MKS = 0.000000,
0.000000,
0.000000,
0.000000,
0.000000,
T_BOUNDS = 0.000000000000000,
0.000000000000000,
0.000000000000000,
0.000000000000000,
0.000000000000000,
0.000000000000000,
0.000000000000000,
0.000000000000000,
0.000000000000000,
0.000000000000000
/
573
wndspd: PACKED MIN = 0.00000000000E+00 MAX = 0.63999023438E+02
wndspd: PACKED MIN = 0.00000000000000 MAX = 63.99902343750000
FINAL /NRL2NCDF/
&NRL2NCDF
NFLD = 1,
CNAME = wndspd,
,
,
,
,
PNAME = 10m wind speed,
,
,
,
,
SNAME = wind_speed,
,
,
,
,
FLG_SCL = 3,
0,
0,
0,
0,
SCALE_I = 1024.000 ,
1.000000 ,
1.000000 ,
1.000000 ,
1.000000 ,
ADD_OFF = 32.00000 ,
0.000000 ,
0.000000 ,
0.000000 ,
0.000000 ,
SCL_MKS = 1.000000 ,
1.000000 ,
1.000000 ,
1.000000 ,
1.000000 ,
OFF_MKS = 0.000000 ,
0.000000 ,
0.000000 ,
0.000000 ,
0.000000 ,
T_BOUNDS = 0.000000000000000 ,
0.000000000000000 ,
0.000000000000000 ,
0.000000000000000 ,
0.000000000000000 ,
0.000000000000000 ,
0.000000000000000 ,
0.000000000000000 ,
0.000000000000000 ,
0.000000000000000
/
horout - title=NVGM 2.0 0.176c 2020 3h wndspd, MKS
WRITING RECORD 1 FDAY = 43556.00 FDATE =20200401.0000
error in profout - from NetCDF library
nf90_put_var-pLonVarID
NetCDF: Start+count exceeds dimension bound
Warning: ieee_inexact is signaling
FORTRAN STOP
1.327u 5.506s 1:09.40 9.8% 0+0k 9387152+56io 7pf+0w
------------------------------------------------------------------------------------------
I have just started to learn about this aspect, I do not know why this error occurs. If you can help me, I will thank you very much!