New high resolution Grib-files from KNMI

Image Ici on parle français ou anglais, comme on veut, comme on peut.
Image Here we speak french or english, as we want, as we can.

Moderator: jza

Forum rules
Image Ici on parle français ou anglais, comme on veut, comme on peut, mais on n'oublie jamais que l'on discute entre humains.
Il ne faut surtout pas oublier les mots magiques: bonjour, salut, merci, etc.
Les messages impolis sont rejetés et restent sans réponse.
Il faut souvent être patient, car il y a plein d'autres activités encore plus passionantes dans notre vie.

Image Here we speak french or english, as we want, as we can, but we never forget that we discuss between humans.
Do not forget the magic words: hello, hi, thank you, etc.
Rude messages are rejected and remain unanswered.
It is often necessary to be patient because there are many other activities even more exciting in our life.
Post Reply
Xiphias
Posts: 2
Joined: 02 Aug 2015 11:54

New high resolution Grib-files from KNMI

Post by Xiphias » 02 Aug 2015 14:55

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.

Xiphias
Posts: 2
Joined: 02 Aug 2015 11:54

Re: New high resolution Grib-files from KNMI

Post by Xiphias » 02 Aug 2015 18:49

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
 	//------------------------------------------

jza
Site Admin
Posts: 601
Joined: 19 Jan 2009 00:22

Re: New high resolution Grib-files from KNMI

Post by jza » 28 Aug 2015 08:19

Hi,
Thank you for the patch.
It will be integrated in a next version of zyGrib.
A+
Jacques

Post Reply

Who is online

Users browsing this forum: No registered users and 30 guests