Page 1 of 1
New high resolution Grib-files from KNMI
Posted: 02 Aug 2015 14:55
by Xiphias
The Royal Dutch Meteorological Institute (KNMI) has recently made the outputs of their HiRLAM and HARMONIE models available as open data at the
KNMI Data Centre. These Grib-files provide high resolution data for the Netherlands and parts of Europe.
The Grib-files are not recognised in zyGrib ("Unknown Center GribRecord"), but some messages (incl. wind, temperature and precipitation) in the Grib-files are understood by zyGrib once the patch in the attachment is applied.
Re: New high resolution Grib-files from KNMI
Posted: 02 Aug 2015 18:49
by Xiphias
The attachment didn't work, this is the patch:
Code: Select all
diff -ru zyGrib-7.0.0/src/DataDefines.h zyGrib-7.0.0-work/src/DataDefines.h
--- zyGrib-7.0.0/src/DataDefines.h 2015-01-18 20:23:47.000000000 +0100
+++ zyGrib-7.0.0-work/src/DataDefines.h 2015-08-02 15:30:04.790580342 +0200
@@ -36,6 +36,8 @@
COAMPS_C_AM,
NOGAPS,
SKIRON,
+ KNMI_HIRLAM,
+ KNMI_HARMONIE,
OTHER_DATA_CENTER
};
//--------------------------------------------------------
diff -ru zyGrib-7.0.0/src/DataQString.cpp zyGrib-7.0.0-work/src/DataQString.cpp
--- zyGrib-7.0.0/src/DataQString.cpp 2015-01-18 20:23:47.000000000 +0100
+++ zyGrib-7.0.0-work/src/DataQString.cpp 2015-08-02 15:30:57.960631010 +0200
@@ -34,6 +34,10 @@
return "FNMOC-WW3-MEDIT";
case NORWAY_METNO :
return "NORWAY-MET";
+ case KNMI_HIRLAM :
+ return "KNMI-HIRLAM";
+ case KNMI_HARMONIE :
+ return "KNMI-HARMONIE";
case OTHER_DATA_CENTER :
default:
return "";
diff -ru zyGrib-7.0.0/src/GribRecord.cpp zyGrib-7.0.0-work/src/GribRecord.cpp
--- zyGrib-7.0.0/src/GribRecord.cpp 2015-01-18 20:23:47.000000000 +0100
+++ zyGrib-7.0.0-work/src/GribRecord.cpp 2015-08-02 15:38:29.808065219 +0200
@@ -157,6 +157,18 @@
levelValue = 0;
}
}
+ //------------------------
+ // KNMI HiRLAM and HARMONIE
+ //------------------------
+ else if (idCenter==99 && idGrid==255)
+ {
+ if (idModel==8) { // HiRLAM
+ dataCenterModel = KNMI_HIRLAM;
+ }
+ if (idModel==201) { // HARMONIE
+ dataCenterModel = KNMI_HARMONIE;
+ }
+ }
//------------------------------------------
// Others recognized grib suppliers
//------------------------------------------
Re: New high resolution Grib-files from KNMI
Posted: 28 Aug 2015 08:19
by jza
Hi,
Thank you for the patch.
It will be integrated in a next version of zyGrib.