The file contains time stamp over a period of 48 hours. I fallowed your advice
and deleted the TimestampFileNameExtractorSPI and the configuration of the
coveragestore worked fine. But I still have to enable time dimension in order
to see the raster in layer preview. Without enabling time dimension, the image
was displayed a bit wired, a narrow polygon. Any idea how I could enable time
through the REST API?
Kind regards,Corina
On Thursday, May 24, 2018, 4:33:26 PM GMT+1, Daniele Romagnoli
<daniele.romagn...@geo-solutions.it> wrote:
Hi Corina,A couple of questions to better understand your use case:
Do your sample NetCDF Files internally exposes a time dimension with multiple
values as per the example below OR does it contain no time at all and the only
reference time is on the filename itself, instead?
Example:float time(time=24); :units = "hours since 2013-03-03 0:00:00"; data:
{0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0,
14.0, 15.0, 16.0, 17.0, 18.0, 19.0, 20.0, 21.0, 22.0, 23.0}
If that is the case (time dimension available and multiple values), imageMosaic
and underlying NetCDF reader will parse and expose time dimension/values with
no need to define a TimestampFileNameExtractorSPI in your indexer.
If, conversely, your data has no native time dimension you may need to define a
TimestampFileNameExtractorSPI and related regex too to extract the time from
the filename.Something like:[0-9]{8}T[0-9]{4}
In addition, if your data actually has a native time dimension and different
files have an overlapping time instant due to the 48hours time period, you may
need to define a runtime additional time dimension using the Timestamp
extractor again.
Please, let us know.
Cheers,Daniele
On Wed, May 23, 2018 at 2:51 PM, Corina Tudorache via Geoserver-users
<geoserver-users@lists.sourceforge.net> wrote:
Hi list,
I am trying to add a netcdf file with a more complex structure than the
polyphemus file that it's used in the tutorials. I am having issues passing
the time dimension. I am able to create the database though.
I have also read this thread
http://osgeo-org.1560.x6. nabble.com/ImageMosaic- indexer-xml-time-domain-
custom-dimensions-td5144486. html
, but I do not completely understand how to pass the time.
The file is: 20180218T1200Z_tropical_africa
On this line <value>[0-9]{8}</value> I don't quite understand what values
should I pass considering that my date and time is this 20180218T1200Z and
the data inside the netcdf is covering 48 hours.
Any help is much appreciated.
Best regards,
Corina
--
Sent from: http://osgeo-org.1560.x6. nabble.com/GeoServer-User- f3786390.html
------------------------------ ------------------------------ ------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
______________________________ _________________
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
--
Regards,Daniele Romagnoli==GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information.==
Ing. Daniele RomagnoliSenior Software Engineer
GeoSolutions S.A.S.Via di Montramito 3/A55054 Massarosa (LU)Italyphone: +39
0584 962313fax: +39 0584 1660272
http://www.geo-solutions.ithttp://twitter.com/geosolutions_it
-------------------------------------------------------AVVERTENZE AI SENSI DEL
D.Lgs. 196/2003Le informazioni contenute in questo messaggio di posta
elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente
riservate. Il loro utilizzo è consentito esclusivamente al destinatario del
messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate
questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003. The information in this message and/or
attachments, is intended solely for the attention and use of the named
addressee(s) and may be confidential or proprietary in nature or covered by the
provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's
New Data Protection Code).Any use not in accord with its purpose, any
disclosure, reproduction, copying, distribution, or either dissemination,
either whole or partial, is strictly forbidden except previous formal approval
of the named addressee(s). If you are not the intended recipient, please
contact immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender does
not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility for changes made
after they were sent or for other risks which arise as a result of e-mail
transmission, viruses, etc.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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