<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Elizabeth,</div><div><br></div><div>I get a similar error using ncdump, which is independent from NCL.  So this is not really an NCL question.</div><div><br></div><div>If you want to continue to try Opendap, then please see this NSIDC help page for Opendap access.  You will probably need to provide your Earthdata account credentials using one of the mechanisms shown on that page.  If this does not work expediently, then I suggest that you contact NSIDC User Services through the e-mail link at the bottom of that page.</div><div><br></div><div>    <a href="https://nsidc.org/api/opendap/">https://nsidc.org/api/opendap/</a><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 9, 2019 at 4:02 PM Burakowski, Elizabeth via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">




<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hi Rick, <br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
thanks for the ncl_convert2nc tip, will use it once I can get this OPeNDAP running properly.  For what it's worth, I had an older ncl script that worked fine with the following address for MOD10A1 v005:</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<a href="http://nsidc.org:80/opendap/MOST/MOD10A1.005/" id="gmail-m_8405982088035079502LPlnk875933" target="_blank">http://nsidc.org:80/opendap/MOST/MOD10A1.005/</a></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
But that no longer works. <br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I had created my account at <a href="https://search.earthdata.nasa.gov/search" id="gmail-m_8405982088035079502LPNoLP371282" target="_blank">
https://search.earthdata.nasa.gov</a>, if that helps. <br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Here is the full error message:</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span>syntax error, unexpected WORD_WORD, expecting SCAN_ATTR or SCAN_DATASET or SCAN_ERROR<br>
</span>
<div>context: <!DOCTYPE^ html><!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--><!--[if IE 7]><html class="no-js lt-ie9 lt-ie8"> <![endif]--><!--[if IE 8]><html class="no-js lt-ie9"> <![endif]--><!--[if gt IE 8]><!--><html lang="en" class="no-js"><!--<![endif]-->
 <head> <meta charset="utf-8"> <meta </div></div></div></blockquote><div> </div><div><snip></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><div>toUTCString()+';path=/;';setTimeout(f5_cspm.wait_perf_data,100);}}}}f5_cspm.go();}());</script><br>
</div>
<span>ncopen: filename "<a href="https://n5eil02u.ecs.nsidc.org/opendap/MOST/MOD10A1.006/2019.06.30/MOD10A1.A2019181.h12v04.006.2019183024309.hdf" target="_blank">https://n5eil02u.ecs.nsidc.org/opendap/MOST/MOD10A1.006/2019.06.30/MOD10A1.A2019181.h12v04.006.2019183024309.hdf</a>": NetCDF: Malformed or inaccessible DAP DDS</span><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><br></div><div id="gmail-m_8405982088035079502Signature"><div name="divtagdefaultwrapper">
<div><br></div></div></div><b style="font-size:11pt;color:rgb(0,0,0);font-family:Calibri,sans-serif">From:</b><span style="font-size:11pt;color:rgb(0,0,0);font-family:Calibri,sans-serif"> Rick Brownrigg <</span><a href="mailto:brownrig@ucar.edu" target="_blank" style="font-size:11pt;font-family:Calibri,sans-serif">brownrig@ucar.edu</a><span style="font-size:11pt;color:rgb(0,0,0);font-family:Calibri,sans-serif">></span><div id="gmail-m_8405982088035079502divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000">
<b>Sent:</b> Tuesday, July 9, 2019 5:53 PM<br></font><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><br></font>
</div>
<div>Hi Elizabeth,<div dir="ltr">
<div><br>
</div>
<div>I unfortunately can not test this directly, as one must have an account on that OpenDAP site. However, if you can download the HDF version, you could use "ncl_convert2nc" to NetCDF.</div>
<div><br>
</div>
<div>Otherwise, seeing all the error messages might yield some insights.</div>
<div><br>
</div>
<div>Hope that helps...</div>
<div>Rick</div>
<div><br>
</div>
</div>
<br>
<div class="gmail-m_8405982088035079502x_gmail_quote">
<div dir="ltr" class="gmail-m_8405982088035079502x_gmail_attr">On Tue, Jul 9, 2019 at 3:15 PM Burakowski, Elizabeth via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>> wrote:<br>
</div>
<blockquote class="gmail-m_8405982088035079502x_gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hello, <br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I am writing an NCL script to pull a subset of MOD10A1 Daily Snow Cover files for analysis. I'd like to pull the files as netCDF instead of hdf. 
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
The UI page seems to suggest I can request as .nc:</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__n5eil02u.ecs.nsidc.org_opendap_MOST_MOD10A1.006_2000.03.10_MOD10A1.A2000070.h12v04.006.2016061222432.hdf.html&d=DwMFaQ&c=c6MrceVCY5m5A_KAUkrdoA&r=JW2rHHzYnVYi6ZDBI-2JFMNSreDPLZO-wwOrczEnOlg&m=Mro58-h7ajrO1nUBMp5gNIPzvaLfG99-mvbM6anW2mE&s=Ahorg8HVDvw9p0wAfDWVHds6fBChcRfwQWHIqO_1rV4&e=" id="gmail-m_8405982088035079502x_gmail-m_3685486312612847310LPNoLP629154" target="_blank">https://n5eil02u.ecs.nsidc.org/opendap/MOST/MOD10A1.006/2000.03.10/MOD10A1.A2000070.h12v04.006.2016061222432.hdf.html</a></div>
<br>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
But it's not clear how I would do this in NCL.  For hdf, I tried to use:</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
filename = "MOD10A1.A2019181.h12v04.006.2019183024309.hdf"</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
subdir = "2019.06.30"</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
url = "<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__n5eil02u.ecs.nsidc.org_opendap_MOST_MOD10A1.006_&d=DwMFaQ&c=c6MrceVCY5m5A_KAUkrdoA&r=JW2rHHzYnVYi6ZDBI-2JFMNSreDPLZO-wwOrczEnOlg&m=Mro58-h7ajrO1nUBMp5gNIPzvaLfG99-mvbM6anW2mE&s=RVUJnW6bUsZvHlJtDUaEZ-yfLZkVtiW2gfQGLbVui60&e=" target="_blank">https://n5eil02u.ecs.nsidc.org/opendap/MOST/MOD10A1.006/</a>"</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
exists = isfilepresent(url+sudir+"/"+filename)</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
However, I receive an error that starts with:</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
"syntax error, unexpected WORD_WORD, expecting SCAN_ATTR or SCAN_DATASET or SCAN_ERROR"</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
and ends with:<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
"ncopen: filename "<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__n5eil02u.ecs.nsidc.org_opendap_MOST_MOD10A1.006_2019.06.30_MOD10A1.A2019181.h12v04.006.2019183024309.hdf&d=DwMFaQ&c=c6MrceVCY5m5A_KAUkrdoA&r=JW2rHHzYnVYi6ZDBI-2JFMNSreDPLZO-wwOrczEnOlg&m=Mro58-h7ajrO1nUBMp5gNIPzvaLfG99-mvbM6anW2mE&s=HRC_y02lVRpB5bHAZ1AY5QzBOIg41Hn3bHQx11jaOGs&e=" target="_blank">https://n5eil02u.ecs.nsidc.org/opendap/MOST/MOD10A1.006/2019.06.30/MOD10A1.A2019181.h12v04.006.2019183024309.hdf</a>":
 NetCDF: Malformed or inaccessible DAP DDS"<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I suspect there is something wrong with the url, but this is the one provided by nsidc. 
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Any suggestions?</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Thank you,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Liz.</div></div></blockquote></div></div></div></blockquote></div></div>