diff --git a/src/grib_templates.h b/src/grib_templates.h index c74ab44c2..1b1ae7333 100644 --- a/src/grib_templates.h +++ b/src/grib_templates.h @@ -11,12 +11,13 @@ /* This file is automatically generated by ./grib2c.pl, do not edit */ -/* - ../templates/GRIB1.grib -*/ - +/* This is a mechanism where we generate C code in grib_templates.h + * from our GRIB sample files and then include the header so one + * can instantiate samples without any disk access. + * This is now superseded by MEMFS + */ +#if 0 unsigned char _grib_template_GRIB1[] = { - 0x47, 0x52, 0x49, 0x42, 0x00, 0x00, 0x6b, 0x01, 0x00, 0x00, 0x34, 0x80, 0x62, 0x7f, 0xff, 0x80, 0x81, 0x64, 0x01, 0xf4, 0x06, 0x03, 0x10, 0x0c, @@ -31,17 +32,9 @@ unsigned char _grib_template_GRIB1[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x80, 0x02, 0x44, 0xb9, 0x7d, 0x6e, 0x10, 0x37, 0x37, 0x37, 0x37, - }; - - -/* - ../templates/GRIB2.grib -*/ - unsigned char _grib_template_GRIB2[] = { - 0x47, 0x52, 0x49, 0x42, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0xb8, 0x00, 0x00, 0x00, 0xb8, 0x00, 0x00, 0x00, 0x15, 0x01, 0x00, 0x62, 0x00, @@ -65,13 +58,10 @@ unsigned char _grib_template_GRIB2[] = { 0x39, 0x7d, 0x6e, 0x80, 0x02, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x06, 0x06, 0xff, 0x00, 0x00, 0x00, 0x05, 0x07, 0x37, 0x37, 0x37, 0x37, - }; - - static grib_templates templates[] = { - {"GRIB1", _grib_template_GRIB1, 107, }, - {"GRIB2", _grib_template_GRIB2, 184, }, + {"GRIB1", _grib_template_GRIB1, 107,}, + {"GRIB2", _grib_template_GRIB2, 184,}, }; - +#endif diff --git a/tigge/tigge_tools.h b/tigge/tigge_tools.h index 272383ca3..02ab173c6 100644 --- a/tigge/tigge_tools.h +++ b/tigge/tigge_tools.h @@ -12,5 +12,6 @@ #define TIGGE_TOOLS_H void scan(const char* name); +void validate(const char* path); #endif