Re: plots multiple files

From: Christopher Steele <christopher.steele_at_nyahnyahspammersnyahnyah>
Date: Wed Apr 20 2011 - 00:38:13 MDT

Thanks Mary,

The code worked fine pretty much straight away with hardly any need for
adjustment.

Thanks

Chris

On Wed, Apr 20, 2011 at 12:51 AM, Mary Haley <haley@ucar.edu> wrote:

> Hi Chris,
>
> I think what might be happening is that "plot" gets clobbered the second
> time through the loop, which can cause your plots to disappear.
>
> I recommend creating the "plot" variable
>
> outside the do loop, and making of size (/2,NumFiles/) so you can give
> each plot a unique id.
>
> I've cleaned up your code and will attach it. It's untested, of course, but
> hopefully you'll see what I'm aiming for.
>
> --Mary
>
> On Apr 18, 2011, at 6:44 PM, Christopher Steele wrote:
>
> Hi,
>
> I don't think that there's anything wrong with the other datasets. If I
> disable the loop and run the script for individual files it works fine. It's
> only when I incorporate the file loop that there's a problem with the other
> plots. What's strange is that even when running the loop, the first set of
> plots are fine. I've tried it now with both versions 5.2.1 and 6 of ncl and
> still get the same result, so I'm thinking that it more than likely is to do
> with the script itself. Has anyone else seen this before?
>
> cheers
>
> Chris
>
> On Fri, Apr 15, 2011 at 5:07 PM, Rick Brownrigg <brownrig@ucar.edu> wrote:
>
>> Hi Christopher,
>>
>> I've spent some time studying this script, and I sure can't see what's
>> wrong; maybe someone else might have a solution. You're sure your data is
>> what you think it should be -- there's nothing peculiar about that second
>> dataset?
>>
>> Sorry I can't be of more help. Those are some nice looking plots, by the
>> way.
>>
>> Rick
>>
>> On Apr 15, 2011, at 9:13 AM, Christopher Steele wrote:
>>
>> > Hi
>> >
>> > I've recently written a script to display analysis data from multiple
>> files. The plots consist of two separate contour maps; both of which are an
>> overlay of two fields. The first two plots from the first file display
>> correctly, but in any subsequent file, the top plot fails to show the filled
>> contour. The colour bar is present but the figure remains black and white.
>> I'm not sure why this is happening, especially since it works for the first
>> file in the loop. I've attached the file and any help would be appreciated.
>> >
>> > Thanks
>> >
>> > Chris
>> >
>> <plt_analyses.000001.png><plt_analyses.000002.png><analysis.ncl>_______________________________________________
>> > 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
>
>
>
>

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Apr 20 00:38:23 2011

This archive was generated by hypermail 2.1.8 : Tue May 03 2011 - 14:47:35 MDT