Package ucar.nc2.iosp.misc
Class AbstractLightningIOSP
- java.lang.Object
-
- ucar.nc2.iosp.AbstractIOServiceProvider
-
- ucar.nc2.iosp.misc.AbstractLightningIOSP
-
- All Implemented Interfaces:
ucar.nc2.iosp.IOServiceProvider
public abstract class AbstractLightningIOSP extends ucar.nc2.iosp.AbstractIOServiceProviderAbstractIOSP 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"
-
-
Field Summary
Fields Modifier and Type Field Description static StringECCENTRICITYThe error ellipse major axis orientation variable namestatic StringELLIPSE_ANGLEThe error ellipse major axis orientation variable namestatic StringLATThe latitude variable namestatic StringLONThe longitude variable namestatic StringMAJOR_AXISThe error ellipse major axis variable namestatic StringMINOR_AXISThe error ellipse minor axis variable namestatic StringMULTIPLICITYThe number of strokes variable namestatic StringRECORDThe record dimension namestatic StringsecondsSince1970time unitstatic StringSIGNALThe stroke signal strength (amplitude) variable namestatic StringTIMEThe time variable name
-
Constructor Summary
Constructors Constructor Description AbstractLightningIOSP()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddLightningGlobalAttributes(ucar.nc2.NetcdfFile ncfile)Add the global attributes.protected ucar.nc2.VariablemakeLightningVariable(ucar.nc2.NetcdfFile ncfile, ucar.nc2.Group group, ucar.nc2.Structure seq, String name, ucar.ma2.DataType dataType, String dims, String longName, String cfName, String units, ucar.nc2.constants.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
-
-
-
-
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 ucar.nc2.Variable makeLightningVariable(ucar.nc2.NetcdfFile ncfile, ucar.nc2.Group group, ucar.nc2.Structure seq, String name, ucar.ma2.DataType dataType, String dims, String longName, String cfName, String units, ucar.nc2.constants.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(ucar.nc2.NetcdfFile ncfile)
Add the global attributes. Specific implementations should call super and then add their own.- Parameters:
ncfile- the file to add to
-
-