Closed edwardhartnett closed 2 years ago
Yes, They were mistake to assign to array elements 51 and 61 instead of 5 and 6 and element 12 instead of 13. data table4_201(5) /type_of_precip('mixed_ice',4)/ data table4_201(6) /type_of_precip('snow',5)/ and data table4_201(13) /type_of_precip('freezing_drizzle',12)
In grib2_all_tables_module.f90 we have:
Note that the final two entries are assigned to table4_201(12). This causes a lookup of 'freezing_drizzle' to fail.
@Hang-Lei-NOAA and @BoiVuong-NOAA do you think I should just assign this to array element 13?
Also, do either of you have any idea why the elements of this array are assigned all over the range? Why are 'mixed_ice' and 'snow' assigned to array elements 51 and 61 instead of 5 and 6? Is this a mistake? From my reading of the code there is no difference where the element appears in the data array...
When this is fixed there is a test (currently commented out) at the bottom of test_all_key_tables.f90.