Improve "accepts" method on GRIB/NetCDF formats

Description

GribFormat and NetCDFFormat implement the AbstractGridFormat.accepts method by simply checking if the provided file has the expected file extension (as an instance, .grib, .nc, .ncml and so on).
It would be better to check for the magic number or something else which actually checks that the format can really handle that file.

Environment

None

Status

Assignee

Daniele Romagnoli

Reporter

Daniele Romagnoli

Triage

None

Components

Fix versions

Affects versions

Priority

Medium
Configure