Re: help me check this code,Please

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Fri May 03 2013 - 07:51:24 MDT

You are setting s to 0 every time in the loop:

     do j = 0,724,24
             s = 0
. . .
        s = s+1

      end do

Move the s=0 before the do loop.

--Mary

On May 3, 2013, at 7:33 AM, XuyanLiu wrote:

> Dear Ms / Sir
>
> Sorry to bother you. I am studying NCL now. And I cannít receive right result. Please help me check this code(test.ncl)
> I want to calculate daily-average every 24 hours. The input file is named 110000.The output file is named test.txt. But this result is not right. Because it only save the result of the last row and missed the first 30 rows.
> Please help me check it.
> Thanks a lot!
> Best wishes,
> Xuyan
> <110000><test.ncl><test.txt>_______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri May 3 07:51:36 2013

This archive was generated by hypermail 2.1.8 : Tue May 07 2013 - 08:38:33 MDT