HI Kyle:
Im seeing the problem, its some bug in the opendap code, were checking
into it.
Sorry about the nonexistant error messages.
John
On 4/6/2011 1:26 PM, Kyle Wilcox wrote:
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
_______________________________________________
netcdf-java mailing list
netcdf-java@xxxxxxxxxxxxxxxx
For list information or to unsubscribe, visit:
http://www.unidata.ucar.edu/mailing_lists/