cdm/src/main/java/ucar/nc2/iosp/misc/AbstractLightningIOSP.java
protected Variable makeLightningVariable(NetcdfFile ncfile, Group group,
                                             Structure seq, String name,
                                             DataType dataType, String dims,
                                             String longName, String cfName,
                                             String units, AxisType type) {
        Variable v = new Variable(ncfile, group, seq, name);
        v.setDataType(dataType);
        v.setDimensions(dims);
        v.addAttribute(new Attribute(CDM.LONG_NAME, longName));
        if (cfName != null) {
            v.addAttribute(new Attribute(CF.STANDARD_NAME, cfName));
        }
        if (units != null) {
            v.addAttribute(new Attribute(CDM.UNITS, units));
        }
        if (type != null) {
            v.addAttribute(new Attribute(_Coordinate.AxisType,
                                         type.toString()));
        }
        return v;
    }
protected Variable makeLightningVariable(NetcdfFile ncfile, Group group,
                                             Structure seq, String name,
                                             DataType dataType, String dims,
                                             String longName, String cfName,
                                             String units, AxisType type) {
        Variable v = new Variable(ncfile, group, seq, name);
        v.setDataType(dataType);
        v.setDimensions(dims);
        v.addAttribute(new Attribute(CDM.LONG_NAME, longName));
        if (cfName != null) {
            v.addAttribute(new Attribute(CF.STANDARD_NAME, cfName));
        }
        if (units != null) {
            v.addAttribute(new Attribute(CDM.UNITS, units));
        }
        if (type != null) {
            v.addAttribute(new Attribute(_Coordinate.AxisType,
                                         type.toString()));
        }
        return v;
    }
protected Variable makeLightningVariable ( NetcdfFile ncfile , Group group , Structure seq , String name , DataType dataType , String dims , String longName , String cfName , String units , AxisType type ) { Variable v = new Variable ( ncfile , group , seq , name ) ; v . setDataType ( dataType ) ; v . setDimensions ( dims ) ; v . addAttribute ( new Attribute ( CDM . LONG_NAME , longName ) ) ; if ( cfName != null ) { v . addAttribute ( new Attribute ( CF . STANDARD_NAME , cfName ) ) ; } if ( units != null ) { v . addAttribute ( new Attribute ( CDM . UNITS , units ) ) ; } if ( type != null ) { v . addAttribute ( new Attribute ( _Coordinate . AxisType , type . toString ( ) ) ) ; } return v ; }
Make lightning variables
@param  ncfile      the netCDF file
@param  group       the group (may be null)
@param  seq         the sequence to add to
@param  name        variable name
@param  dataType    the data type
@param  dims        dimenstion names
@param  longName    the long_name attribute value (a description)
@param  cfName      the CF standard_name attribute value (may be null)
@param  units       the units attribute value (if null, not added)
@param  type        coordinate axis type units (if null, not added)

@return the variable
Make lightning variables @param ncfile the netCDF file @param group the group ( may be null ) @param seq the sequence to add to @param name variable name @param dataType the data type @param dims dimenstion names @param longName the long_name attribute value ( a description ) @param cfName the CF standard_name attribute value ( may be null ) @param units the units attribute value ( if null not added ) @param type coordinate axis type units ( if null not added )