ASCII Data
bhatt vihang
vihang_75 at YAHOO.COM
Fri Dec 16 02:03:38 EST 2005
dear scott
if you have ascii file and not efficient in
programming then i would suggest you to use specific
softwares for scientific data analysis. i am sorry for
this unwanted advice.
let me come to your problem.you can see serch for
a script file available on grads site to plot time
series data from ascii file. (this is one option.
Grads normally takes binarry data for plotting.
for time series ploting you need to write ctl file as
follows
DSET XXXX
UNDEF XXXX
XDEF 1 LINEAR XXXX 1
YDEF 1 LINEAR XXXX 1
ZDEF 1 LINEAR XXXX 1
TDEF XXXX LINEAR XX:XXZXXXXXXXXX 1MO OR DY OR HR
VARS 1
XXX 0 99 XXXXX
ENDVARS
WHERE XXXX ARE APPROPRIATE VALUES FOR EACH
DECLARATION.
TO PREPARE DATA FOR THE CTL FILE
USE FOLLOWING PROGRAM
PROGRAM MAIN
IMPLICIT NONE
REAL(4) :: ARR
INTEGER :: IREC
OPEN(1,FILE='XXXX')
OPEN(2,FILE='XXXX',ACCESS='DIRECT',RECL=4)
DO WHILE(.TRUE.)
READ(1,*,END=99)ARR
WRITE(2,REC=IREC)ARR
ENDDO
99 CONTINUE
END PROGRAM MAIN
try this, hope it will work. please correct syntex
errors if i have made in the program.
regards,
vihang bhatt
--- Scott Weaver <sweaver at ATMOS.UMD.EDU> wrote:
> Grads Users,
>
> I have an ASCII file with 20 years worth of monthly
> values of one
> variable. How would I deal with this in GrADS so
> that I may plot, compare
> with other time series data etc.
>
> Thak You,
> Scott
>
>
> ______________________________________________
> Scott J. Weaver
> PhD Candidate
> Graduate Research Assistant
> Department of Atmospheric and Oceanic Science
> University of Maryland
> College Park, MD 20742
> 301-785-7201
> sweaver at atmos.umd.edu
>
Vihang Bhatt
Project Scientist
Indian Institute of Technology-Delhi
Hauz Khas
New Delhi
web: http://www.geocities.com/vihang_75/index.html
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the gradsusr
mailing list