Re: [netcdf-java] Decoding NDFD Severe Weather product Problem

On 1/4/2011 8:24 AM, Jeff Brogden wrote:
Hello,

I have successfully used netcdf-java to open NDFD products as a GridDataset. The problem I'm having is that the Severe Weather products use the local use section of the GRIB2 message to embed a weather string table that is used to create the "colorbar" or legend for that product.

From the NDFD website.
"Cell values in the data part of the GRIB2 message are numbers which refer to the entry in the weather string table."

How do I read the local use section out of the GridDataset formated GRIB2 data so I can use it to build a proper legend from the data?

Any help would be appreciated.  Thank you.

Hi Jeff:

This is the first time ive seen anything in the GRIB2 local use section, so I havent dealt with this problem before. Below is a dump of the LUS bytes for the file you sent, one for each GRIB record. Format is PDS offset == LUS bytes.

I wanted to know if these vary by record, which as you can see, some are the same and some not. What is the "weather string table" anyway ?

Anyway, without specialized code like degrib its impossible to make more meaning of it, but Im thinking about how to allow access to the raw bytes through the CDM interface.

John

Show Local Use Section
 E:\work\brogden\ds.wwa.bin
File = E:\work\brogden\ds.wwa.bin
321 == 1 0 1 0 0 0 117 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 10 242 87 89 1 78 186 235 32 35 204 93 92 4 106 235 160 128 141 93 117 112 17 171 174 175 122 188 149 214 64 83 146 186 205 234 117 215 89 1 78 74 235 32 41 66 93 100 4 121 139 171 222 167 21 117 112 21 233 174 174 2 53 117 213 239 76 174 186 200 9 147 215 89 189 78 26 235 32 35 70 93 4 4 121 139 171 222 153 61 117 144 0 56561 == 1 0 1 0 0 0 117 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 10 242 87 89 1 78 186 235 32 35 204 93 92 4 106 235 160 128 141 93 117 112 17 171 174 175 122 188 149 214 64 83 146 186 205 234 117 215 89 1 78 74 235 32 41 66 93 100 4 121 139 171 222 167 21 117 112 21 233 174 174 2 53 117 213 239 76 174 186 200 9 147 215 89 189 78 26 235 32 35 70 93 4 4 121 139 171 222 153 61 117 144 0 113136 == 1 0 1 0 0 0 107 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 10 242 87 89 1 78 186 235 32 35 204 93 92 4 106 235 160 128 141 93 117 112 17 171 174 175 122 188 149 214 64 83 146 186 205 234 117 215 89 1 78 74 235 32 41 66 93 100 5 122 107 171 128 141 93 117 123 211 43 174 178 2 100 245 214 111 83 134 186 200 8 209 151 65 1 30 98 234 247 166 79 93 100 0 169012 == 1 0 1 0 0 0 107 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 10 242 87 89 1 78 186 235 32 35 204 93 92 4 106 235 160 128 141 93 117 112 17 171 174 175 122 188 149 214 64 83 146 186 205 234 117 215 89 1 78 74 235 32 41 66 93 100 5 122 107 171 128 141 93 117 123 211 43 174 178 2 100 245 214 111 83 134 186 200 8 209 151 65 1 30 98 234 247 166 79 93 100 0 225068 == 1 0 1 0 0 0 87 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 10 242 87 89 1 78 186 235 32 35 204 93 92 4 106 235 160 128 141 93 117 112 17 171 174 175 122 188 149 214 64 83 146 186 200 10 80 151 89 1 94 154 234 224 35 87 93 94 244 202 235 172 128 153 61 117 155 212 225 174 178 2 52 101 208 64 0 280458 == 1 0 1 0 0 0 77 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 10 117 215 89 1 30 98 234 224 43 201 93 100 4 106 235 160 128 141 93 117 112 20 228 174 178 2 148 37 214 64 87 166 186 184 8 213 215 87 189 50 186 235 32 38 79 93 102 245 56 107 172 128 141 25 116 16 0 335656 == 1 0 1 0 0 0 77 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 10 117 215 89 1 30 98 234 224 43 201 93 100 4 106 235 160 128 141 93 117 112 20 228 174 178 2 148 37 214 64 87 166 186 184 8 213 215 87 189 50 186 235 32 38 79 93 102 245 56 107 172 128 141 25 116 16 0 390701 == 1 0 1 0 0 0 52 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 10 117 215 89 1 30 98 234 224 43 201 93 100 4 106 235 171 128 167 37 117 144 20 161 46 178 2 189 53 213 192 70 140 186 8 0 445356 == 1 0 1 0 0 0 52 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 10 117 215 89 1 30 98 234 224 41 201 93 100 5 40 75 172 128 175 77 117 112 17 173 46 130 2 53 165 213 192 70 140 186 8 0 499153 == 1 0 1 0 0 0 47 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 10 117 215 89 1 30 98 234 224 41 66 93 100 5 122 107 171 128 141 105 116 16 17 173 46 174 2 52 101 208 64 0 552878 == 1 0 1 0 0 0 42 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 10 117 215 89 1 30 98 234 224 41 66 93 100 5 122 107 171 128 141 105 116 16 17 173 46 174 0 606166 == 1 0 1 0 0 0 42 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 10 117 215 89 1 26 210 234 224 35 204 93 92 5 40 75 172 128 175 77 117 112 17 173 46 130 0 659742 == 1 0 1 0 0 0 42 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 8 214 151 87 1 78 186 235 32 35 204 93 92 5 40 75 172 128 175 77 117 112 17 173 46 130 0 713379 == 1 0 1 0 0 0 47 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 8 214 151 87 1 78 186 235 32 35 82 93 100 4 121 139 171 128 165 9 117 144 21 233 174 174 2 53 165 208 64 0 767912 == 1 0 1 0 0 0 42 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 8 214 151 87 1 26 210 232 32 41 215 93 100 4 106 75 172 128 165 9 117 144 17 230 46 174 0 821704 == 1 0 1 0 0 0 42 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 8 214 151 87 1 26 210 232 32 41 215 93 100 4 106 75 172 128 165 9 117 144 17 230 46 174 0 875743 == 1 0 1 0 0 0 42 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 8 214 151 87 1 26 210 232 32 41 215 93 100 4 106 75 172 128 165 9 117 144 17 230 46 174 0 929764 == 1 0 1 0 0 0 37 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 8 214 151 87 1 26 210 232 32 41 215 93 100 4 106 75 172 128 165 9 117 144 0 983255 == 1 0 1 0 0 0 37 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 8 214 151 87 1 26 210 232 32 35 82 93 100 5 58 235 172 128 165 9 117 144 0 1036703 == 1 0 1 0 0 0 37 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 8 214 151 87 1 26 210 232 32 35 82 93 100 5 58 235 172 128 165 9 117 144 0 1090151 == 1 0 1 0 0 0 37 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 8 214 151 87 1 26 210 232 32 35 82 93 100 5 58 235 172 128 165 9 117 144 0 1143452 == 1 0 1 0 0 0 32 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 8 214 151 87 1 26 210 232 32 35 82 93 100 5 40 75 172 128 1196653 == 1 0 1 0 0 0 27 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 10 80 151 89 1 26 210 232 32 35 90 93 92 0 1248464 == 1 0 1 0 0 0 17 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 10 80 151 89 0 1299552 == 1 0 1 0 0 0 22 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 8 213 215 65 1 74 18 235 32 0 1350720 == 1 0 1 0 0 0 22 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 8 213 215 65 1 74 18 235 32 0 1401935 == 1 0 1 0 0 0 17 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 8 213 215 65 0 1453150 == 1 0 1 0 0 0 17 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 8 213 215 65 0 1504365 == 1 0 1 0 0 0 17 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 8 213 215 65 0 1555456 == 1 0 1 0 0 0 17 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 8 213 215 65 0 1606419 == 1 0 1 0 0 0 17 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 8 213 215 65 0 1656997 == 1 0 1 0 0 0 17 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 8 213 215 65 0 1707427 == 1 0 1 0 0 0 12 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 0 1757145 == 1 0 1 0 0 0 12 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 0 1806863 == 1 0 1 0 0 0 12 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 0 1856581 == 1 0 1 0 0 0 12 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 0 1906299 == 1 0 1 0 0 0 12 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 0 1956021 == 1 0 1 0 0 0 17 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 8 214 151 65 0 2006224 == 1 0 1 0 0 0 17 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 8 214 151 65 0 2056427 == 1 0 1 0 0 0 17 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 8 214 151 65 0 2106630 == 1 0 1 0 0 0 17 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 8 214 151 65 0 2156833 == 1 0 1 0 0 0 17 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 8 214 151 65 0 2207036 == 1 0 1 0 0 0 17 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 8 214 151 65 0 2257239 == 1 0 1 0 0 0 17 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 8 214 151 65 0 2307408 == 1 0 1 0 0 0 17 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 8 214 151 65 0 2357596 == 1 0 1 0 0 0 17 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 8 214 151 65 0 2407746 == 1 0 1 0 0 0 12 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 0 2457450 == 1 0 1 0 0 0 12 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 0 2507154 == 1 0 1 0 0 0 12 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 0 2556858 == 1 0 1 0 0 0 12 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 0 2606562 == 1 0 1 0 0 0 12 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 0 2656266 == 1 0 1 0 0 0 12 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 0 2705970 == 1 0 1 0 0 0 12 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 0 2755674 == 1 0 1 0 0 0 12 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 0 2805378 == 1 0 1 0 0 0 12 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 0 2855082 == 1 0 1 0 0 0 12 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 0 2904786 == 1 0 1 0 0 0 12 0 0 0 0 0 0 7 1 121 59 126 236 175 128 83 134 186 200 0



  • 2011 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: