New to fortran please Help!
- From: Lilita <ffroulita@xxxxxxxxx>
- Date: Tue, 3 Nov 2009 02:25:32 -0800 (PST)
hello all,
i have a fortran code and i want to add a small loop to remove
outliers from my data set and this is what i wrote:
c remove outliers (val-mean>3*std)
do i=1,mlen
mu=mu+a(i)/mlen
sigma=sigma+a(i)*a(i)
std=sqrt(sigma(i)/mlen-mu*mu)
sstd=3*std
if(a(i).gt.sstd) then
a(i)=-9999.
endif
enddo
when i compile it in fortran 77 i get this error:
if(a(i).gt.sstd) then
^
"test_out.f", Line = 242, Column = 12: ERROR: The conditional
expression must be scalar.
i have tried to correct it but still no luck so i returned to the
original script (the one i post here). Please if you have any idea,
share it with me, because i keep staring it...
Thank you in advance.
.
- Follow-Ups:
- Re: New to fortran please Help!
- From: Terence
- Re: New to fortran please Help!
- From: Arjen Markus
- Re: New to fortran please Help!
- Prev by Date: Re: Fortran vs. Octave/Matlab
- Next by Date: Re: New to fortran please Help!
- Previous by thread: ☆Y(^o^)Y☆ free shipping wholesale low price shoes and Jeans etc (www.ecyaya.com)
- Next by thread: Re: New to fortran please Help!
- Index(es):
Relevant Pages
|