NOTE: The decoders
mailing list is no longer active. The list archives are made available for historical reasons.
actually, i remember that this can't be set acturately for all the fields, so i set it to the maximum for the fields using Pressure variable (0-7-4). the idea was to give an estimate about the size, not the actual value. the data size can be determine when the data is access using bufrdata.length after the data is obtained. float[] bufrdata = bd.getFloatData(); size = bufrdata.length; robb... On Wed, 9 Aug 2006, Kevin Baggett wrote:
Robb, I have put the following files on ftp.ssec.wisc.edu:/pub/incoming MSG1-SEVI-MSGAMVE-0100-0100-20060715234500.000000000Z-135382.bfr and it's index file MSG1-SEVI-MSGAMVE-0100-0100-20060715234500.000000000Z-135382.bfr.bfx The index file says that wind speed and direction have a dimension of 11, but I have found it to only have a dimension of 5. In BufrIndexer.java, I see some code when writing out Section 3 that says: if( bd.getVarCount() < 5 ) { ps.println( bd.getKey() +"\t"+ bd.getVarCount() +"\t"+ bd.isNumeric() +"\t"+ bd.getName() +"\t"+ bd.getUnits() ); if (makeIndex) index.addParameter( bd.getKey(), bd.getVarCount(), bd.isNumeric(), bd.getName(), bd.getUnits() ); } else { ps.println( bd.getKey() +"\t"+ maxLevelDim +"\t"+ bd.isNumeric() +"\t"+ bd.getName() +"\t"+ bd.getUnits() ); if (makeIndex) index.addParameter( bd.getKey(), maxLevelDim, bd.isNumeric(), bd.getName(), bd.getUnits() ); } So, for dims greater than 5, it displays the maxLevelDim?? The file has a Pressure variable (0-7-4) and I think this is where the dimension is set, as that dimension is 11. else { bd = (BufrData) bufrdatas.get( "0-7-4" ); //ps.println( "0-7-4 ="+ bd.getName() ); if( bd != null ) { dim = bd.getVarCount(); maxLevelDim = dim; } else { dim = 1; maxLevelDim = 1; } } Anyway, not sure what this all means. The file above has the data for Atmospheric Motion Vectors derived from MSG. Thanks! Kevin
============================================================================== Robb Kambic Unidata Program Center Software Engineer III Univ. Corp for Atmospheric Research rkambic@xxxxxxxxxxxxxxxx WWW: http://www.unidata.ucar.edu/ ==============================================================================
decoders
archives: