Class AbstractLightningIOSP

  • All Implemented Interfaces:
    ucar.nc2.iosp.IOServiceProvider
    Direct Known Subclasses:
    Nldn, Uspln

    public abstract class AbstractLightningIOSP
    extends ucar.nc2.iosp.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"
    • Field Summary

      Fields 
      Modifier and Type Field Description
      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

        location, ncfile, raf, rafOrder
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addLightningGlobalAttributes​(ucar.nc2.NetcdfFile ncfile)
      Add the global attributes.
      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
      • 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 interface ucar.nc2.iosp.IOServiceProvider

        getFileTypeDescription, getFileTypeId, isValidFile, readData
    • Constructor Detail

      • AbstractLightningIOSP

        public AbstractLightningIOSP()
    • 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 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​(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