static public ThreddsMetadata.Variables extractVariables(FeatureDatasetPoint fd) {
    ThreddsMetadata.Variables vars = new ThreddsMetadata.Variables("CF-1.5");
    List<VariableSimpleIF> dataVars =  fd.getDataVariables();
    if (dataVars == null)
      return vars;

    for (VariableSimpleIF v : dataVars) {
      ThreddsMetadata.Variable tv = new ThreddsMetadata.Variable();
      vars.addVariable(tv);

      tv.setName(v.getShortName());
      tv.setDescription(v.getDescription());
      tv.setUnits(v.getUnitsString());

      ucar.nc2.Attribute att = v.findAttributeIgnoreCase("standard_name");
      if (att != null)
         tv.setVocabularyName(att.getStringValue());
    }
    vars.sort();
    return vars;
  }
static public ThreddsMetadata.Variables extractVariables(FeatureDatasetPoint fd) {
    ThreddsMetadata.Variables vars = new ThreddsMetadata.Variables("CF-1.5");
    List<VariableSimpleIF> dataVars =  fd.getDataVariables();
    if (dataVars == null)
      return vars;

    for (VariableSimpleIF v : dataVars) {
      ThreddsMetadata.Variable tv = new ThreddsMetadata.Variable();
      vars.addVariable(tv);

      tv.setName(v.getShortName());
      tv.setDescription(v.getDescription());
      tv.setUnits(v.getUnitsString());

      ucar.nc2.Attribute att = v.findAttributeIgnoreCase("standard_name");
      if (att != null)
         tv.setVocabularyName(att.getStringValue());
    }
    vars.sort();
    return vars;
  }
static public ThreddsMetadata . Variables extractVariables ( FeatureDatasetPoint fd ) { ThreddsMetadata . Variables vars = new ThreddsMetadata . Variables ( "CF-1.5" ) ; List < VariableSimpleIF > dataVars = fd . getDataVariables ( ) ; if ( dataVars == null ) return vars ; for ( VariableSimpleIF v : dataVars ) { ThreddsMetadata . Variable tv = new ThreddsMetadata . Variable ( ) ; vars . addVariable ( tv ) ; tv . setName ( v . getShortName ( ) ) ; tv . setDescription ( v . getDescription ( ) ) ; tv . setUnits ( v . getUnitsString ( ) ) ; ucar . nc2 . Attribute att = v . findAttributeIgnoreCase ( "standard_name" ) ; if ( att != null ) tv . setVocabularyName ( att . getStringValue ( ) ) ; } vars . sort ( ) ; return vars ; }
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////