My goal is to retrieve something like a multiband raster from geoserver where each band has data for a year. I have an image mosaic layer in geoserver where I can retrieve individual years using &SUBSET=time("2010-01-01T00:00:00.000Z") or &SUBSET=time("2011-01-01T00:00:00.000Z") to get years 2010 and 2011 respectively as explained in the accepted answer of this stack. I have over 100 years to retrieve and want to get them all in one request.
This site explains that you can request a range on the time dimension (specifically they do it for a netcdf:
As explained in the NetCDF output Format for WCS 2.0.1 requests, a NetCDF output format has been developed to write down a NetCDF file with the proper contents coming from a multidimensional output request. Lets do a GetCoverage request involving trimming on these dimensions: latitude, longitude, elevation and time, by specifying these ranges of values:
http://localhost:8083/geoserver/wcs?request=GetCoverage&service=WCS&version=2.0.1&coverageId=geosolutions__time_domainsRanges&Format=application/x-netcdf&subset=http://www.opengis.net/def/axis/OGC/0/Long(5,20)&subset=http://www.opengis.net/def/axis/OGC/0/Lat(40,50)&subset=http://www.opengis.net/def/axis/OGC/0/elevation(20,150)&subset=http://www.opengis.net/def/axis/OGC/0/time("2008-11-01T00:00:00.000Z","2008-11-07T00:00:00.000Z")
In particular they use &subset=http://www.opengis.net/def/axis/OGC/0/time("2008-11-01T00:00:00.000Z","2008-11-07T00:00:00.000Z") to specify a time range
When I construct the following query to get years 2005-2010 it only returns one year's raster:
https://geoserver-dev.usanpn.org/geoserver/wcs?service=WCS&version=2.0.1&request=GetCoverage&coverageId=si-x:average_leaf_best&SUBSET=time("2005-01-01T00:00:00.000Z","2010-01-01T00:00:00.000Z")&format=geotiff
How do I write this request, or is it even supported for something like a geotiff?