<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle18
        {mso-style-type:personal-compose;
        font-family:"Times New Roman",serif;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi Mary,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">No my issue was never resolved. I contacted Dave Stepaniak about this and he speculates that it is possible, however, trying to add my RDA username/passwd to the NCL Opendap call is another issue. I can set my cookies using wget to remotely
access an RDA dataset but doing this in NCL is proving problematic. I have decided to run a NCL script on geyser to access the data on glade ans sftp it back to me. However, I am running into another issue. If I transfer the data using NETCDF3 it works
OK. However when I use the setfileoption to netcdf4 the file fills with missing values on my local system(although it is Ok on glade). I am assuming that it is some issue with sftp.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">; setfileoption("nc","Format","NetCDF3")<o:p></o:p></p>
<p class="MsoNormal">; setfileoption("nc","Format","NetCDF4")<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have remotely access the RDA datsets <o:p></o:p></p>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"> Mary Haley <haley@ucar.edu><br>
<b>Sent:</b> Friday, September 11, 2015 5:14 PM<br>
<b>To:</b> Vollaro, David<br>
<b>Cc:</b> ncl-talk@ucar.edu<br>
<b>Subject:</b> Re: [ncl-talk] Reading ECMWF THREDDS data using OPENDAP</span> <o:p>
</o:p></p>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal">Dave,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I didn't see any response to this. Was it ever resolved?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">The issue is that these files are not being served by an OPeNDAP server, and hence you can't open them with an OPeNDAP-enabled client.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">--Mary<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Fri, Sep 4, 2015 at 3:29 PM, Vollaro, David <<a href="mailto:dvollaro@albany.edu" target="_blank">dvollaro@albany.edu</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p style="background:white"><span style="font-family:"Calibri",sans-serif;color:black">Hi,<o:p></o:p></span></p>
<p style="background:white"><span style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
<p style="background:white"><span style="font-family:"Calibri",sans-serif;color:black">I am trying to read an ECMWF dataset from the NCAR RDA THREDDS servver using NCL.<o:p></o:p></span></p>
<p style="background:white"><span style="font-family:"Calibri",sans-serif;color:black">I am using the example OPENDAP script from NCL but am having trouble accessing the data.<o:p></o:p></span></p>
<p style="background:white"><span style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
<p style="background:white"><span style="font-family:"Calibri",sans-serif;color:black">The snippet of the NCL script I am using is below, as is the link to the datasset I am trying to access.<o:p></o:p></span></p>
<p style="background:white"><span style="font-family:"Calibri",sans-serif;color:black">I have sucessfully accessed data using OPENDAP before, so I am hoping that it is just an incorrecct<o:p></o:p></span></p>
<p style="background:white"><span style="font-family:"Calibri",sans-serif;color:black">link-id. I am running 6.1.2...Thanks...<o:p></o:p></span></p>
<p style="background:white"><span style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
<p style="background:white"><span style="font-family:"Calibri",sans-serif;color:black">Dave Vollaro<o:p></o:p></span></p>
<p style="background:white"><span style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
<p style="background:white"><span style="font-family:"Calibri",sans-serif;color:black">--------------- code snippet --------------<o:p></o:p></span></p>
<p style="background:white"><span style="font-family:"Calibri",sans-serif;color:black"> url = "<a href="http://rda.ucar.edu/thredds/fileServer/aggregations/e/ds627.0/15/" target="_blank">http://rda.ucar.edu/thredds/fileServer/aggregations/e/ds627.0/15/</a>"<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<o:p></o:p></span></p>
<p style="background:white"><span style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
<p style="background:white"><span style="font-family:"Calibri",sans-serif;color:black">--------- end snippet-------<o:p></o:p></span></p>
<p style="background:white"><span style="font-family:"Calibri",sans-serif;color:black"> link:<br>
<a 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" target="_blank" title="Ctrl+Click or tap to follow the link">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>
<o:p></o:p></span></p>
<p style="background:white"><span style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
<p style="background:white"><span style="font-family:"Calibri",sans-serif;color:black">error:<o:p></o:p></span></p>
<p style="margin-bottom:12.0pt;background:white"><span style="font-family:"Calibri",sans-serif;color:black">(0)
<a href="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" target="_blank">
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</a><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 "<a href="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" target="_blank">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</a>":
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<o:p></o:p></span></p>
<p style="background:white"><span style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</body>
</html>