Package ucar.nc2.iosp.misc
Class AbstractLightningIOSP
- java.lang.Object
-
- ucar.nc2.iosp.AbstractIOServiceProvider
-
- ucar.nc2.iosp.misc.AbstractLightningIOSP
-
- All Implemented Interfaces:
Comparable<IOServiceProvider>
,IOServiceProvider
public abstract class AbstractLightningIOSP extends AbstractIOServiceProvider
AbstractIOSP for lighting data. Parameters for each stroke are held in a structure.- Since:
- Nov 12, 2009
- See Also:
- "https://www.unidata.ucar.edu/data/lightning.html"
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ucar.nc2.iosp.IOServiceProvider
IOServiceProvider.SortGroup
-
-
Field Summary
Fields Modifier and Type Field Description static String
ECCENTRICITY
The error ellipse major axis orientation variable namestatic String
ELLIPSE_ANGLE
The error ellipse major axis orientation variable namestatic String
LAT
The latitude variable namestatic String
LON
The longitude variable namestatic String
MAJOR_AXIS
The error ellipse major axis variable namestatic String
MINOR_AXIS
The error ellipse minor axis variable namestatic String
MULTIPLICITY
The number of strokes variable namestatic String
RECORD
The record dimension namestatic String
secondsSince1970
time unitstatic String
SIGNAL
The stroke signal strength (amplitude) variable namestatic String
TIME
The time variable name-
Fields inherited from class ucar.nc2.iosp.AbstractIOServiceProvider
location, ncfile, raf, rafOrder
-
-
Constructor Summary
Constructors Constructor Description AbstractLightningIOSP()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
build, buildFinish, close, getDetailInfo, getFileTypeVersion, getLastModified, getStructureIterator, isBuilder, open, reacquire, readSection, readToByteChannel, readToOutputStream, release, sendIospMessage, setNetcdfFile, streamToByteChannel, 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
compareTo, getFileTypeDescription, getFileTypeId, getSortGroup, 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
-
-
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 filegroup
- the group (may be null)seq
- the sequence to add toname
- variable namedataType
- the data typedims
- dimenstion nameslongName
- 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
-
-