GribFormat: improve fileNames checks when deciding if a file can be handled

Description

The current code checks if a file is a grib file by looking at the absolutePath of the grib file. It should be instead look at the file name.
/work/data/grib/sample.tif can currently result as a grib file since it contains the "grib" word in the filepath.

Environment

None

Assignee

Unassigned

Reporter

codehaus

Triage

None

Components

Fix versions

Affects versions

Priority

Low
Configure