I’m still working on some various methods for extracting time series data for a specific point out of an Image Mosaic data store. One of those methods is a custom ows I have written that ultimately uses the GridCoverage2DReader supplied by the CoverageInfo in the Catalog.
I have it working, but it is slow. It is slow, I believe, because I am calling a read on the reader for every time desired (i.e. setting the ImageMosaicFormat.TIME parameter and calling read). This, in turn, causes the ImageMosaicReader to re-search for valid granules at each time step … causing db connections to be opened … queries executed … connections closed … etc. … and this gets expensive.
My question, then, is there any way I can simultaneously supply ALL of the desired times in the parameters provided to the reader and have it return data for all of those times with ONE read call, thus only needing to produce the mosaic once and avoiding the expense of re-producing the mosaic for each time step?
Is there a different way to accomplish this, maybe?
Thanks,
Mike Grogan