ucar.nc2.thredds
Class MetadataExtractor

java.lang.Object
  extended by ucar.nc2.thredds.MetadataExtractor

public class MetadataExtractor
extends Object

Extract THREDDS metadata from the underlying CDM dataset.

Author:
caron

Constructor Summary
MetadataExtractor()
           
 
Method Summary
static DateRange extractDateRange(FeatureDatasetPoint fd)
           
static DateRange extractDateRange(GridDataset gridDataset)
           
static ThreddsMetadata.GeospatialCoverage extractGeospatial(FeatureDatasetPoint fd)
           
static ThreddsMetadata.GeospatialCoverage extractGeospatial(GridDataset gridDataset)
           
static ThreddsMetadata.GeospatialCoverage extractGeospatial(InvDatasetImpl threddsDataset)
          Extract the lat/lon/alt bounding boxes from the dataset.
static ThreddsMetadata.Variables extractVariables(FeatureDatasetPoint fd)
           
static ThreddsMetadata.Variables extractVariables(InvDatasetImpl threddsDataset)
          Extract a list of data variables (and their canonical names if possible) from the dataset.
static ThreddsMetadata.Variables extractVariables(InvDatasetImpl threddsDataset, GridDataset gridDataset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetadataExtractor

public MetadataExtractor()
Method Detail

extractGeospatial

public static ThreddsMetadata.GeospatialCoverage extractGeospatial(InvDatasetImpl threddsDataset)
                                                            throws IOException
Extract the lat/lon/alt bounding boxes from the dataset.

Parameters:
threddsDataset - open this dataset
Returns:
ThreddsMetadata.GeospatialCoverage, or null if unable.
Throws:
IOException - on read error

extractGeospatial

public static ThreddsMetadata.GeospatialCoverage extractGeospatial(GridDataset gridDataset)

extractVariables

public static ThreddsMetadata.Variables extractVariables(InvDatasetImpl threddsDataset)
                                                  throws IOException
Extract a list of data variables (and their canonical names if possible) from the dataset.

Parameters:
threddsDataset - open this dataset
Returns:
ThreddsMetadata.Variables, or null if unable.
Throws:
IOException - on read error

extractVariables

public static ThreddsMetadata.Variables extractVariables(InvDatasetImpl threddsDataset,
                                                         GridDataset gridDataset)

extractDateRange

public static DateRange extractDateRange(GridDataset gridDataset)

extractVariables

public static ThreddsMetadata.Variables extractVariables(FeatureDatasetPoint fd)

extractGeospatial

public static ThreddsMetadata.GeospatialCoverage extractGeospatial(FeatureDatasetPoint fd)

extractDateRange

public static DateRange extractDateRange(FeatureDatasetPoint fd)


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.