ucar.nc2.iosp.hdf4
Class HdfEos

java.lang.Object
  extended by ucar.nc2.iosp.hdf4.HdfEos

public class HdfEos
extends Object

Parse structural metadata from HDF-EOS. This allows us to use shared dimensions, identify Coordinate Axes, and the FeatureType.

Since:
Jul 23, 2007
Author:
caron

Constructor Summary
HdfEos()
           
 
Method Summary
static boolean amendFromODL(NetcdfFile ncfile, Group eosGroup)
          Amend the given NetcdfFile with metadata from HDF-EOS structMetadata.
static void getEosInfo(NetcdfFile ncfile, Group eosGroup, Formatter f)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HdfEos

public HdfEos()
Method Detail

amendFromODL

public static boolean amendFromODL(NetcdfFile ncfile,
                                   Group eosGroup)
                            throws IOException
Amend the given NetcdfFile with metadata from HDF-EOS structMetadata. All Variables named StructMetadata.n, where n= 1, 2, 3 ... are read in and their contents concatenated to make the structMetadata String.

Parameters:
ncfile - Amend this file
eosGroup - the group containing variables named StructMetadata.*
Returns:
true if HDF-EOS info was found
Throws:
IOException - on read error

getEosInfo

public static void getEosInfo(NetcdfFile ncfile,
                              Group eosGroup,
                              Formatter f)
                       throws IOException
Throws:
IOException


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