[R] Error in R_nc4_open

Ben Tupper btupper at bigelow.org
Wed Jan 11 23:01:00 CET 2017


Hi,

> error-Error in R_nc4_open: NetCDF: DAP server error

Based upon the error above, the issue appears to be on the server side not your client end.  Perhaps the URL to the grib file is not correct?  I know that I recently switch NOMADS related URLS from http to https.

You also asked about mailing lists.  If you are working with geospatial data then you might like the r-sig-geo list here https://stat.ethz.ch/mailman/listinfo/r-sig-geo


Ben



> On Jan 11, 2017, at 4:46 PM, Debasish Pai Mazumder <pai1981 at gmail.com> wrote:
> 
> Hi Jeff,
> Thanks for your detail response but I am really baffled by this sort of
> response from a help group because I am also a part of a help group
> (NCAR-Command Language).
> 
> Anyway I felt its R/Rstudio issue because my code was working properly
> before..........but since the update it isn't working anymore
> 
> Here is few lines of my code
> 
> library("ncdf4")
> gribfile<-"
> http://nomads.ncdc.noaa.gov/thredds/dodsC/modeldata/cfsv2_forecast_ts_9mon/2011/201104/20110401/2011040100/tmax.01.2011040100.daily.grb2
> "
> ## open connection
> nc <- nc_open(gribfile)
> 
> error-Error in R_nc4_open: NetCDF: DAP server error
> 
> I am getting the error message in nc_open.
> 
> Please excuse me if this not R issue. Please let me know which "*R HELP
> GROUP*" I should post this message.
> 
> -Deb
> 
> 
> 
> 
> On Wed, Jan 11, 2017 at 4:27 PM, Jeff Newmiller <jdnewmil at dcn.davis.ca.us>
> wrote:
> 
>> You will do yourself a favor if you pay attention to which software you
>> are using.  When you use RStudio, the console window is a direct connection
>> to R, which is NOT RStudio... it has a separate installer and a different
>> support group (e.g. this mailing list). All of this means you have failed
>> to tell us anything about the software that actually matters in your
>> question... R, nor the CONTRIBUTED package (meaning NOT part of R or
>> RStudio) containing the function you are having trouble with.
>> 
>> Go read the Posting Guide... carefully... and provide a reproducible
>> example that leads to your error... and post in plain text rather than HTML
>> email so your example doesn't get messed up in transit. The output of
>> sessionInfo() after the error would probably be a good idea also. For good
>> measure you should open R directly rather than through RStudio and confirm
>> the results (if it doesn't happen in R then RStudio may be breaking R
>> (rare, but it has happened) in which case you would have to ask them for
>> help.
>> --
>> Sent from my phone. Please excuse my brevity.
>> 
>> On January 11, 2017 12:32:09 PM PST, Debasish Pai Mazumder <
>> pai1981 at gmail.com> wrote:
>>> Hi all,
>>> I recently updated my Rstudio to the newer version (Version 1.0.136)
>>> and I
>>> started to getting following error when I am trying to read netcdf
>>> files
>>> 
>>> Error in R_nc4_open: NetCDF: DAP server error
>>> 
>>> Any ideas?
>>> 
>>> with regards
>>> -Deb
>>> 
>>>      [[alternative HTML version deleted]]
>>> 
>>> ______________________________________________
>>> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide
>>> http://www.R-project.org/posting-guide.html
>>> and provide commented, minimal, self-contained, reproducible code.
>> 
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

Ben Tupper
Bigelow Laboratory for Ocean Sciences
60 Bigelow Drive, P.O. Box 380
East Boothbay, Maine 04544
http://www.bigelow.org



More information about the R-help mailing list