[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Hi again Robb! GRIB question...



On Tue, 6 Dec 2005, Nelson Brandon K A1C AFWA/SCSA wrote:

> I made a table and put it into the correct pkg within grib.jar.  The 1st
> line of it was -1:57:-1:129 which I assume from looking at the other *.tab
> files is correct.  I am still however, getting
>
> NotSupportedException : ucar.grib.NotSupportedException: table for center:
> 57 subCenter: 1 number: 129
>
> Am I doing something wrong?

Nelson,

there's 2 ways to add a table:

add this code before reading the file
GribPDSParamTable.addParameterUserLookup( "<fullPathToFIle>/userlookup.lst");
where userlookup.lst looks like;
57:     -1:     129:    <yourNewTable>

and the <yourNewTable> is in the same dir

or

add the line above to tablelookup.lst file in the jar file and also add
the new table. sounds like you already added the table.

i'll add the new table to the distribution

robb...

>
> Here is the table so you can make one too.  It is wrf data.  Be careful with
> copy and pasting this as some of the lines word-wrapped.  Thanks again for
> your time Robb!
>
> -1:57:-1:129
> 0:var0:undefined
> 1:PRES:Pressure [Pa]
> 2:PRMSL:Pressure reduced to MSL [Pa]
> 3:PTEND:Pressure tendency [Pa/s]
> 4:PVORT:Pot. vorticity [km^2/kg/s]
> 5:ICAHT:ICAO Standard Atmosphere Reference Height [m]
> 6:GP:Geopotential [m^2/s^2]
> 7:HGT:Geopotential height [gpm]
> 8:DIST:Geometric height [m]
> 9:HSTDV:Std dev of height [m]
> 10:TOZNE:Total ozone [Dobson]
> 11:TMP:Temperature [K]
> 12:VTMP:Virtual temperature [K]
> 13:POT:Potential temperature [K]
> 14:EPOT:Pseudo-adiabatic pot. temperature [K]
> 15:TMAX:Max. temperature [K]
> 16:TMIN:Min. temperature [K]
> 17:DPT:Dew point temperature [K]
> 18:DEPR:Dew point depression [K]
> 19:LAPR:Lapse rate [K/m]
> 20:VIS:Visibility [m]
> 21:RDSP1:Radar spectra 1 [non-dim]
> 22:RDSP2:Radar spectra 2 [non-dim]
> 23:RDSP3:Radar spectra 3 [non-dim]
> 24:PLI:Parcel lifted index to 500 hPa [K]
> 25:TMPA:Temperature anomaly [K]
> 26:PRESA:Pressure anomaly [Pa]
> 27:GPA:Geopotential height anomaly [gpm]
> 28:WVSP1:Wave spectra 1 [non-dim]
> 29:WVSP2:Wave spectra 2 [non-dim]
> 30:WVSP3:Wave spectra 3 [non-dim]
> 31:WDIR:Wind direction [deg]
> 32:WIND:Wind speed [m/s]
> 33:UGRD:u wind [m/s]
> 34:VGRD:v wind [m/s]
> 35:STRM:Stream function [m^2/s]
> 36:VPOT:Velocity potential [m^2/s]
> 37:MNTSF:Montgomery stream function [m^2/s^2]
> 38:SGCVV:Sigma coord. vertical velocity [/s]
> 39:VVEL:Pressure vertical velocity [Pa/s]
> 40:DZDT:Geometric vertical velocity [m/s]
> 41:ABSV:Absolute vorticity [1/s]
> 42:ABSD:Absolute divergence [1/s]
> 43:RELV:Relative vorticity [1/s]
> 44:RELD:Relative divergence [1/s]
> 45:VUCSH:Vertical u shear [1/s]
> 46:VVCSH:Vertical v shear [1/s]
> 47:DIRC:Direction of current [deg]
> 48:SPC:Speed of current [m/s]
> 49:UOGRD:u of current [m/s]
> 50:VOGRD:v of current [m/s]
> 51:SPFH:Specific humidity [kg/kg]
> 52:RH:Relative humidity [%]
> 53:MIXR:Humidity mixing ratio [kg/kg]
> 54:PWAT:Precipitable water [kg/m^2]
> 55:VAPP:Vapor pressure [Pa]
> 56:SATD:Saturation deficit [Pa]
> 57:EVP:Evaporation [kg/m^2]
> 58:CICE:Cloud Ice [kg/kg]
> 59:PRATE:Precipitation rate [kg/m^2/s]
> 60:TSTM:Thunderstorm probability [%]
> 61:APCP:Total precipitation [kg/m^2]
> 62:NCPCP:Large scale precipitation [kg/m^2]
> 63:ACPCP:Convective precipitation [kg/m^2]
> 64:SRWEQ:Snowfall rate water equiv. [kg/m^2/s]
> 65:WEASD:Accum. snow [kg/m^2]
> 66:SNOD:Snow depth [m]
> 67:MIXHT:Mixed layer depth [m]
> 68:TTHDP:Transient thermocline depth [m]
> 69:MTHD:Main thermocline depth [m]
> 70:MTHA:Main thermocline anomaly [m]
> 71:TCDC:Total cloud cover [%]
> 72:CDCON:Convective cloud cover [%]
> 73:LCDC:Low level cloud cover [%]
> 74:MCDC:Mid level cloud cover [%]
> 75:HCDC:High level cloud cover [%]
> 76:CWAT:Cloud water [kg/kg]
> 77:BLI:Best lifted index to 500 hPa [K]
> 78:SNOC:Convective snow [kg/m^2]
> 79:SNOL:Large scale snow [kg/m^2]
> 80:WTMP:Water temperature [K]
> 81:LAND:Land cover land=1;sea=0 [fraction]
> 82:DSLM:Deviation of sea level from mean [m]
> 83:SFCR:Surface roughness [m]
> 84:ALBDO:Albedo [%]
> 85:TSOIL:Soil temperature [K]
> 86:SOILM:Soil moisture content [kg/m^2]
> 87:VEG:Vegetation [%]
> 88:SALTY:Salinity [kg/kg]
> 89:DEN:Density [kg/m^3]
> 90:WATR:Water runoff [kg/m^2]
> 91:ICEC:Ice concentration ice=1;no ice=0 [fraction]
> 92:ICETK:Ice thickness [m]
> 93:DICED:Direction of ice drift [deg]
> 94:SICED:Speed of ice drift [m/s]
> 95:UICE:u of ice drift [m/s]
> 96:VICE:v of ice drift [m/s]
> 97:ICEG:Ice growth rate [m/s]
> 98:ICED:Ice divergence [/s]
> 99:SNOM:Snow melt [kg/m^2]
> 100:HTSGW:Sig height of wind waves and swell [m]
> 101:WVDIR:Direction of wind waves [deg]
> 102:WVHGT:Sig height of wind waves [m]
> 103:WVPER:Mean period of wind waves [s]
> 104:SWDIR:Direction of swell waves [deg]
> 105:SWELL:Sig height of swell waves [m]
> 106:SWPER:Mean period of swell waves [s]
> 107:DIRPW:Primary wave direction [deg]
> 108:PERPW:Primary wave mean period [s]
> 109:DIRSW:Secondary wave direction [deg]
> 110:PERSW:Secondary wave mean period [s]
> 111:NSWRS:Net short wave surface [W/m^2]
> 112:NLWRS:Net long wave surface [W/m^2]
> 113:NSWRT:Net short wave top [W/m^2]
> 114:NLWRT:Net long wave top [W/m^2]
> 115:LWAVR:Long wave [W/m^2]
> 116:SWAVR:Short wave [W/m^2]
> 117:GRAD:Global radiation [W/m^2]
> 118:BRTMP:Brightness temperature [K]
> 119:LWRAD:Radiance with respect to wave no. [W/m/sr]
> 120:SWRAD:Radiance with respect ot wave len. [W/m^3/sr]
> 121:LHTFL:Latent heat flux [W/m^2]
> 122:SHTFL:Sensible heat flux [W/m^2]
> 123:BLYDP:Boundary layer dissipation [W/m^2]
> 124:UFLX:Zonal momentum flux [N/m^2]
> 125:VFLX:Meridional momentum flux [N/m^2]
> 126:WMIXE:Wind mixing energy [J]
> 127:IMGD:Image data []
> 128:3HRPCP:AVERAGE 3HR PRECIP [mm/hr]
> 129:AERTP:Aerosol type code 0 - none 1 - present  []
> 130:HSL:Hours since land hours []
> 131:PRESS:Pressure [hPa]
> 132:MSLPRS:Pressure reduced to MSL [hPa]
> 133:VERVEL:Pressure Vertical Velocity [hPa/s]
> 134:DENALT:Density Altitude [m]
> 135:WBZHGT:Wet Bulb Zero Height [m]
> 136:HAIL:Hail [cm]
> 137:PBLHGT:Planetary Boundary Layer (PBL) Height [m]
> 138:TSMAX:Thunderstorm Max Tops [m]
> 139:TSCOV:THUNDERSTORM COVERAGE code 0 - none 1 - Isolated (1-2%) 2 - Few
> (3-15%) 3 - Scattered 16-45% 4 - Numerous (> 45%)  []
> 140:CLDCIG:Ceiling [m]
> 141:WGST:Wind speed of gusts [m/s]
> 142:UGST:u wind of gusts [m/s]
> 143:VGST:v wind of gusts [m/s]
> 144:PCPCAT:Precip Category []
> 145:CT1TOP:Contrail Engine Type 1 Top [m]
> 146:CT1BAS:Contrail Engine Type 1 Base [m]
> 147:CT1INT:Contrail Engine Type 1 Intensity code 0 - None 1 - Present  []
> 148:CT2TOP:Contrail Engine Type 2 Top [m]
> 149:CT2BAS:Contrail Engine Type 2 Base [m]
> 150:CT2INT:Contrail Engine Type 2 Intensity code 0 - None 1 - Present  []
> 151:CT3TOP:Contrail Engine Type 3 Top [m]
> 152:CT3BAS:Contrail Engine Type 3 Base [m]
> 153:CT3INT:Contrail Engine Type 3 Intensity code 0 - None 1 - Present  []
> 154:IRTSM:IR Transmissivity (IWA vs TDA's) [%]
> 155:ABSHUM:Absolute Humidity [g/m3]
> 156:IRVIS:IR Visibility [m]
> 157:XTRAJ:X-component of trajectory 16th mesh grid [pts/hr]
> 158:YTRAJ:Y-component of trajectory 16th mesh grid [pts/hr]
> 159:PTRAJ:P-component of trajectory [millibars/hr]
> 160:TERID:Terrain identifier Code 0 = free atmosphere 2 = use gradient level
> trajectory 3 = off hemisphere []
> 161:POVORT:Potential Vorticity [10-6 * m2s-1K Kg-1]
> 162:SEATP:Sea Surface Temp [.1Deg C]
> 163:CLDA:Cloud Amount  (layer) [%]
> 164:CLDTYP:Cloud Type (layer) code 1 = CB 2 = ST 3 = SC 4 = CU 5 = AS 6 = NS
> 7 = AC 8 = CS 9 = CI 0 = no cld or msg cld type []
> 165:TPI:Thunderstorm Potential Indicator non-dim; 0 - 100 []
> 166:SVTFG:Severe Turbulence Flag (series with 250-254) 0 = off, 1 = on []
> 167:RAFG:Precipitation Rain Flag 0 = off, 1 = on []
> 168:TSFG:Precipitation Thunderstorm Flag 0 = off, 1 = on []
> 169:SVTSFG:Precipitation Severe TS Flag 0 = off, 1 = on []
> 170:SNFG:Precipitation Snow Flag 0 = off, 1 = on []
> 171:MXDFG:Precipitation Mixed Flag 0 = off, 1 = on []
> 172:IPFG:Precipitation Ice Pellets Flag 0 = off, 1 = on []
> 173:ZRAFG:Precipitation Freezing Rain Flag 0 = off, 1 = on []
> 174:DUSCO:DUST CONCENTRATION [g m-3]
> 175:DUSFX:DUST FLUX [g m-2 s-1]
> 176:VERDIF:VERTICAL DIFFUSION COEFFICIENT KZ TERM [cm2/s-1]
> 177:VISBY:Visibility code  2E []
> 178:PNSTWX:Weather code  2F []
> 179:CLDAM:Layer Cloud Amount [%]
> 180:CLDBAS:Layer Cloud Base code  2H []
> 181:CLDTOP:Layer Cloud Top code  2H []
> 182:CLDTP:Layer Cloud Type code  2I []
> 183:UPDTTM:Time of last update from base time Minutes []
> 184:SORDAT:Source data []
> 185:ICTOP:Icing Top [m]
> 186:ICBAS:Icing Base [m]
> 187:ICINT:Icing code 0 - None 1 - Light 2 - Moderate 3 - Severe  []
> 188:TBTOP:Turbulence Top [m]
> 189:TBBAS:Turbulence Base [m]
> 190:TBINT:Turbulence code 0 - None (Smooth) 1 - Light 2 - Moderate 3 -
> Severe 4 - Extreme  []
> 191:PSTAR:Pstar (sfc pressure - model top pressure) [cbar]
> 192:PRSPRT:Pressure perturbation [Pa]
> 193:PBLREG:PBL Regime Category 1 - Stable 2 - Mechanically driven turbulence
> 3 - Forced convection 4 - Free convection []
> 194:FRIVEL:Friction velocity [m/s]
> 195:GRAPL:Graupel [kg/kg]
> 196:ICCON:Number concentration of ice number/m3 [/m3]
> 197:ATRAD:Atmospheric radiative tendency K/day [K]
> 198:TKE:Turbulent Kinetic Energy [J/kg]
> 199:MAPSCL:Map scale factor []
> 200:UPSLTP:Upper Layer Soil Temp [K]
> 201:UPSLMS:Upper Layer Soil Moisture (volumetric - no dim * 103) [g/m3]
> 202:LOSLMS:Lower Layer Soil Moisture (volumetric - no dim * 103) [g/m3]
> 203:MRGPRP:Merged Precipitation [mm/24 hrs]
> 204:EVAPTN:Evapotranspiration (mm *102) [mm/24 hrs]
> 205:SOILTP:Soil Type code  2K? []
> 206:VOLASH:Volcanic Ash 1=present, 0=not-present []
> 207:KETI:Knapp-Ellrod Turbulence Index category 0 - smooth 1 - light 2 -
> moderate 3 - severe []
> 208:USTAR:USTAR (Surface - friction velocity) (DTA parameter) [m/s]
> 209:ALSTG:Altimeter Setting [inches Hg]
> 210:K_X:K index [K]
> 211:KO_X:KO index [K]
> 212:TT_X:Total totals index [K]
> 213:S_X:Sweat index []
> 214:CAPE:Convective available potential eng [J/kg]
> 215:CIN:Convective inhibition [J/kg]
> 216:SRHEL:Storm relative helicity [J/kg]
> 217:EHI:Energy helicity index []
> 218:ILW:Integrated liquid water [g/m2]
> 219:COND:Condensate [kg/kg]
> 220:CW_MR:Cloud water mixing ratio [kg/kg]
> 221:IW_MR:Ice water mixing ratio [kg/kg]
> 222:RW_MR:Rain water mixing ratio [kg/kg]
> 223:SW_MR:Snow mixing ratio [kg/kg]
> 224:HEATX:Heat index [K]
> 225:MCONV:Horizontal moisture convergence [kg/kg/s]
> 226:TB:Turbulence (Intensity)  category 0 - smooth 1 - light 2 - moderate 3
> - severe []
> 227:CLD_B:Cloud base [m]
> 228:CLD_T:Cloud top [m]
> 229:var229:Blank []
> 230:LAT:Latitude [deg]
> 231:LON:Longitude [deg]
> 232:THKNS:Thickness [m]
> 233:TER_HT:Model terrain height [m]
> 234:W_CHILL:Wind Chill [deg F]
> 235:D_VAL:Height D-values [feet]
> 236:MX_RH:Maximum relative humidity [%]
> 237:MXABSH:Maximum absolute humidity [g/m3]
> 238:MXWIND:Maximum wind speed [m/s]
> 239:MNDEPR:Minimum dewpoint depression [K]
> 240:TOTACP:Total accumulated precipitation [kg/m^2]
> 241:LNDUSE:Land-use category 1 Urban and Built-Up Land 2 Dryland Cropland
> and Pasture 3 Irrigated Cropland and Pasture 4 Mixed Dryland/ Irrigated
> Cropland and Pasture 5 Cropland/ Grassland Mosaic 6 Cropland/ Woodland
> Mosaic 7 Grassland 8 Shrubland 9 Mixed Shrubland/ Grassland 10 Savanna 11
> Deciduous Broadleaf Forest 12 Deciduous Needleleaf Forest 13 Evergreen
> Broadleaf Forest 14 Evergreen Needleleaf Forest 15 Mixed Forest 16 Water
> Bodies 17 Herbaceous Wetland 18 Wooded Wetland 19 Barren or Sparsely
> Vegetated 20 Herbaceous Tundra 21 Wooded Tundra 22 Mixed Tundra 23 Bare
> Ground Tundra 24 Snow or Ice []
> 242:INCSNOF:Snowfall [in]
> 243:TOTSNO:Total snowfall [in]
> 244:PCPTYPE:Precipitation type category 0 - No precip 1 - Rain    2 - TRW 3
> - ZR   4 - mixed/ice 5 - snow 6 - Svr TRW []
> 245:ICING:Icing (Intensity) category 0 - none 1 - light 2 - moderate 3 -
> severe []
> 246:RDREF:Radio Refractivity []
> 247:VRPOTP:Virtual Potential Temperature [K]
> 248:LSI:Lid Strength Index [K]
> 249:RADRF:Radar Reflectivity [db]
> 250:LGIFG:Light Icing Flag 0 = off, 1 = on []
> 251:MDIFG:Moderate Icing Flag 0 = off, 1 = on []
> 252:SVIFG:Severe Icing Flag 0 = off, 1 = on []
> 253:LGTFG:Light Turbulence Flag 0 = off, 1 = on []
> 254:MDTFG:Moderate Turbulence Flag 0 = off, 1 = on []
> 255:Missing:Missing []
>
> V/r
>
> A1C Nelson, Brandon K
>
> Communications-Computer Systems Programmer
>
> HQ AFWA/SCSA (402) 294-1404
>
>
> -----Original Message-----
> From: Robb Kambic [mailto:address@hidden]
> Sent: Tuesday, December 06, 2005 12:23 PM
> To: Nelson Brandon K A1C AFWA/SCSA
> Cc: decoders
> Subject: RE: Hi again Robb! GRIB question...
>
> On Tue, 6 Dec 2005, Nelson Brandon K A1C AFWA/SCSA wrote:
>
> > Robb,
> >
> >     I am not 100% sure this new format is Grib1 or Grib2.  I tried it
> > with GRIB1 and got a NotSupportedException :
> > ucar.grib.NotSupportedException: table for center: 57 subCenter: 1 number:
> > 129, but when I try it with GRIB2 I get
> java.lang.NegativeArraySizeException
>
> Nelson,
>
> that's a table missing error, did you guys make a new table? the old table
> numbers were 58 42 2.  last time you sent me the table entries, there was
> two additional tables w/o numbers,  i think they were called table_2_A and
> table_2_B.   if you get me the table info, i'll create the table for you
>
> > at ucar.grib.grib2.Grib2BitMapSection.<init>(Grib2BitMapSection.java:74).
> > Can I have access to your FTP again to upload a file for you?  I have no
> > other way of getting you a file.
>
>
> we had to change the ftp stuff, there's no more uploading.  if you can
> create a small file with only 1 record that could be emailed to me.
>
> robb...
>
>
>
>   Thanks again for your time Robb!
> >
> > V/r
> >
> > A1C Nelson, Brandon K
> >
> > Communications-Computer Systems Programmer
> >
> > HQ AFWA/SCSA (402) 294-1404
> >
> >
> > -----Original Message-----
> > From: Robb Kambic [mailto:address@hidden]
> > Sent: Tuesday, December 06, 2005 10:11 AM
> > To: Nelson Brandon K A1C AFWA/SCSA
> > Cc: decoders
> > Subject: Re: Hi again Robb! GRIB question...
> >
> > On Tue, 6 Dec 2005, Nelson Brandon K A1C AFWA/SCSA wrote:
> >
> > > Robb,
> > >
> > >
> > >
> > >             AFWA is transitioning to a new grib file format called WRF
> > > (worf).  It seems that the ucar degribber does not work with this new
> > > format.  Any chance you could take a look at the new grib files?  Let me
> > > know how to send you one of the files if you have the time.  Thanks
> again
> >
> >
> > Nelson,
> >
> > if you can make the file available on the web, i can download it. have you
> > guys looked at using the Grib2 format?  the NCEP folks are going in that
> > direction because it's more flexible and robust and expect to be
> > converted over to Grib2 format by the end of 2006.  eventually the Grib1
> > format stuff will be on a lower priority of support also.
> >
> > robb...
> >
> >
> > > Robb!
> > >
> > >
> > >
> > > V/r
> > >
> > > A1C Nelson, Brandon K
> > >
> > > Communications-Computer Systems Programmer
> > >
> > > HQ AFWA/SCSA (402) 294-1404
> > >
> > >
> > >
> > >
> >
> >
> ============================================================================
> > ===
> > Robb Kambic                            Unidata Program Center
> > Software Engineer III                          Univ. Corp for Atmospheric
> > Research
> > address@hidden                 WWW: http://www.unidata.ucar.edu/
> >
> ============================================================================
> > ===
> >
>
> ============================================================================
> ===
> Robb Kambic                              Unidata Program Center
> Software Engineer III                    Univ. Corp for Atmospheric
> Research
> address@hidden                   WWW: http://www.unidata.ucar.edu/
> ============================================================================
> ===
>

===============================================================================
Robb Kambic                                Unidata Program Center
Software Engineer III                      Univ. Corp for Atmospheric Research
address@hidden             WWW: http://www.unidata.ucar.edu/
===============================================================================