[gradsusr] [SOLVED] RE: While Loop Causing Graphics To Overwrite One File

Perry, Aaron @ LSC Aaron.Perry at lsc.vsc.edu
Tue Jan 14 14:38:08 EST 2014


Thank you Haibin!

That solved the issue entirely.


Onward and Upward,

Aaron D. Perry
Boston, MA
Lyndon State College '16
Twitter: @AaronPerryLSC<https://twitter.com/AaronPerryLSC>
Mobile: 617-780-4312
________________________________
From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] on behalf of Haibin Li [hli at envsci.rutgers.edu]
Sent: Tuesday, January 14, 2014 9:51 AM
To: GrADS Users Forum
Subject: Re: [gradsusr] While Loop Causing Graphics To Overwrite One File

add "i=i+1" before endwhile


On 1/14/2014 2:59 AM, Perry, Aaron @ LSC wrote:
Good Morning All,

I'm currently having an issue in my script  where instead of multiple, separate graphics being produced, GrADS is overwriting the first-created file over and over again.

I suspect that issue is with my modified if/endif statement nested in a while loop. The id/endif statement seems correct to me but, that's saying alot, since it's clearly not working properly...

I've attached the problem script file to this email for anyone to pick apart and try to null out this speed bump.

The data that I'm using is GFS data (3hr increments), where every forecast hour in the GRIB2 file name below 10hrs has a zero in front of the forecast hour (00, 03, 06, 09). After 9hrs, the zeros go away.


Onward and Upward,

Aaron D. Perry
Boston, MA
Lyndon State College '16
Twitter: @AaronPerryLSC<https://twitter.com/AaronPerryLSC>
Mobile: 617-780-4312



_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20140114/04ffaee3/attachment.html 


More information about the gradsusr mailing list