public class AreaImageAccessor extends Object implements FlatFieldCacheAccessor, Comparable<AreaImageAccessor>
ucar.visad.data.CachedFlatField
.Constructor and Description |
---|
AreaImageAccessor(String source,
int band,
int[][][] readCache)
Create an instance.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(AreaImageAccessor that) |
protected int[][][] |
getAreaData() |
Date |
getNominalTime() |
String |
getSource() |
boolean |
isAddeSource() |
double[][] |
readFlatField() |
float[][] |
readFlatFieldFloats() |
void |
setAreaParams(int startLine,
int numLines,
int lineMag,
int startElem,
int numElems,
int elemMag)
Set AREA file subsetting parameters.
|
public AreaImageAccessor(String source, int band, int[][][] readCache) throws VisADException
source
- As described in AreaFileFactory.getAreaFileInstance(String)
.band
- The band number of the image.readCache
- Array to use as a cache for reading AREA data into. If null data will
not be read by-reference. See AreaFile.getData(int[][][])
.VisADException
public void setAreaParams(int startLine, int numLines, int lineMag, int startElem, int numElems, int elemMag)
startLine
- numLines
- lineMag
- startElem
- numElems
- elemMag
- public boolean isAddeSource()
protected int[][][] getAreaData() throws AreaFileException, AddeURLException
AreaFileException
AddeURLException
public String getSource()
public double[][] readFlatField()
readFlatField
in interface FlatFieldCacheAccessor
public float[][] readFlatFieldFloats()
readFlatFieldFloats
in interface FlatFieldCacheAccessor
public Date getNominalTime()
public int compareTo(AreaImageAccessor that)
compareTo
in interface Comparable<AreaImageAccessor>
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.