diff --git a/tools/grib_to_netcdf.c b/tools/grib_to_netcdf.c index 63ee4221a..9e2848186 100644 --- a/tools/grib_to_netcdf.c +++ b/tools/grib_to_netcdf.c @@ -3570,22 +3570,19 @@ static boolean parsedate(const char *name, long* julian, long *second, boolean* /*=====================================================================*/ -grib_option grib_options[] = -{ - -{ "I:", "key1,key2,...", "Ignore keys. Default method,type,stream,refdate,hdate\n", 0, 1, "method,type,stream,refdate,hdate" }, -{ "S:", "key1,key2,...", "Split according to keys. Default param,expver\n", 0, 1, "param,expver" }, -{ "R:", "date", "Reference date in the format YYYYMMDD. Default value 19000101.\n", 0, 1, "19000101" }, -{ "D:", "NC_DATATYPE", "Type of data. Possible values NC_BYTE, NC_SHORT, NC_INT, NC_FLOAT, NC_DOUBLE." - "\n\t\tDefault NC_SHORT\n", 0, 1, "NC_SHORT" }, -{ "T", 0, "Don't use time of validity.\n", 0, 1, 0 }, -{ "f", 0, 0, 0, 1, 0 }, -{ "o:", "output file", - "\n\t\tThe name of the netcdf file.\n" - , 1, 1, 0 }, -{ "k:", 0, 0, 0, 1, 0 }, -{ "V", 0, 0, 0, 1, 0 }, -{ "M", 0, 0, 0, 1, 0 } }; +grib_option grib_options[] = { + { "I:", "key1,key2,...", "\n\t\tIgnore keys. Default method,type,stream,refdate,hdate\n", 0, 1, "method,type,stream,refdate,hdate" }, + { "S:", "key1,key2,...", "\n\t\tSplit according to keys. Default param,expver\n", 0, 1, "param,expver" }, + { "R:", "date", "\n\t\tReference date in the format YYYYMMDD. Default value 19000101.\n", 0, 1, "19000101" }, + { "D:", "NC_DATATYPE", "\n\t\tType of data. Possible values NC_BYTE, NC_SHORT, NC_INT, NC_FLOAT, NC_DOUBLE." + "\n\t\tDefault NC_SHORT\n", 0, 1, "NC_SHORT" }, + { "T", 0, "Don't use time of validity.\n", 0, 1, 0 }, + { "f", 0, 0, 0, 1, 0 }, + { "o:", "output file", "\n\t\tThe name of the netcdf file.\n", 1, 1, 0 }, + { "k:", 0, 0, 0, 1, 0 }, + { "V", 0, 0, 0, 1, 0 }, + { "M", 0, 0, 0, 1, 0 } +}; int grib_options_count = sizeof(grib_options) / sizeof(grib_option); static fieldset *fs = NULL;