[gradsusr] BUFR

Jennifer Adams jma at cola.iges.org
Fri Aug 12 10:54:55 EDT 2011


On Aug 11, 2011, at 2:39 AM, Javier Peña wrote:

> Dear Grads-Users,
>
> I would like to know how I could generate a ctl for some BURF files.  
> Following the web page http://www.iges.org/grads/gadoc/ 
> bufrformat.html I have created the following ctl descriptor file for  
> a BUFR file:
>
> DSET ^gdas.adpsfc.t12z.20020203.bufr
> title gdas.adpsfc.t12z.20020203
> undef 9.999E+20
> *  produced by Javier Penha
> DTYPE bufr
> TVAR yr 4,1 mo 4,2 dy 4,3 hr 4,4 mn 4,5
> STID 1,198
> XVAR 6,2
> YVAR 5,2
> TDEF 1 linear 12z03feb2002 1hr
> VARS 9
> slon 0 6,2 Station longitude
> slat 0 5,2 Station latitude
> selv 0 7,1 Station elevation
> wdir 0 11,001 Wind direction
> wspd 0 11,002 Wind speed
> temp 0 12,225 Temperature
> dewpt 0 12,227 Dew point temperature
> mslp 0 10,51 Mean sea level pressure
> dp 0 10,61 3-hour pressure change
> ENDVARS
> but it doesn't work. ¿Does it have some error? When I try to read it  
> with Grads I obtain the massage:
>
> ga-> sdfopen gdas.adpsfc.t12z.20020203.ctl

Do not use the 'sdfopen' command to open a bufr descriptor file. Use  
the 'open' command instead.

> Scanning self-describing file:  gdas.adpsfc.t12z.20020203.ctl
> Definition of "kt" in "/usr/share/xml/udunits2-common.xml", line 86,  
> overrides prefixed-unit "1000000 kilogram"
> Definition of "microns" in "/usr/share/xml/udunits2-common.xml",  
> line 296, overrides prefixed-unit "1e-15 second"
> Definition of "ft" in "/usr/share/xml/udunits2-common.xml", line  
> 393, overrides prefixed-unit "1e-12 kilogram"
> Definition of "yd" in "/usr/share/xml/udunits2-common.xml", line  
> 401, overrides prefixed-unit "8.64e-20 second"
> Definition of "pt" in "/usr/share/xml/udunits2-common.xml", line  
> 622, overrides prefixed-unit "1e-09 kilogram"
> Definition of "at" in "/usr/share/xml/udunits2-common.xml", line  
> 1019, overrides prefixed-unit "1e-15 kilogram"
> Definition of "ph" in "/usr/share/xml/udunits2-common.xml", line  
> 1537, overrides prefixed-unit "3.6e-09 second"
> Definition of "nt" in "/usr/share/xml/udunits2-common.xml", line  
> 1544, overrides prefixed-unit "1e-06 kilogram"
An unrelated problem .... GrADS should not be linked with the udunits2  
library.  You should be using version 1.11.7.
Please see http://iges.org/grads/gadoc/supplibs.html for more  
information.

> gaopnc error: nc_open failed to open file gdas.adpsfc.t12z. 
> 20020203.ctl
> read_metadata: gaopnc failed
> gadsdf: Couldn't ingest SDF metadata.
> ¿Does someone know a script to generate a ctl descriptor file? I'm  
> looking for some script similar to grib2ctl.pl (used with grib  
> files) but for BUFR files. ¿Does it exist?
No, a utility like that would be very useful, but nobody has written  
it yet.
--Jennifer

>
> I attach eigther BUFR file and ctl descriptor file.
>
>
> Thanks in advance for your help.
>
> Javier Peña
>
> -- 
> Javier Peña Álvarez
> Energías Renovables
> javier.p at ereda.com
> EREDA
>
> Tel:  +34 91 5014755
> Fax: +34 91 5014756
> Pº. Marqués de Monistrol 7
> 28011 MADRID
> www.ereda.com
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr

--
Jennifer M. Adams
IGES/COLA
4041 Powder Mill Road, Suite 302
Calverton, MD 20705
jma at cola.iges.org



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110812/c5723017/attachment-0003.html 


More information about the gradsusr mailing list