public class AreaAdapter extends Object
Constructor and Description |
---|
AreaAdapter(String imageSource)
Create a VisAD FlatField from a local McIDAS AREA file or a URL.
|
AreaAdapter(String imageSource,
boolean pack)
Create a VisAD FlatField from a local McIDAS AREA file or a URL.
|
AreaAdapter(String imageSource,
int cal)
Create a VisAD FlatField from a local McIDAS AREA file or a URL.
|
AreaAdapter(String imageSource,
int startLine,
int startEle,
int numLines,
int numEles)
Create a VisAD FlatField from a local McIDAS AREA file using
the subsecting information
|
AreaAdapter(String imageSource,
int startLine,
int startEle,
int numLines,
int numEles,
int band)
Create a VisAD FlatField from a local McIDAS AREA subsected
according to the parameters
|
AreaAdapter(String imageSource,
int startLine,
int startEle,
int numLines,
int numEles,
int band,
boolean pack)
Create a VisAD FlatField from a local McIDAS AREA subsected
according to the parameters
|
AreaAdapter(String imageSource,
int startLine,
int startEle,
int numLines,
int numEles,
int lineMag,
int eleMag,
int band)
Create a VisAD FlatField from a local McIDAS AREA subsected
according to the parameters
|
AreaAdapter(String imageSource,
int startLine,
int startEle,
int numLines,
int numEles,
int lineMag,
int eleMag,
int band,
boolean pack)
Create a VisAD FlatField from a local McIDAS AREA subsected
according to the parameters
|
AreaAdapter(String imageSource,
int startLine,
int startEle,
int numLines,
int numEles,
int lineMag,
int eleMag,
int cal,
int band)
Create a VisAD FlatField from a local McIDAS AREA subsected
according to the parameters
|
AreaAdapter(String imageSource,
int startLine,
int startEle,
int numLines,
int numEles,
int lineMag,
int eleMag,
int cal,
int band,
boolean pack)
Create a VisAD FlatField from a local McIDAS AREA subsected
according to the parameters
|
Modifier and Type | Method and Description |
---|---|
AreaDirectory |
getAreaDirectory()
get the AreaDirectory of the image
|
AreaFile |
getAreaFile()
Get the instance of the AreaFile used herein.
|
CoordinateSystem |
getCoordinateSystem()
get the CoordinateSystem of the image
|
FlatField |
getData()
Return a FlatField representing the image.
|
int[] |
getDimensions()
get the dimensions of the image
|
SingleBandedImage |
getImage()
Retrieves the first (and/or only) band in an image as a SingleBandedImage
|
DateTime |
getImageStartTime()
Retrieves the time of the start of the image scan as a VisAD DateTime.
|
DateTime |
getNominalTime()
Retrieves the "nominal" time of the image as a VisAD DateTime.
|
public AreaAdapter(String imageSource) throws IOException, VisADException
imageSource
- name of local file or a URL to locate file.IOException
- if there was a problem reading the file.VisADException
- if an unexpected problem occurs.public AreaAdapter(String imageSource, int cal) throws IOException, VisADException
imageSource
- name of local file or a URL to locate file.cal
- type of calibration to perform on retrieved data; ignored if
'unit' is specified in imageSource
.IOException
- if there was a problem reading the file.VisADException
- if an unexpected problem occurs.public AreaAdapter(String imageSource, boolean pack) throws IOException, VisADException
imageSource
- name of local file or a URL to locate file.pack
- pack data if possible. If calibration is BRIT,
images are packed into bytesIOException
- if there was a problem reading the file.VisADException
- if an unexpected problem occurs.public AreaAdapter(String imageSource, int startLine, int startEle, int numLines, int numEles) throws IOException, VisADException
imageSource
- name of local file or a URL to locate file.startLine
- starting line from the file (AREA coordinates)startEle
- starting element from the file (AREA coordinates)numLines
- number of lines to readnumEles
- number of elements to readIOException
- if there was a problem reading the file.VisADException
- if an unexpected problem occurs.public AreaAdapter(String imageSource, int startLine, int startEle, int numLines, int numEles, int band) throws IOException, VisADException
imageSource
- name of local file or a URL to locate file.startLine
- starting line from the file (AREA coordinates)startEle
- starting element from the file (AREA coordinates)numLines
- number of lines to readnumEles
- number of elements to readband
- band number to getIOException
- if there was a problem reading the file.VisADException
- if an unexpected problem occurs.public AreaAdapter(String imageSource, int startLine, int startEle, int numLines, int numEles, int band, boolean pack) throws IOException, VisADException
imageSource
- name of local file or a URL to locate file.startLine
- starting line from the file (AREA coordinates)startEle
- starting element from the file (AREA coordinates)numLines
- number of lines to readnumEles
- number of elements to readband
- band number to getpack
- pack data if possible. If calibration is BRIT,
images are packed into bytesIOException
- if there was a problem reading the file.VisADException
- if an unexpected problem occurs.public AreaAdapter(String imageSource, int startLine, int startEle, int numLines, int numEles, int lineMag, int eleMag, int band) throws IOException, VisADException
imageSource
- name of local file or a URL to locate file.startLine
- starting line from the file (AREA coordinates)startEle
- starting element from the file (AREA coordinates)numLines
- number of lines to readnumEles
- number of elements to readband
- band number to getlineMag
- magnification for lineseleMag
- magnification for elementsIOException
- if there was a problem reading the file.VisADException
- if an unexpected problem occurs.public AreaAdapter(String imageSource, int startLine, int startEle, int numLines, int numEles, int lineMag, int eleMag, int cal, int band) throws IOException, VisADException
imageSource
- name of local file or a URL to locate file.startLine
- starting line from the file (AREA coordinates)startEle
- starting element from the file (AREA coordinates)numLines
- number of lines to readnumEles
- number of elements to readlineMag
- magnification for lineseleMag
- magnification for elementscal
- type of calibration to perform on retrieved data; ignored if
'unit' is specified in imageSource
.band
- band number to getIOException
- if there was a problem reading the file.VisADException
- if an unexpected problem occurs.public AreaAdapter(String imageSource, int startLine, int startEle, int numLines, int numEles, int lineMag, int eleMag, int band, boolean pack) throws IOException, VisADException
imageSource
- name of local file or a URL to locate file.startLine
- starting line from the file (AREA coordinates)startEle
- starting element from the file (AREA coordinates)numLines
- number of lines to readnumEles
- number of elements to readband
- band number to getlineMag
- magnification for lineseleMag
- magnification for elementspack
- pack data if possible. If calibration is BRIT,
images are packed into bytesIOException
- if there was a problem reading the file.VisADException
- if an unexpected problem occurs.public AreaAdapter(String imageSource, int startLine, int startEle, int numLines, int numEles, int lineMag, int eleMag, int cal, int band, boolean pack) throws IOException, VisADException
imageSource
- name of local file or a URL to locate file.startLine
- starting line from the file (AREA coordinates)startEle
- starting element from the file (AREA coordinates)numLines
- number of lines to readnumEles
- number of elements to readlineMag
- magnification for lineseleMag
- magnification for elementscal
- type of calibration to perform on retrieved data; ignored if
'unit' is specified in imageSource
.band
- band number to getpack
- pack data if possible. If calibration is BRIT,
images are packed into bytesIOException
- if there was a problem reading the file.VisADException
- if an unexpected problem occurs.public AreaFile getAreaFile()
public int[] getDimensions()
public CoordinateSystem getCoordinateSystem()
public AreaDirectory getAreaDirectory()
public FlatField getData()
public DateTime getNominalTime() throws VisADException
VisADException
getImageStartTime()
public DateTime getImageStartTime() throws VisADException
VisADException
getNominalTime()
public SingleBandedImage getImage() throws VisADException
VisADException
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.