The problem could be resolved. It was simply a misinterpretation of the
output.
In the mentioned configuration, there are three temporal dimensions
defined:
* time: read from the netCDF files' time coordinates directly
* fileDate: read from the file name via regular expression
* updated: current date/time
In the netCDF file that is returned from the GetCoverage request there
are 5 dimensions in total (lat, lon, time, fileDate, updated) of which
some are empty (contain only zeros) depending on the combinatoin of the
three temporal dimensions.
Thus it is either necessary to slice correctly over all three temporal
dimensions or change the definition so there is only a single temporal
dimension (time) and no additional empty layers are contained in the file.
Am 04.03.22 um 18:27 schrieb Martin Pontius:
Hi everyone,
I have a problem when applying temporal subsetting/trimming (WCS,
/GetCoverage/) to a layer of an image mosaic which was created from
netCDF files.
*Background**:*
Geoserver version: 2.18.3
Extensions: netcdf, netcdf-out
I created an image mosaic by adapting the configuration I found here:
https://github.com/GeoNode/geoserver-restconfig/blob/master/test/data/empty.zip
The index is stored in a PostgreSQL/PostGIS database.
For a start I added two granules, netCDF files consisting of two
variables for one day in 3-hour steps:
* global-analysis-forecast-wav-001-027_20220101.nc
* global-analysis-forecast-wav-001-027_20220102.nc
The creation was successful and I could create two layers from the
mosaic image store based on the two variables.
*The problem:*
I am able to use slice operations,
/&subset=time(%222022-01-01T09:00:00.0%22)/, in /GetCoverage/ requests
successfully. Trim operations,
/&subset=time(%222022-01-01T09:00:00.0%22,
%222022-01-01T15:00:00.0%22)/, do work as long as the time range is
within one file. If the time range is across files, e.g.
/&subset=time(%222022-01-01T21:00:00.0%22,
%222022-01-02T09:00:00.0%22)/, the data I get back for time steps
contained in the second file all equal to zero.
Is this a known problem? Any ideas what I might do wrong?
If you need more details about the configuration, let me know.
Best regards
Martin
--
Martin Pontius
52°North Spatial Information Research GmbH
Martin-Luther-King-Weg 24
48155 Muenster, Germany
E-Mail:m.pont...@52north.org
Fon: +49-(0)-251/396371-41
Fax: +49-(0)-251/396371-11
https://52north.org/
Twitter: @FiveTwoN
Managing Directors: Dr. Benedikt Gräler, Dr. Simon Jirka, Matthes Rieke
Local Court Muenster HRB 10849
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian
Turton:http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting
guidelines:http://geoserver.org/comm/userlist-guidelines.html
If you want to request a feature or an improvement, also see
this:https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Martin Pontius
52°North Spatial Information Research GmbH
Martin-Luther-King-Weg 24
48155 Muenster, Germany
E-Mail:m.pont...@52north.org
Fon: +49-(0)-251/396371-41
Fax: +49-(0)-251/396371-11
https://52north.org/
Twitter: @FiveTwoN
Managing Directors: Dr. Benedikt Gräler, Dr. Simon Jirka, Matthes Rieke
Local Court Muenster HRB 10849
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users