<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi,</p>
<p><br>
</p>
<p>I am trying to read an ECMWF dataset from the NCAR RDA THREDDS servver using NCL.</p>
<p>I am using the example OPENDAP script from NCL but am having trouble accessing the data.</p>
<p><br>
</p>
<p>The snippet of the NCL script I am using is below, as is the link to the datasset I am trying to access.</p>
<p>I have sucessfully accessed data using OPENDAP before, so I am hoping that it is just an incorrecct</p>
<p>link-id. I am running 6.1.2...Thanks...</p>
<p><br>
</p>
<p>Dave Vollaro</p>
<p><br>
</p>
<p>--------------- code snippet --------------</p>
<p> url = "http://rda.ucar.edu/thredds/fileServer/aggregations/e/ds627.0/15/"<br>
filename = url + "ERA_Interim_atmospheric_model_forecast_for_surface-198808/files/ei.oper.fc.sfc.regn128sc.1988080100"<br>
print(filename)<br>
;***********************************************<br>
; DATA SOURCE<br>
;***********************************************<br>
<br>
exists = isfilepresent(filename)<br>
if(.not.exists) then <br>
print("OPeNDAP isfilepresent test unsuccessful.")<br>
print("File doesn't exist or NCL doesn't have OPeNDAP ability on this system")<br>
else<br>
print("OPeNDAP isfilepresent test successful.")<br>
file_nc = addfile(filename,"r")<br>
end if<br>
names = getfilevarnames(file_nc) ;Get the variable names in the<br>
print(names) ;GRIB file and print them out.<br>
end</p>
<p><br>
</p>
<p>--------- end snippet-------</p>
<p> link:<br>
<a title="Ctrl+Click or tap to follow the link" id="LPlnk922513" href="http://rda.ucar.edu/thredds/catalog/aggregations/e/ds627.0/15/ERA_Interim_atmospheric_model_forecast_for_surface-198808/catalog.html?dataset=aggregations/e/ds627.0/15/ERA_Interim_atmospheric_model_forecast_for_surface-198808/files/ei.oper.fc.sfc.regn128sc.1988080100">http://rda.ucar.edu/thredds/catalog/aggregations/e/ds627.0/15/ERA_Interim_atmospheric_model_forecast_for_surface-198808/catalog.html?dataset=aggregations/e/ds627.0/15/ERA_Interim_atmospheric_model_forecast_for_surface-198808/files/ei.oper.fc.sfc.regn128sc.1988080100</a><br>
<br>
</p>
<p><br>
</p>
<p>error:</p>
<p>(0) http://rda.ucar.edu/thredds/fileServer/aggregations/e/ds627.0/15/ERA_Interim_atmospheric_model_forecast_for_surface-198808/files/ei.oper.fc.sfc.regn128sc.1988080100<br>
syntax error, unexpected WORD_WORD, expecting SCAN_ATTR or SCAN_DATASET or SCAN_ERROR<br>
context: <html^><head><title>Apache Tomcat/7.0.63 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 401 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>This request requires HTTP
authentication.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/7.0.63</h3></body></html><br>
ncopen: filename "http://rda.ucar.edu/thredds/fileServer/aggregations/e/ds627.0/15/ERA_Interim_atmospheric_model_forecast_for_surface-198808/files/ei.oper.fc.sfc.regn128sc.1988080100": NetCDF: Malformed or inaccessible DAP DDS<br>
(0) OPeNDAP isfilepresent test unsuccessful.<br>
(0) File doesn't exist or NCL doesn't have OPeNDAP ability on this system<br>
<br>
</p>
<p><br>
</p>
</div>
</body>
</html>