Error to run roms_clm_roms_master_climatology_coawst_mw

Bug reports, work arounds and fixes

Moderators: arango, robertson

Post Reply
Message
Author
agpc
Posts: 63
Joined: Mon Jul 27, 2020 7:44 pm
Location: Applied Geophysics Center (AGPC)

Error to run roms_clm_roms_master_climatology_coawst_mw

#1 Unread post by agpc »

Hi everyone,
I'm a new user of Matlab. When I run the roms_clm_roms_master_climatology_coawst_mw.m program it fails. The detail is displayed below:
Error using netcdflib
The NetCDF library encountered an error during execution of 'putVarDouble' function - 'Numeric conversion not representable
(NC_ERANGE)'.

Error in netcdf.putVar (line 84)
netcdflib(funcstr,ncid,varid,varargin{:});

Error in updatclim_coawst_mw (line 216)
netcdf.putVar(RN,tempid,ubar);

Error in roms_clm_roms_master_climatology_coawst_mw (line 83)
fn=updatclim_coawst_mw(T1,gn,'coawst_clm.nc',wdr,url)
Please help me to address this issue.
Many thanks,

jcwarner
Posts: 1172
Joined: Wed Dec 31, 2003 6:16 pm
Location: USGS, USA

Re: Error to run roms_clm_roms_master_climatology_coawst_mw

#2 Unread post by jcwarner »

this is a tough one. the netcdf variable must be interpolated incorrectly, or something like that. try a different time period just to try and get it to work.

zhengyx
Posts: 10
Joined: Wed Nov 28, 2018 3:00 pm
Location: Shanghai typhoon institute

Re: Error to run roms_clm_roms_master_climatology_coawst_mw

#3 Unread post by zhengyx »

but sometimes it works, without any modification

jcwarner
Posts: 1172
Joined: Wed Dec 31, 2003 6:16 pm
Location: USGS, USA

Re: Error to run roms_clm_roms_master_climatology_coawst_mw

#4 Unread post by jcwarner »

if it works sometimes and not others, then it is your internet connection or the thredds server on the other end.
suggest you try from a hard wired connection (not wifi), and try to acquire data for a short period of time.

-j

zhengyx
Posts: 10
Joined: Wed Nov 28, 2018 3:00 pm
Location: Shanghai typhoon institute

Re: Error to run roms_clm_roms_master_climatology_coawst_mw

#5 Unread post by zhengyx »

I tried from a hard wired connection,and the ‘numdays’ is set to 2, it still doesn't work. The program even interrupted before the output of initial file.

zhengyx
Posts: 10
Joined: Wed Nov 28, 2018 3:00 pm
Location: Shanghai typhoon institute

Re: Error to run roms_clm_roms_master_climatology_coawst_mw

#6 Unread post by zhengyx »

It seems to be a network problem,sometimes it show messages displayed below and it's broken after several cycles, and the error message is same as agpc described above




catch v
doing griddata v for HYCOM level 1
doing griddata v for HYCOM level 2
doing griddata v for HYCOM level 3
doing griddata v for HYCOM level 4
doing griddata v for HYCOM level 5
doing griddata v for HYCOM level 6
doing griddata v for HYCOM level 7
doing griddata v for HYCOM level 8
doing griddata v for HYCOM level 9
doing griddata v for HYCOM level 10
doing griddata v for HYCOM level 11
ucar.nc2.util.net.HTTPException: java.net.SocketException: Connection reset
at ucar.nc2.util.net.HTTPMethod.execute(HTTPMethod.java:498)
at opendap.dap.DConnect2.openConnection(DConnect2.java:257)
at opendap.dap.DConnect2.getData(DConnect2.java:826)
at opendap.dap.DConnect2.getData(DConnect2.java:1116)
at ucar.nc2.dods.DODSNetcdfFile.readDataDDSfromServer(DODSNetcdfFile.java:1485)
at ucar.nc2.dods.DODSNetcdfFile.readData(DODSNetcdfFile.java:1656)
at ucar.nc2.Variable.reallyRead(Variable.java:879)
at ucar.nc2.Variable._read(Variable.java:865)
at ucar.nc2.Variable.read(Variable.java:677)
at ucar.nc2.dataset.VariableDS.reallyRead(VariableDS.java:553)
at ucar.nc2.dataset.VariableDS._read(VariableDS.java:533)
at ucar.nc2.Variable.read(Variable.java:677)
at ucar.nc2.Variable.read(Variable.java:651)
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:210)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
at java.io.BufferedInputStream.read(BufferedInputStream.java:265)
at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)
at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)
at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
at ucar.nc2.util.net.HTTPMethod.execute(HTTPMethod.java:494)
... 12 more
opendap.dap.DAP2Exception: ucar.nc2.util.net.HTTPException: java.net.SocketException: Connection reset
at opendap.dap.DConnect2.openConnection(DConnect2.java:308)
at opendap.dap.DConnect2.getData(DConnect2.java:826)
at opendap.dap.DConnect2.getData(DConnect2.java:1116)
at ucar.nc2.dods.DODSNetcdfFile.readDataDDSfromServer(DODSNetcdfFile.java:1485)
at ucar.nc2.dods.DODSNetcdfFile.readData(DODSNetcdfFile.java:1656)
at ucar.nc2.Variable.reallyRead(Variable.java:879)
at ucar.nc2.Variable._read(Variable.java:865)
at ucar.nc2.Variable.read(Variable.java:677)
at ucar.nc2.dataset.VariableDS.reallyRead(VariableDS.java:553)
at ucar.nc2.dataset.VariableDS._read(VariableDS.java:533)
at ucar.nc2.Variable.read(Variable.java:677)
at ucar.nc2.Variable.read(Variable.java:651)
Caused by: ucar.nc2.util.net.HTTPException: java.net.SocketException: Connection reset
at ucar.nc2.util.net.HTTPMethod.execute(HTTPMethod.java:498)
at opendap.dap.DConnect2.openConnection(DConnect2.java:257)
... 11 more
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:210)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
at java.io.BufferedInputStream.read(BufferedInputStream.java:265)
at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)
at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)
at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
at ucar.nc2.util.net.HTTPMethod.execute(HTTPMethod.java:494)
... 12 more
catch v
doing griddata v for HYCOM level 1
doing griddata v for HYCOM level 2
doing griddata v for HYCOM level 3
doing griddata v for HYCOM level 4
doing griddata v for HYCOM level 5
doing griddata v for HYCOM level 6
doing griddata v for HYCOM level 7
doing griddata v for HYCOM level 8
doing griddata v for HYCOM level 9
doing griddata v for HYCOM level 10
doing griddata v for HYCOM level 11
doing griddata v for HYCOM level 12
doing griddata v for HYCOM level 13
doing griddata v for HYCOM level 14
doing griddata v for HYCOM level 15
doing griddata v for HYCOM level 16
doing griddata v for HYCOM level 17
doing griddata v for HYCOM level 18
doing griddata v for HYCOM level 19

zhaolv
Posts: 39
Joined: Thu Nov 11, 2021 3:56 pm
Location: Changsha University of Science and Technology

Re: Error to run roms_clm_roms_master_climatology_coawst_mw

#7 Unread post by zhaolv »

I also had this problem and could not extract the initial boundary field from HYCOM, how did you solve it?

Post Reply