[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20030707: Unable to create data source for the file...
- Subject: 20030707: Unable to create data source for the file...
- Date: Mon, 07 Jul 2003 16:36:13 -0600
>From: "Todd Plessel" <address@hidden>
>Organization: EPA
>Keywords: 200307072150.h67LomLd022101 IDV datasource
Hi Todd-
>I merged the modified Convention.java and (my)
>M3IOVGGridConvention.java and recompiled and ran IDV
>After selecting NewData Source and MET_CROSS_2 Ok
>it fails with the message:
>
>Unable to create data source for the file ...../MET_CROSS_2
>
>which I've traced to
>
>metapps/ucar/unidata/idv/chooser/FileChooser.java
>
>Are there any other files I need to modify to get this to work?
The data type is based on the name of the file using a pattern
described in /ucar/unidata/idv/resources/datasource.xml.
By convention, netCDF files end in .nc or .cdf. You could
change your file name to MET_CROSS_2.nc or modify the entry
in datasource.xml:
<datasource id="NetCDF.Grid"
factory="ucar.unidata.data.grid.GeoGridDataSource"
patterns=".nc$,.cdf$"
fileselection="true"
label="Netcdf grid files"
/>
to
<datasource id="NetCDF.Grid"
factory="ucar.unidata.data.grid.GeoGridDataSource"
patterns=".nc$,.cdf$,MET_CROSS_2"
fileselection="true"
label="Netcdf grid files"
/>
In the latest release, under the Files/URL tab in the
DataSourceSelector, you can specify the type of data from the
"Data source type" combo box above the file selector. The
default is to guess based on the name.
Don Murray