ucar.nc2.iosp.nexrad2
Class Level2VolumeScan

java.lang.Object
  extended by ucar.nc2.iosp.nexrad2.Level2VolumeScan

public class Level2VolumeScan
extends java.lang.Object

This class reads a NEXRAD level II data file. It can handle NCDC archives (ARCHIVE2), as well as CRAFT/IDD compressed files (AR2V0001).

Adapted with permission from the Java Iras software developed by David Priegnitz at NSSL.

Documentation on Archive Level II data format can be found at: http://www.ncdc.noaa.gov/oa/radar/leveliidoc.html

Author:
caron, David Priegnitz

Field Summary
static java.lang.String AR2V0001
           
static java.lang.String AR2V0002
           
static java.lang.String AR2V0003
           
static java.lang.String AR2V0004
           
static java.lang.String ARCHIVE2
           
 
Method Summary
 java.lang.String getDataFormat()
          Get data format (ARCHIVE2, AR2V0001) for this file.
 int getDopplarResolution()
           
 java.util.Date getEndDate()
           
 java.util.List getHighResReflectivityGroups()
           
 java.util.List getHighResSpectrumGroups()
           
 java.util.List getHighResVelocityGroups()
           
 int getMaxRadials(int r)
           
 int getMinRadials(int r)
           
 java.util.List getReflectivityGroups()
          Get Reflectivity Groups Groups are all the records for a variable and elevation_num;
 java.util.Date getStartDate()
           
 double getStationElevation()
           
 java.lang.String getStationId()
          Get the 4-char station ID for this data
 double getStationLatitude()
           
 double getStationLongitude()
           
 java.lang.String getStationName()
           
 int getTitleJulianDays()
          Get the starting Julian day for this volume
 int getTitleMsecs()
          Get the starting time in seconds since midnight.
 int getVCP()
          Get the Volume Coverage Pattern number for this data.
 java.util.List getVelocityGroups()
          Get Velocity Groups Groups are all the records for a variable and elevation_num;
 boolean hasDifferentDopplarResolutions()
           
 boolean hasHighResolutions(int dt)
           
static void main(java.lang.String[] args)
           
static void main2(java.lang.String[] args)
          test
static long testValid(java.lang.String ufilename)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ARCHIVE2

public static final java.lang.String ARCHIVE2
See Also:
Constant Field Values

AR2V0001

public static final java.lang.String AR2V0001
See Also:
Constant Field Values

AR2V0002

public static final java.lang.String AR2V0002
See Also:
Constant Field Values

AR2V0003

public static final java.lang.String AR2V0003
See Also:
Constant Field Values

AR2V0004

public static final java.lang.String AR2V0004
See Also:
Constant Field Values
Method Detail

getMaxRadials

public int getMaxRadials(int r)

getMinRadials

public int getMinRadials(int r)

getDopplarResolution

public int getDopplarResolution()

hasDifferentDopplarResolutions

public boolean hasDifferentDopplarResolutions()

hasHighResolutions

public boolean hasHighResolutions(int dt)

getReflectivityGroups

public java.util.List getReflectivityGroups()
Get Reflectivity Groups Groups are all the records for a variable and elevation_num;

Returns:
List of type List of type Level2Record

getVelocityGroups

public java.util.List getVelocityGroups()
Get Velocity Groups Groups are all the records for a variable and elevation_num;

Returns:
List of type List of type Level2Record

getHighResVelocityGroups

public java.util.List getHighResVelocityGroups()

getHighResReflectivityGroups

public java.util.List getHighResReflectivityGroups()

getHighResSpectrumGroups

public java.util.List getHighResSpectrumGroups()

getDataFormat

public java.lang.String getDataFormat()
Get data format (ARCHIVE2, AR2V0001) for this file.

Returns:
data format (ARCHIVE2, AR2V0001) for this file.

getTitleJulianDays

public int getTitleJulianDays()
Get the starting Julian day for this volume

Returns:
days since 1/1/70.

getTitleMsecs

public int getTitleMsecs()
Get the starting time in seconds since midnight.

Returns:
Generation time of data in milliseconds of day past midnight (UTC).

getVCP

public int getVCP()
Get the Volume Coverage Pattern number for this data.

Returns:
VCP
See Also:
Level2Record.getVolumeCoveragePatternName(int)

getStationId

public java.lang.String getStationId()
Get the 4-char station ID for this data

Returns:
station ID (may be null)

getStationName

public java.lang.String getStationName()

getStationLatitude

public double getStationLatitude()

getStationLongitude

public double getStationLongitude()

getStationElevation

public double getStationElevation()

getStartDate

public java.util.Date getStartDate()

getEndDate

public java.util.Date getEndDate()

testValid

public static long testValid(java.lang.String ufilename)
                      throws java.io.IOException
Throws:
java.io.IOException

main2

public static void main2(java.lang.String[] args)
                  throws java.io.IOException
test

Throws:
java.io.IOException

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Throws:
java.io.IOException