HI
Thanks for the reply, but none of the file is having 2000 lines(1450 lines only), up 40th file they go properly. I'm having problem for this file only(1163 lines). Dont understand why it is happening to this file alone since the "end" statement in the read works properly for other files.
*...
Hi all,
do i = 1, 79
open(2,file=afiln(i),status='old')
do k = 1,11
read(2,'(51a)')astr1
enddo
do j=12,2000
read(2,22,end=23,err=23)iyr,imn,id,ih,imt,flx
write(7,*)i,j
obstim =...
I need to look for the presence of '////' in my data file
i could read it as character
since i need to eliminate them from the file,
I've tried to avoid them using
if(xx .eq. '////') then
but is not working the error comes as
if(mt.ne. '////')then...
format statement to read input in fortran
hello everyone,
I've to read this following line in fortran,
I don't know to read the exponential form
please help me
3.49E+03 2.73E+01 2.01E-01 9.16E-02 5.94E-02 5.11E-02 3.27E+04 3.27E+04
can somebody help me to write the format...
hi
thank u for ur comment
I've declared the arrays as real
the data points are read as integers(because there is no floating value in the data file)
I've attached the program and the data file
please take a look at it
i have written a program to plot dst index values using fortran + pgplot, read the input as formatted input
when I'm trying to plot the data points are not plotted correctly.
k = 0
do i = isdt, iedt --------------start date to end date
do j = 1,24...