org.wdssii.core
Class NetcdfDataEncoder

java.lang.Object
  extended by org.wdssii.core.DataEncoder
      extended by org.wdssii.core.NetcdfDataEncoder

public class NetcdfDataEncoder
extends DataEncoder

Author:
lakshman

Field Summary
private static org.apache.commons.logging.Log log
           
 
Constructor Summary
protected NetcdfDataEncoder()
           
 
Method Summary
private static void addGlobalAttributes(DataType dt, ucar.nc2.NetcdfFileWriteable ncfile, String dataType)
           
private  String compress(String fileName, String relativeFileName)
           
protected  String[] getParams(String relativeFileName)
           
private static String getRelativeFileName(DataType dt, String outputDir, String formattedDate, String[] subtypes)
           
protected  void writeAndNotify(DataTable dt, String outputDir, String[] subtypes)
           
protected  void writeAndNotify(LatLonGrid llg, String outputDir, String[] subtypes)
           
protected  void writeAndNotify(PolarGrid pg, String outputDir, String[] subtypes)
           
 
Methods inherited from class org.wdssii.core.DataEncoder
getFormattedDate, getFormattedDate, getSparseGridThreshold, isAlwaysSparseGrid, isCompressionEnabled, isNeverSparseGrid, notifyRecord, setCompressionEnabled, setCompressionEnabled, setSparseGridThreshold, shouldWriteSparse, writeDataAndNotify, writeDataAndNotify, writeDataAndNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.commons.logging.Log log
Constructor Detail

NetcdfDataEncoder

protected NetcdfDataEncoder()
Method Detail

compress

private String compress(String fileName,
                        String relativeFileName)
                 throws IOException
Throws:
IOException

getParams

protected String[] getParams(String relativeFileName)
Specified by:
getParams in class DataEncoder

writeAndNotify

protected void writeAndNotify(PolarGrid pg,
                              String outputDir,
                              String[] subtypes)
Specified by:
writeAndNotify in class DataEncoder

writeAndNotify

protected void writeAndNotify(LatLonGrid llg,
                              String outputDir,
                              String[] subtypes)
Specified by:
writeAndNotify in class DataEncoder

addGlobalAttributes

private static void addGlobalAttributes(DataType dt,
                                        ucar.nc2.NetcdfFileWriteable ncfile,
                                        String dataType)

getRelativeFileName

private static String getRelativeFileName(DataType dt,
                                          String outputDir,
                                          String formattedDate,
                                          String[] subtypes)
                                   throws IOException
Throws:
IOException

writeAndNotify

protected void writeAndNotify(DataTable dt,
                              String outputDir,
                              String[] subtypes)
Specified by:
writeAndNotify in class DataEncoder