ucar.nc2.iosp.misc
Class AbstractLightningIOSP

java.lang.Object
  extended by ucar.nc2.iosp.AbstractIOServiceProvider
      extended by ucar.nc2.iosp.misc.AbstractLightningIOSP
All Implemented Interfaces:
IOServiceProvider
Direct Known Subclasses:
Nldn, Uspln

public abstract class AbstractLightningIOSP
extends AbstractIOServiceProvider

AbstractIOSP for lighting data. Parameters for each stroke are held in a structure.

Since:
Nov 12, 2009
Author:
dmurray
See Also:
"http://www.unidata.ucar.edu/data/lightning.html"

Field Summary
static String ECCENTRICITY
          The error ellipse major axis orientation variable name
static String ELLIPSE_ANGLE
          The error ellipse major axis orientation variable name
static String LAT
          The latitude variable name
static String LON
          The longitude variable name
static String MAJOR_AXIS
          The error ellipse major axis variable name
static String MINOR_AXIS
          The error ellipse minor axis variable name
static String MULTIPLICITY
          The number of strokes variable name
static String RECORD
          The record dimension name
static String secondsSince1970
          time unit
static String SIGNAL
          The stroke signal strength (amplitude) variable name
static String TIME
          The time variable name
 
Fields inherited from class ucar.nc2.iosp.AbstractIOServiceProvider
raf
 
Constructor Summary
AbstractLightningIOSP()
           
 
Method Summary
protected  void addLightningGlobalAttributes(NetcdfFile ncfile)
          Add the global attributes.
protected  Variable makeLightningVariable(NetcdfFile ncfile, Group group, Structure seq, String name, DataType dataType, String dims, String longName, String cfName, String units, AxisType type)
          Make lightning variables
 
Methods inherited from class ucar.nc2.iosp.AbstractIOServiceProvider
close, getDetailInfo, getFileTypeVersion, getStructureIterator, open, readSection, readToByteChannel, sendIospMessage, sync, syncExtend, toStringDebug
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ucar.nc2.iosp.IOServiceProvider
getFileTypeDescription, getFileTypeId, isValidFile, readData
 

Field Detail

TIME

public static final String TIME
The time variable name

See Also:
Constant Field Values

LAT

public static final String LAT
The latitude variable name

See Also:
Constant Field Values

LON

public static final String LON
The longitude variable name

See Also:
Constant Field Values

SIGNAL

public static final String SIGNAL
The stroke signal strength (amplitude) variable name

See Also:
Constant Field Values

MULTIPLICITY

public static final String MULTIPLICITY
The number of strokes variable name

See Also:
Constant Field Values

MAJOR_AXIS

public static final String MAJOR_AXIS
The error ellipse major axis variable name

See Also:
Constant Field Values

MINOR_AXIS

public static final String MINOR_AXIS
The error ellipse minor axis variable name

See Also:
Constant Field Values

ELLIPSE_ANGLE

public static final String ELLIPSE_ANGLE
The error ellipse major axis orientation variable name

See Also:
Constant Field Values

ECCENTRICITY

public static final String ECCENTRICITY
The error ellipse major axis orientation variable name

See Also:
Constant Field Values

RECORD

public static final String RECORD
The record dimension name

See Also:
Constant Field Values

secondsSince1970

public static final String secondsSince1970
time unit

See Also:
Constant Field Values
Constructor Detail

AbstractLightningIOSP

public AbstractLightningIOSP()
Method Detail

makeLightningVariable

protected Variable makeLightningVariable(NetcdfFile ncfile,
                                         Group group,
                                         Structure seq,
                                         String name,
                                         DataType dataType,
                                         String dims,
                                         String longName,
                                         String cfName,
                                         String units,
                                         AxisType type)
Make lightning variables

Parameters:
ncfile - the netCDF file
group - the group (may be null)
seq - the sequence to add to
name - variable name
dataType - the data type
dims - dimenstion names
longName - the long_name attribute value (a description)
cfName - the CF standard_name attribute value (may be null)
units - the units attribute value (if null, not added)
type - coordinate axis type units (if null, not added)
Returns:
the variable

addLightningGlobalAttributes

protected void addLightningGlobalAttributes(NetcdfFile ncfile)
Add the global attributes. Specific implementations should call super and then add their own.

Parameters:
ncfile - the file to add to


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.