NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

[netcdf-java] ThreddsDataFactory on an FMRC

Having some trouble getting a NetcdfDataset from a ThreddsDataFactory:

<code>
ThreddsDataFactory.Result tdf = new 
ThreddsDataFactory().openFeatureDataset("http://edac-dap3.northerngulfinstitute.org/thredds/catalog/ncom_fukushima_agg/catalog.xml#ncom_fukushima_agg/Fukushima_best.ncd",null);
NetcdDataset ncd = (NetcdfDataset) tdf.featureDataset.getNetcdfFile();
</code>
tdf.fatalError is "true" in this case


Can also test in ToolsUI:

Plug 
"http://edac-dap3.northerngulfinstitute.org/thredds/catalog/ncom_fukushima_agg/catalog.xml";
 into the "THREDDS" tab of ToolsUI.  Click "Connect". Click on the "Best Time 
Series" dataset in the tree view.  At the bottom, click the "Open dataset" 
button.

I get a "Cant open dataset=" error message.  I also get the same message for 
this dataset: " 
http://edac-dap3.northerngulfinstitute.org/thredds/catalog/ncom_amseas_agg/catalog.xml#ncom_amseas_agg/Amseas_Aggregation_best.ncd";

The "Open File" and "Open CoordSys" buttons DO work.


This does work:
<code>
NetcdfDataset ncd = new 
ThreddsDataFactory().openDataset("http://edac-dap3.northerngulfinstitute.org/thredds/catalog/ncom_fukushima_agg/catalog.xml#ncom_fukushima_agg/Fukushima_best.ncd",true,null,null);
ucar.nc2.dt.grid.GridDataset gds = 
ucar.nc2.dt.grid.GridDataset.open(ncd.getLocation());
</code>

---------
Kyle Wilcox, Engineer
Applied Science Associates
55 Village Square Drive
South Kingstown, RI 02879
p: (401) 789-6224
e: kwilcox@xxxxxxxxxxxxxx




  • 2011 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: