Hi Phil,

Thanks for this link - that might be an option indeed as well, as we do have an ERDDAP server in the technology stack as well.  Though ERDDAP as well doesn't like the non-numerical dimensions - importing as tabledap might work - but then again it is not possible to have that layer served through the build-in WMS.

It is indeed basically a point with some attributes - in essence: point geom - species name - presence/absence indicator (1/0)

Best regards,
Fred.


On 17.07.22 23:12, Phil Scadden wrote:

No geoserver per se, but I would draw your attention to the edal-java system. https://reading-escience-centre.gitbooks.io/edal-user-guide/content/exploring_datasets.html

The EDAL library provides the WMS service to the THREDDS 5+ netCDF servers with extended capabilities. (ncWMS). It definitely requires CF-compliant netCDF which I am not convinced your is, but it is more tolerant and manages things like 5D netCDF which I need. As far as I can tell the geoserver plugin does not use the EDAL libraries so it might be worth you having a look. It will NOT grid to raster on the fly if that is what are trying to do.

I would have to say that your dataset does not like conventional netCDF target – more a standard point+attributes like we would use for our fossil records. What are you expecting to see on a visualized map?

*From:*Frederic Leclercq <frederic.lecle...@vliz.be>
*Sent:* Saturday, 16 July 2022 12:13 AM
*To:* 'GeoServer Users' <geoserver-users@lists.sourceforge.net>
*Subject:* [Geoserver-users] (large) NetCDF in Geoserver

        

*Note:* External sender:

Hi all,

I'm trying to serve a NetCDF file (CF-compliant), however the shape is not as I would expect. Well - the rationale is that the dataset isn't a true gridded dataset and to prevent multiple unused cells it uses 'points' as a dimension.

The shape looks like this:

dimensions:
    points = 292332 ;
    string45 = 45 ;
    taxon = 10830 ;
variables:
    int Date(points) ;
    float lat(points) ;
    float lon(points) ;
    float crs ;
    char AphiaID(taxon, string45) ;
    char Taxon_Name(taxon, string45) ;
    byte Pres_abs(taxon, points) ;

I can't import this in Geoserver:

"Caused by: java.lang.RuntimeException: java.lang.IllegalStateException: Unable to create envelope for this dataset     at org.geotools.imageio.netcdf.NetCDFImageReader.setInput(NetCDFImageReader.java:307)     at java.desktop/javax.imageio.ImageReader.setInput(ImageReader.java:380)     at org.geotools.coverage.io.netcdf.NetCDFAccess.<init>(NetCDFAccess.java:119)
    ... 152 more"

Is it related to the taxon dimension which is basically non-numerical or should points be reshaped in a time/lat/lon structure? (which will make this file very very large, as the points have not that many lats/lons/dates in common)

On the other hand - points x taxon = 3165955560 values in the Pres_abs variable - which is larger than 2^31-1 (and that is the maximum value for an array in a java application) Before I dive into converting the points dimension to lat/lon/time I would like to know if someone managed to serve a quite large NetCDF into Geoserver.

Happy to read your ideas/help on this.

Thanks,
Fred.

Notice: This email and any attachments are confidential and may not be used, published or redistributed without the prior written consent of the Institute of Geological and Nuclear Sciences Limited (GNS Science). If received in error please destroy and immediately notify GNS Science. Do not copy or disclose the contents.


_______________________________________________
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
_______________________________________________
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

Reply via email to