# GRIB edition 2 editionNumber = 2; # TIGGE prod = 4, test = 5 productionStatusOfProcessedData = 5; # JPEG-2000 packing #typeOfPacking = "grid_jpeg"; typeOfPacking = "grid_simple"; # Shape of the Earth shapeOfTheEarth = 6; typeOfGeneratingProcess = 4; # CF of PF numberOfForecastsInEnsemble = 11; # 10 Members + 1 Control #productDefinitionTemplateNumber = 1; if( subCentre == 100 || subCentre == 0) { # Control typeOfProcessedData = 3; typeOfEnsembleForecast = 1; # Low-res control forecast number = 0; } if( subCentre != 100 && subCentre != 0) { typeOfProcessedData = 4; # typeOfEnsembleForecast = 2; # Negatively perturbed forecast typeOfEnsembleForecast = 3; # Positively perturbed forecast number = subCentre - 100; } # typeOfEnsembleForecast = ?; # Pressure level # Temperature if( indicatorOfParameter == 11 && indicatorOfTypeOfLevel == 100) { productDefinitionTemplateNumber=1;shortName = 't'; } # Geopotential if( indicatorOfParameter == 6 ) { productDefinitionTemplateNumber=1;shortName = 'gh'; } # U-component if( indicatorOfParameter == 33 && indicatorOfTypeOfLevel == 100) { productDefinitionTemplateNumber=1;shortName = 'u'; } if( indicatorOfParameter == 34 && indicatorOfTypeOfLevel == 100) { productDefinitionTemplateNumber=1;shortName = 'v'; } # Specific humidity if( indicatorOfParameter == 51) { productDefinitionTemplateNumber=1;shortName = 'q'; } # Single level # Orography if( indicatorOfParameter == 8) { productDefinitionTemplateNumber=1;shortName = 'orog'; } # Wind if( indicatorOfParameter == 33 && indicatorOfTypeOfLevel == 105) { productDefinitionTemplateNumber=1;shortName = '10u'; } if( indicatorOfParameter == 34 && indicatorOfTypeOfLevel == 105) { productDefinitionTemplateNumber=1;shortName = '10v'; } # Dew point if( indicatorOfParameter == 17) { productDefinitionTemplateNumber = 1; shortName = '2d'; typeOfFirstFixedSurface = 103; scaleFactorOfFirstFixedSurface = 0; scaledValueOfFirstFixedSurface = 2; } # 2Meter temp. if( indicatorOfParameter == 11 && indicatorOfTypeOfLevel == 105) { productDefinitionTemplateNumber = 1; shortName = '2t'; typeOfFirstFixedSurface = 103; scaleFactorOfFirstFixedSurface = 0; scaledValueOfFirstFixedSurface = 2; } # Cape if( indicatorOfParameter == 160) { productDefinitionTemplateNumber=1;shortName = 'cape'; } # Mean sea level pressure if( indicatorOfParameter == 2) { productDefinitionTemplateNumber=1;shortName = 'msl'; } # Potential temperature if( indicatorOfParameter == 13) { productDefinitionTemplateNumber=1;shortName = 'pt'; } # Snow depth if( indicatorOfParameter == 65) { productDefinitionTemplateNumber=1;shortName = 'sd'; } # Snow fall if( indicatorOfParameter == 99) { productDefinitionTemplateNumber = 11; shortName = 'sf'; } if(indicatorOfParameter == 11 && indicatorOfTypeOfLevel == 1) { productDefinitionTemplateNumber=1;shortName = 'skt'; } if(indicatorOfParameter == 121) { productDefinitionTemplateNumber = 11;shortName = 'slhf'; } if(indicatorOfParameter == 1) { productDefinitionTemplateNumber=1;shortName = 'sp'; } if(indicatorOfParameter == 122) { productDefinitionTemplateNumber = 11;shortName = 'sshf'; } if(indicatorOfParameter == 111) { productDefinitionTemplateNumber = 11;shortName = 'ssr'; } if(indicatorOfParameter == 11 && indicatorOfTypeOfLevel == 111) { productDefinitionTemplateNumber=1;shortName = 'st'; } if(indicatorOfParameter == 112) { productDefinitionTemplateNumber = 11;shortName = 'str'; } if(indicatorOfParameter == 71) { productDefinitionTemplateNumber=1;shortName = 'tcc'; } if(indicatorOfParameter == 61) { productDefinitionTemplateNumber = 11;shortName = 'tp'; } if(indicatorOfParameter == 114) { productDefinitionTemplateNumber = 11;shortName = 'ttr'; } if(indicatorOfParameter == 167) { productDefinitionTemplateNumber = 1;shortName = 'tcw'; } if( indicatorOfParameter == 33 && indicatorOfTypeOfLevel == 117) { scaleFactorOfFirstFixedSurface=6;scaledValueOfFirstFixedSurface=2;typeOfFirstFixedSurface=109;productDefinitionTemplateNumber=1;shortName = 'u'; } if( indicatorOfParameter == 34 && indicatorOfTypeOfLevel == 117) { scaleFactorOfFirstFixedSurface=6;scaledValueOfFirstFixedSurface=2;typeOfFirstFixedSurface=109;productDefinitionTemplateNumber=1;shortName = 'v'; }