200 likes | 694 Views
E N D
1. CPTEC procedure to decode FM94-BUFR Automatic Weather Station data for use in GEMPAK. Sergio Henrique S. Ferreira
Sergio.ferreira@cptec.inpe.br
2. A Quick overview of FM94- BUFR BUFR – Binary Universal Form for representation of Meteorological Data is a WMO code that will replace the traditional Alfa-numeric codes such as SYNOP, SHIP, etc for data transfers through the Global Telecommunication System (GTS)
4. BUFR Structure
5. Codification process
7. A Example of BUFRDUMP results :BUFR: # EDITION = 2
0 # MBUFR Error code
:SEC1:
46 # CENTER: Brazilian Space Agency INPE
0 # SUBCENTER
1 # UPDATE
0 # BUFR TYPE: Surface data — land
0 # INTERNATIONAL BUFR SUBTYPE
1 # LOCAL BUFR SUBTYPE
2 # BUFR MASTER TABLE
1 # BUFR LOCAL TABLE
2004 # YEAR
12 # MONTH
14 # DAY
12 # HOUR
0 # MINUTE
:SEC3:
1 # Num.subsets
10 # Num.descriptors
0 # Flag for Compressed data (1=compressed 0=uncompressed)
307005
013021
013013
222000
101049
031031
001031
001201
101039
033007
8. A Example of BUFRASCII results for Buoy data(The MS-Excel was used for read the result and present the data in the table form)
9. The module MBUFR.f90
10. Program example
Use MBUFR
type(sec1type)::sec1
type(sec3type)::sec3
type(sec4type)::sec4
integer::err, bufr_ed, nbytes
call OPEN_MBUFR(1, “FILENAME.bufr", 46,13,0)
10 call READ_MBUFR(1,2000,sec1,sec3,sec4, bUFR_ED, NBYTES,err)
if (( ioerr(1)==0).and.(err==0)) then
do j =1,sec3%nsubsets
write(*,*)(sec4%r(i,j),i=1,sec4%nvars)
end do
deallocate(sec4%r,sec4%d,sec4%c,sec3%d)
goto 10
endif
call close_mbufr (1)
end
11. The AWS data from INMET and CPTEC Most Automatic Weather Stations (AWS) do not have a WMO identification number. Because of this the data from these AWS(s) can not be encoded in a SYNOP.
These data are encoded and available in BUFR.
Inside the BUFR there is information of Latitude, Longitude and Altitude of station. Because of this it is not necessary to have a WMO number to locate the station.
12. BUFR template used to encode AWS data
13. Using BUFRASCII to decode AWS BUFR data and use in GEMPAK
14. Example of INMET AWS data converted for use in GEMPAK
15. Example of CPTEC AWS data converted for use in GEMPAK
16. Meteorological data Available in BUFR
17. Decoding multi BUFR templates
18. MBUFR2NETCDFODS
19. http://www.wmo.ch/pages/prog/www/WMOCodes.html
http://www.wmo.int/pages/prog/www/WMOCodes/TemplateExamples.html