Thank you all for your suggestions. They encouraged me to dig deeper into
our problem.

The issue ended up being that the National Weather Service (the source of
these two grids) is adding a 32-byte header to the files. GeoTools checks
that grib files start with the characters GRIB, which was no longer the
case with the prepended header.

We had to connect to our GeoServer instance via a remote debugger to figure
out the problem. If anyone is curious about how to do that, please contact
me. It was challenging to figure out, but I'm sure will prove helpful as we
work with GeoServer more.

Thanks again for your help.

-Paddy McCarthy
 Research Applications Lab
 National Center for Atmospheric Research
 Boulder, Colorado

On Tue, Oct 17, 2017 at 8:03 AM, Ben Caradoc-Davies <b...@transient.nz>
wrote:

> On 17/10/17 20:04, Seib Jürgen wrote:
>
>> the Grib-Plugin of the latest GeoServer version 2.12.x checks the file
>> names in org.geotools.coverage.io.grib.GRIBFormat.
>>             // Check if it is a GRIB data and if the GRIB library is
>> available
>>             boolean gribExtension = UnidataUtilities.isGribAvailable()
>> && (fileName.contains("grb") || fileName.contains("grib"));
>> So, the problem could simply be that your file suffix is .grb2. Rename
>> your files either to .grb or .grib and try again.
>>
>
> I think this is unlikely to be the problem because
> fileName.contains("grb") will be true for filenames that end with ".grb2".
>
> This is still a useful point: for filenames that do not contain "grb" or
> "grib", under Linux a symbolic link containing one of these can be used.
>
> A further issue could be that the Grib-Plugin of GeoServer 2.9.1 does not
>> support Grib2.
>>
>
> I can assure you that the GRIB plugin of GeoServer 2.9.1 most definitely
> supports GRIB2. I used GeoServer 2.9.1 (built on GeoTools 15.1) for GRIB2
> single file and ImageMosaic:
> https://osgeo-org.atlassian.net/browse/GEOT-5434
>
> Kind regards,
>
>
> --
> Ben Caradoc-Davies <b...@transient.nz>
> Director
> Transient Software Limited <http://transient.nz/>
> New Zealand
>
------------------------------------------------------------------------------
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

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to