View Issue Details

IDProjectCategoryView StatusLast Update
0000404fileGeneralpublic2022-11-08 16:03
Reportermanfredsc Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Summary0000404: mime-types and extensions for GRIB
DescriptionI would suggest enhancing the magic entries of "GRIB" with ext and mime items:

in file magic/Magdir/meteorological:
# https://en.wikipedia.org/wiki/GRIB
0 string GRIB
>7 byte =1 Gridded binary (GRIB) version 1
!:mime application/x-grib
!:ext grb/grib
>7 byte =2 Gridded binary (GRIB) version 2
!:mime application/x-grib2
!:ext grb2/grib2


Additional InformationFor reasoning for the mime type, see https://tika.apache.org/1.28.5/formats.html and search for "grib"

http://www.opengis.net/doc/IS/CIS-GRIB2/1.0 (search for "application/")
suggests the mime-type "application/wmo-grib2" to be registered with IANA,
but this never happened and is nowhere used in practice. Until then, it is recommended to use "application/x-grib2"
(for the version 2 variant).

For file suffixes, both the short and the long variants are used approximately equally often in practice,
so I suggest adding both variants. The suffixes grb1 or grib1 are seldom used.

As there is software which only can handle either GRIB1 or GRIB2 and not both, I suggest adding two separate mime entries
and not merging them.
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2022-11-08 16:03 manfredsc New Issue