Hi Jim,
I have a group of 25 grib files that are produced by a locally run
model. The files name do not end in
grb or grib. So in the "Data Choosers" tab I select "Aggregrate Grids
By Time" for "Data Source Type".
I then go to the directory where the grib files are stored and the
files are listed in the window. I then
select "Grid Files(netCDF, GRIB,OpeNDAP,GEMPAK)" for the "Files of
Type". The listing goes blank as if there
are no grib files in that directory. So I have to assume that IDV is
looking for a particular filename format.
I'm not wanting to change the filename format that the model spits out
as other progrmas use these files.
Yes, the "Files of type" uses some pre-defined patterns in the IDV. You
can always leave this as "All Files".
Semantically, the IDV just uses the Files of type to filter what is
shown in the File chooser. It uses the "Data Source Type" to actually
figure out what kinds of data you have selected.
So is there a way to configure IDV to look for the particular naming
convention that I have or what?
Attached is a datasource.xml file that you can install as a plugin
(Tools->Plugin Manager: File menu or copy the file to:
~/.unidata/idv/DefaultIdv/plugins
You should edit this file to include the regular expressions that match
your file naming conventions.
-Jeff
<?xml version="1.0" encoding="ISO-8859-1"?>
<datasources>
<!-- Add the regular expression patterns to the comma separated patterns list
-->
<datasource
id="yourdatasourceid"
factory="ucar.unidata.data.grid.GeoGridDataSource"
patterns="\.grb$,\.grib$,\.gr2,\.grib1$,\.grib2$"
fileselection="true"
doesmultiples="true"
label="Your special aggregated data source">
<property name="timeVariable" value="time"/>
<property
name="icon"
value="/auxdata/ui/icons/3D.gif"/>
</datasource>
</datasources>