Documentation of 'visad.data.netcdf.in.FileStrategy' Java class
FileStrategy
visad.data.netcdf.in

Class FileStrategy

  • Direct Known Subclasses:
    MaxFileFieldStrategy


    public class FileStrategy
    extends Strategy

    Provides support for importing netCDF datasets using the strategy of employing FileFlatFields wherever possible, but merging the data so as to keep the number of FileFlatFields to a minimum.

    This class may be subclassed in order to use a different data merger tactic -- one that maximizes the number of FileFlatFields, for example (see getMerger()).

    Instances are immutable.

    • Method Detail

      • instance

        public static Strategy instance()
        Returns an instance of this class.
        Returns:
        An instance of this class.
      • getData

        public DataImpl getData(NetcdfAdapter adapter)
                         throws java.io.IOException,
                                VisADException,
                                java.rmi.RemoteException,
                                BadFormException,
                                java.lang.OutOfMemoryError
        Returns a VisAD data object corresponding to the netCDF dataset. This method uses the Merger returned by getMerger().
        Specified by:
        getData in class Strategy
        Parameters:
        adapter - The netCDF-to-VisAD adapter.
        Returns:
        The top-level, VisAD data object in the netCDF dataset.
        Throws:
        VisADException - if a problem occurs in core VisAD -- probably because a VisAD object couldn't be created.
        java.io.IOException - if a data access I/O failure occurs.
        BadFormException - if the netCDF dataset doesn't conform to conventions implicit in constructing View.
        java.lang.OutOfMemoryError - if the netCDF dataset couldn't be imported into memory.
        java.rmi.RemoteException - if a Java RMI failure occurs.
        See Also:
        getMerger()
      • main

        public static void main(java.lang.String[] args)
                         throws java.lang.Exception
        Tests this class.
        Parameters:
        args - File pathnames.
        Throws:
        java.lang.Exception - Something went wrong.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.