ucar.nc2.dataset.conv
Class WRFConvention

java.lang.Object
  extended by ucar.nc2.dataset.CoordSysBuilder
      extended by ucar.nc2.dataset.conv.WRFConvention
All Implemented Interfaces:
CoordSysBuilderIF

public class WRFConvention
extends CoordSysBuilder

WRF netcdf output files.

Note: Apparently WRF netcdf files before version 2 didnt output the projection origin, so we cant properly georeference them.

This Convention currently only supports ARW output, identified as DYN_OPT=2 or GRIDTYPE=C

Author:
caron

Nested Class Summary
 
Nested classes/interfaces inherited from class ucar.nc2.dataset.CoordSysBuilder
CoordSysBuilder.ConventionNameOk, CoordSysBuilder.VarProcess
 
Field Summary
 
Fields inherited from class ucar.nc2.dataset.CoordSysBuilder
resourcesDir
 
Constructor Summary
WRFConvention()
           
 
Method Summary
 void augmentDataset(NetcdfDataset ds, CancelTask cancelTask)
          Make changes to the dataset that are needed before processing scale/offset in NetcdfDataset.
 java.lang.String getZisPositive(CoordinateAxis v)
          Does increasing values of Z go vertical up?
static boolean isMine(NetcdfFile ncfile)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class ucar.nc2.dataset.CoordSysBuilder
addUserAdvice, buildCoordinateSystems, factory, getConventionUsed, getParseInfo, getUseMaximalCoordSys, getUserAdvice, makeDummyTransformVariable, registerConvention, registerConvention, registerConvention, registerNcML, setConventionUsed, setUseMaximalCoordSys
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WRFConvention

public WRFConvention()
Method Detail

isMine

public static boolean isMine(NetcdfFile ncfile)

augmentDataset

public void augmentDataset(NetcdfDataset ds,
                           CancelTask cancelTask)
Description copied from interface: CoordSysBuilderIF
Make changes to the dataset that are needed before processing scale/offset in NetcdfDataset.

Specified by:
augmentDataset in interface CoordSysBuilderIF
Overrides:
augmentDataset in class CoordSysBuilder
Parameters:
ds - modify this dataset
cancelTask - give user a chance to bail out

getZisPositive

public java.lang.String getZisPositive(CoordinateAxis v)
Does increasing values of Z go vertical up?

Parameters:
v - for thsi axis
Returns:
"up" if this is a Vertical (z) coordinate axis which goes up as coords get bigger, else return "down"

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException,
                        InvalidRangeException
Throws:
java.io.IOException
InvalidRangeException