org.wdssii.dualpol
Class IDLNetcdfGridReader

java.lang.Object
  extended by org.wdssii.dualpol.IDLNetcdfGridReader

public class IDLNetcdfGridReader
extends Object

Reads IDL-generated 3D grids

Author:
lakshman

Nested Class Summary
private static class IDLNetcdfGridReader.FormatException
           
 
Field Summary
private static org.apache.commons.logging.Log log
           
 
Constructor Summary
IDLNetcdfGridReader()
           
 
Method Summary
 LatLonGrid[][] fromNetcdfFile(File path)
           
static Date getTimeFromFileName(String path)
           
private  ucar.nc2.Variable getVariable(ucar.nc2.NetcdfFile ncfile, String name)
           
private  boolean isValid(float value)
           
static void main(String[] args)
          Simple program that reads IDL-generated files and writes out WDSS-II netcdf files
private  float[][][] readData3D(ucar.nc2.NetcdfFile ncfile, String typeName)
           
private  void threshold(LatLonGrid grid, LatLonGrid rhohv, float thresh)
           
 
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

IDLNetcdfGridReader

public IDLNetcdfGridReader()
Method Detail

fromNetcdfFile

public LatLonGrid[][] fromNetcdfFile(File path)

threshold

private void threshold(LatLonGrid grid,
                       LatLonGrid rhohv,
                       float thresh)

getVariable

private ucar.nc2.Variable getVariable(ucar.nc2.NetcdfFile ncfile,
                                      String name)
                               throws IDLNetcdfGridReader.FormatException
Throws:
IDLNetcdfGridReader.FormatException

isValid

private boolean isValid(float value)

readData3D

private float[][][] readData3D(ucar.nc2.NetcdfFile ncfile,
                               String typeName)
                        throws IOException
Throws:
IOException

getTimeFromFileName

public static Date getTimeFromFileName(String path)

main

public static void main(String[] args)
Simple program that reads IDL-generated files and writes out WDSS-II netcdf files