This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
>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