any code to generate grads and ctl file from ASCII data?

Charles Seman Charles.Seman at NOAA.GOV
Wed Jun 11 13:29:39 EDT 2008


Mald MM5,

Please find attached a Fortran 77 subroutine write_sounding.f with
associated include files sounding_params and sounding_variables (part of
a larger program, compiled using "g77", using a C-shell script
"run_plot_sounding").  Note the "open" statement uses "direct" access
for output, and a factor of 4 is used for the "recl" parameter (this may
be different for your computer...).  Also find attached an example of
GrADS ctl and ieee data files for TOGA 1992 "old IFA" observations
(generated using "run_plot_sounding") and a GrADS script skewt_lsf.gs
which opens the GrADS ctl file to plot the sounding using a GrADS script
function version of Bob Hart's plotskew.gs script (also attached).
Please let me know if you have any questions or would like more of the
Fortran 77 program.

I hope this helps,
Chuck

Mald MM5 wrote:
> Hi grads users,
>
> I have the sounding data in ASCII format with
> pressure,temp,dewpt,speed and direction. How could I generate a grid
> data and control file for this data set in order to use Bob Harts
> (http://www.ems.psu.edu/~hart/skew.html
> <http://www.ems.psu.edu/%7Ehart/skew.html>)  grads script to make the
> skew-t plot?
>
>  If any of you have any FORTRAN or C code to do such conversions of
> ASCII files, could you please share it with me?
>
> Thanks
>
>

--

Please note that Charles.Seman at noaa.gov should be considered my NOAA
email address, not cjs at gfdl.noaa.gov.

********************************************************************
 Charles Seman                                Charles.Seman at noaa.gov
 U.S. Department of Commerce / NOAA / OAR
 Geophysical Fluid Dynamics Laboratory         voice: (609) 452-6547
 201 Forrestal Road                              fax: (609) 987-5063
 Princeton, NJ  08540-6649            http://www.gfdl.noaa.gov/~cjs/
********************************************************************

"The contents of this message are mine personally and do not necessarily
reflect any position of the Government or NOAA."

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: write_sounding.f
Url: http://gradsusr.org/pipermail/gradsusr/attachments/20080611/bb3a1081/attachment.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sounding_params
Url: http://gradsusr.org/pipermail/gradsusr/attachments/20080611/bb3a1081/attachment-0001.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sounding_variables
Url: http://gradsusr.org/pipermail/gradsusr/attachments/20080611/bb3a1081/attachment-0002.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sound-gcss2-ifa.ctl
Url: http://gradsusr.org/pipermail/gradsusr/attachments/20080611/bb3a1081/attachment-0003.pl 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sound-gcss2-ifa.ieee
Type: application/octet-stream
Size: 39672 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20080611/bb3a1081/attachment.obj 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: skewt_lsf.gs
Url: http://gradsusr.org/pipermail/gradsusr/attachments/20080611/bb3a1081/attachment-0004.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: plotskew.gsf
Url: http://gradsusr.org/pipermail/gradsusr/attachments/20080611/bb3a1081/attachment-0005.pl 


More information about the gradsusr mailing list