[R] Error in R_nc4_open
Roy Mendelssohn - NOAA Federal
roy.mendelssohn at noaa.gov
Wed Jan 11 23:04:31 CET 2017
Try replacing http with https.
> gribfile <- "https://nomads.ncdc.noaa.gov/thredds/dodsC/modeldata/cfsv2_forecast_ts_9mon/2011/201104/20110401/2011040100/tmax.01.2011040100.daily.grb2"
> nc <- nc_open(gribfile)
List of 14
$ filename : chr "https://nomads.ncdc.noaa.gov/thredds/dodsC/modeldata/cfsv2_forecast_ts_9mon/2011/201104/20110401/2011040100/tmax.01.2011040100."| __truncated__
$ writable : logi FALSE
$ id : int 65536
$ safemode : logi FALSE
$ format : chr "NC_FORMAT_64BIT"
$ is_GMT : logi FALSE
$ groups :List of 1
> On Jan 11, 2017, at 1: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
> ## 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.
> On Wed, Jan 11, 2017 at 4:27 PM, Jeff Newmiller <jdnewmil at dcn.davis.ca.us>
>> 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
>> 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
>>> Error in R_nc4_open: NetCDF: DAP server error
>>> Any ideas?
>>> with regards
>>> [[alternative HTML version deleted]]
>>> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>>> PLEASE do read the posting guide
>>> 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
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
"The contents of this message do not reflect any position of the U.S. Government or NOAA."
Supervisory Operations Research Analyst
Environmental Research Division
Southwest Fisheries Science Center
***Note new street address***
110 McAllister Way
Santa Cruz, CA 95060
Fax: (831) 420-3980
e-mail: Roy.Mendelssohn at noaa.gov www: http://www.pfeg.noaa.gov/
"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected"
"the arc of the moral universe is long, but it bends toward justice" -MLK Jr.
More information about the R-help