it.geosolutions.imageio.plugins.netcdf
Class NetCDFConverterUtilities

Object
  extended by NetCDFConverterUtilities

public class NetCDFConverterUtilities
extends Object


Field Summary
static double HALFSECOND
           
static int JGREG
           
static Logger LOGGER
           
 
Method Summary
static void copyGlobalAttributes(NetcdfFileWriteable writableFile, List<Attribute> attributes)
           
static GregorianCalendar fromJulian(double injulian)
           
static GregorianCalendar fromModifiedJulian(double injulian, String long_name, String units)
           
static Array getArray(int[] dimensions, DataType varDataType)
           
static Array getArray(int dimension, DataType navLatDataType)
           
static Number getNumber(DataType varDataType)
           
static Array getRangeArray(DataType varDataType)
           
static boolean hasThisDimension(Variable var, String dimensionName)
          Return true if the provided variable has a
static boolean isFillValueOutsideValidRange(Attribute validMax, Attribute validMin, Attribute fillValue, DataType dataType)
           
static boolean isFillValueOutsideValidRange(Attribute validRange, Attribute fillValue, DataType dataType)
           
static void setData1D(Array originalData, Array destinationData, DataType navLatDataType, int maxIndex, boolean flipData)
           
static void setVariableAttributes(Variable variable, NetcdfFileWriteable writableFile)
           
static void setVariableAttributes(Variable variable, NetcdfFileWriteable writableFile, String newVarName)
           
static void setVariableAttributes(Variable variable, NetcdfFileWriteable writableFile, String[] exceptions)
           
static void setVariableAttributes(Variable variable, NetcdfFileWriteable writableFile, String newVarName, String[] exceptions)
           
static void writeData(NetcdfFileWriteable ncFileOut, String varName, Variable var, Array originalVarData, Array destArray, boolean findNewRange, boolean updateFillValue, int[] loopLengths, boolean flipY)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER

public static final Logger LOGGER

JGREG

public static int JGREG

HALFSECOND

public static double HALFSECOND
Method Detail

setVariableAttributes

public static void setVariableAttributes(Variable variable,
                                         NetcdfFileWriteable writableFile,
                                         String newVarName,
                                         String[] exceptions)

setVariableAttributes

public static void setVariableAttributes(Variable variable,
                                         NetcdfFileWriteable writableFile)

setVariableAttributes

public static void setVariableAttributes(Variable variable,
                                         NetcdfFileWriteable writableFile,
                                         String newVarName)

setVariableAttributes

public static void setVariableAttributes(Variable variable,
                                         NetcdfFileWriteable writableFile,
                                         String[] exceptions)

copyGlobalAttributes

public static void copyGlobalAttributes(NetcdfFileWriteable writableFile,
                                        List<Attribute> attributes)

fromJulian

public static GregorianCalendar fromJulian(double injulian)

fromModifiedJulian

public static GregorianCalendar fromModifiedJulian(double injulian,
                                                   String long_name,
                                                   String units)

getArray

public static Array getArray(int dimension,
                             DataType navLatDataType)

setData1D

public static void setData1D(Array originalData,
                             Array destinationData,
                             DataType navLatDataType,
                             int maxIndex,
                             boolean flipData)

getRangeArray

public static Array getRangeArray(DataType varDataType)

getArray

public static Array getArray(int[] dimensions,
                             DataType varDataType)

writeData

public static void writeData(NetcdfFileWriteable ncFileOut,
                             String varName,
                             Variable var,
                             Array originalVarData,
                             Array destArray,
                             boolean findNewRange,
                             boolean updateFillValue,
                             int[] loopLengths,
                             boolean flipY)
                      throws IOException,
                             InvalidRangeException
Throws:
IOException
InvalidRangeException

hasThisDimension

public static boolean hasThisDimension(Variable var,
                                       String dimensionName)
Return true if the provided variable has a

Parameters:
var -
dimensionName -
Returns:

isFillValueOutsideValidRange

public static boolean isFillValueOutsideValidRange(Attribute validMax,
                                                   Attribute validMin,
                                                   Attribute fillValue,
                                                   DataType dataType)

isFillValueOutsideValidRange

public static boolean isFillValueOutsideValidRange(Attribute validRange,
                                                   Attribute fillValue,
                                                   DataType dataType)

getNumber

public static Number getNumber(DataType varDataType)


Copyright © 2006-2010 GeoSolutions. All Rights Reserved.