public final class BaseNetCDFImageReader extends BaseImageReader
BaseNetCDFImageReader
is a ImageReader
able to create
RenderedImage
from NetCDF-CF sources.Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOGGER |
availableLocales, ignoreMetadata, input, locale, minIndex, originatingProvider, progressListeners, seekForwardOnly, updateListeners, warningListeners, warningLocales
Constructor and Description |
---|
BaseNetCDFImageReader(ImageReaderSpi originatingProvider)
Explicit Constructor getting
ImageReaderSpi originatingProvider
as actual parameter. |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Allows any resources held by this reader to be released.
|
NetCDFUtilities.KeyValuePair |
getAttribute(int imageIndex,
int attributeIndex) |
String |
getAttributeAsString(int imageIndex,
String attributeName) |
String |
getAttributeAsString(int imageIndex,
String attributeName,
boolean isUnsigned) |
ucar.nc2.dataset.NetcdfDataset |
getDataset() |
NetCDFUtilities.KeyValuePair |
getGlobalAttribute(int attributeIndex) |
int |
getHeight(int imageIndex) |
IIOMetadata |
getImageMetadata(int imageIndex) |
Iterator<ImageTypeSpecifier> |
getImageTypes(int imageIndex) |
Map<ucar.ma2.Range,?> |
getIndexMap() |
int |
getNumAttributes(int imageIndex) |
int |
getNumGlobalAttributes() |
IIOMetadata |
getStreamMetadata() |
String |
getVariableName(int imageIndex) |
BaseVariableWrapper |
getVariableWrapper(int imageIndex) |
int |
getWidth(int imageIndex) |
protected void |
initialize() |
BufferedImage |
read(int imageIndex,
ImageReadParam param) |
void |
reset()
Reset the status of this reader
|
void |
setIndexMap(Map<ucar.ma2.Range,? extends BaseVariableWrapper> indexMap) |
void |
setInput(Object input)
Sets the input source to use within this reader.
|
void |
setInput(Object input,
boolean seekForwardOnly)
Sets the input source to use within this reader.
|
void |
setInput(Object input,
boolean seekForwardOnly,
boolean ignoreMetadata)
Sets the input source to use within this reader.
|
void |
setNumGlobalAttributes(int numGlobalAttributes) |
checkImageIndex, getNumImages, setNumImages
abort, abortRequested, addIIOReadProgressListener, addIIOReadUpdateListener, addIIOReadWarningListener, canReadRaster, checkReadParamBandSettings, clearAbortRequest, computeRegions, getAspectRatio, getAvailableLocales, getDefaultReadParam, getDestination, getFormatName, getImageMetadata, getInput, getLocale, getMinIndex, getNumThumbnails, getOriginatingProvider, getRawImageType, getSourceRegion, getStreamMetadata, getThumbnailHeight, getThumbnailWidth, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, hasThumbnails, isIgnoringMetadata, isImageTiled, isRandomAccessEasy, isSeekForwardOnly, processImageComplete, processImageProgress, processImageStarted, processImageUpdate, processPassComplete, processPassStarted, processReadAborted, processSequenceComplete, processSequenceStarted, processThumbnailComplete, processThumbnailPassComplete, processThumbnailPassStarted, processThumbnailProgress, processThumbnailStarted, processThumbnailUpdate, processWarningOccurred, processWarningOccurred, read, readAll, readAll, readAsRenderedImage, readerSupportsThumbnails, readRaster, readThumbnail, readTile, readTileRaster, removeAllIIOReadProgressListeners, removeAllIIOReadUpdateListeners, removeAllIIOReadWarningListeners, removeIIOReadProgressListener, removeIIOReadUpdateListener, removeIIOReadWarningListener, setLocale
protected static final Logger LOGGER
public BaseNetCDFImageReader(ImageReaderSpi originatingProvider)
ImageReaderSpi
originatingProvider
as actual parameter.originatingProvider
- ImageReaderSpi
public Map<ucar.ma2.Range,?> getIndexMap()
public void setIndexMap(Map<ucar.ma2.Range,? extends BaseVariableWrapper> indexMap)
public ucar.nc2.dataset.NetcdfDataset getDataset()
public void setNumGlobalAttributes(int numGlobalAttributes)
public void setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata)
URI
s,
File
s, String
s, URL
s, ImageInputStream
s
are accepted input types.seekForwardOnly
and ignoreMetadata
)
are actually ignored.setInput
in class ImageReader
input
- the Object
to be set as input of this reader.exception
- IllegalArgumentException
in case the provided
input Object
cannot be properly parsed and used
as input for the reader.protected void initialize()
public void setInput(Object input, boolean seekForwardOnly)
URI
s,
File
s (also representing a Directory), String
s (also
representing the path of a Directory), URL
s,
ImageInputStream
s are accepted input types.seekForwardOnly
is actually ignored.setInput
in class ImageReader
input
- the Object
to be set as input of this reader.{@link
- IllegalArgumentException}
in case the provided input Object
cannot be
properly parsed and used as input for the reader.public void setInput(Object input)
URI
s,
File
s (also representing a Directory), String
s (also
representing the path of a Directory), URL
s,
ImageInputStream
s are accepted input types.setInput
in class ImageReader
input
- the Object
to be set as input of this reader.{@link
- IllegalArgumentException}
in case the provided input Object
cannot be
properly parsed and used as input for the reader.public int getHeight(int imageIndex) throws IOException
getHeight
in class ImageReader
IOException
ImageReader.getHeight(int)
public BaseVariableWrapper getVariableWrapper(int imageIndex)
public Iterator<ImageTypeSpecifier> getImageTypes(int imageIndex) throws IOException
getImageTypes
in class ImageReader
IOException
public int getWidth(int imageIndex) throws IOException
getWidth
in class ImageReader
IOException
public void dispose()
dispose
in class BaseImageReader
IOException
public void reset()
reset
in class ImageReader
public String getAttributeAsString(int imageIndex, String attributeName, boolean isUnsigned)
public NetCDFUtilities.KeyValuePair getAttribute(int imageIndex, int attributeIndex) throws IOException
IOException
public String getVariableName(int imageIndex)
public int getNumGlobalAttributes()
public int getNumAttributes(int imageIndex)
public NetCDFUtilities.KeyValuePair getGlobalAttribute(int attributeIndex) throws IOException
IOException
public IIOMetadata getImageMetadata(int imageIndex) throws IOException
getImageMetadata
in class ImageReader
IOException
public IIOMetadata getStreamMetadata() throws IOException
getStreamMetadata
in class ImageReader
IOException
public BufferedImage read(int imageIndex, ImageReadParam param)
read
in class ImageReader
Copyright © 2006–2016 GeoSolutions. All rights reserved.