private String lonVarName;
private String elevVarName;
static public boolean isValidFile( NetcdfFile ds)
{
Attribute cdmDtAtt = ds.findGlobalAttributeIgnoreCase( "cdm_data_type");
if ( cdmDtAtt == null )
cdmDtAtt = ds.findGlobalAttributeIgnoreCase( "cdm_datatype");
if ( cdmDtAtt == null ) return false;
if ( ! cdmDtAtt.isString() ) return false;
String cdmDtString = cdmDtAtt.getStringValue();
if ( cdmDtString == null ) return false;
if ( ! cdmDtString.equalsIgnoreCase( FeatureType.TRAJECTORY.toString() ))
return false;
Attribute conventionsAtt = ds.findGlobalAttributeIgnoreCase( "Conventions");
if ( conventionsAtt == null) return( false);
if ( ! conventionsAtt.isString()) return( false);
String convString = conventionsAtt.getStringValue();
StringTokenizer stoke = new StringTokenizer( convString, "," );
while ( stoke.hasMoreTokens() )
{
String toke = stoke.nextToken().trim();