|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.data.radar.Level2Data
public class Level2Data
This class reads a NEXRAD level II data file and keeps track of cut start and other info. Will probably change in the future.
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
| Field Summary | |
|---|---|
static String |
AR2V0001
Identifier for AR2V0001 format |
static String |
ARCHIVE2
Identifier for ARCHIVE2 format |
| Constructor Summary | |
|---|---|
Level2Data(File file,
DataContext context)
Create a new Level II data wrapper for the file |
|
Level2Data(String filename,
DataContext context)
Create a new Level II data wrapper for the file |
|
| Method Summary | |
|---|---|
float |
getAzimuth(int record)
This method returns the azimuth angle for the specified record. |
float |
getCutElevation(int i)
Get the elevation angle of a particular cut |
int |
getCutIndex(int i)
Get the index of the particular cut |
int |
getCutStart(int cut_num)
This method returns the record number where the specified elevation cut begins. |
ucar.netcdf.RandomAccessFile |
getDataInput()
Get the DataInput for this this data |
String |
getDataType()
Get the data type (ARCHIVE2, AR2V0001) for this file. |
float |
getElevation(int record)
This method returns the elevation angle for the specified record. |
String |
getFilename()
Get the filename that this is using for input |
int |
getJulianDate()
Get the starting Julian date for this volume |
int |
getNumberOfCuts()
Get the number of cuts found in this file. |
int |
getNumberOfTrueCuts()
Get the true number of slices from the file. |
int |
getSecsSinceMidnight()
Get the starting time in seconds since midnight. |
String |
getStationId()
Get the station ID for this data |
float |
getTrueElevation(int i)
Get the true elevation for a particular cut |
int |
getVCP()
Get the Volume Coverage Pattern number for this data. |
static void |
main(String[] args)
Test the class. |
int |
numberOfRecords()
This method returns the number of records read in from a file. |
void |
read(int startFlag)
Method to read the file. |
void |
read(int startFlag,
boolean onlyVCP)
Method to read the file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ARCHIVE2
public static final String AR2V0001
| Constructor Detail |
|---|
public Level2Data(File file,
DataContext context)
throws IOException
file - file to readcontext - DataContext for finding temporary directory
IOException - problem reading or writing file
public Level2Data(String filename,
DataContext context)
throws IOException
filename - name of the file to readcontext - DataContext for finding temporary directory
IOException - problem reading or writing file| Method Detail |
|---|
public void read(int startFlag)
startFlag - starting record number (unused)
public void read(int startFlag,
boolean onlyVCP)
onlyVCP, only read enough data to get the
levels.
startFlag - starting record number (unused)onlyVCP - if true, only read until we get the VCP infopublic int getNumberOfTrueCuts()
public int getCutIndex(int i)
i - cut number
public int getNumberOfCuts()
public float getCutElevation(int i)
i - cut number
public float getTrueElevation(int i)
i - cut number
public int getCutStart(int cut_num)
cut_num - cut number
public float getAzimuth(int record)
record - record number
public float getElevation(int record)
record - record number
public int numberOfRecords()
public int getVCP()
Value of: 11 = 14 elev. scans/ 5 mins.
12 = 14 elev. scans/ 4.1 mins.
21 = 11 elev. scans/ 6 mins.
31 = 8 elev. scans/ 10 mins.
32 = 7 elev. scans/ 10 mins.
121 = 9 elev. scans/ 5 mins.
public int getJulianDate()
public int getSecsSinceMidnight()
public ucar.netcdf.RandomAccessFile getDataInput()
public String getStationId()
public String getDataType()
public String getFilename()
public static void main(String[] args)
throws IOException
args - file to read
IOException - problem reading file
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||