I wanted to respond back to the list on this.
In PyNGL V1.3.0b1 and earlier, what was happening with the PNG file naming was that the first file was always named without a frame number, and any subsequent frames had a frame number added:
test.png
test.002.png
test.003.png
etc.
[I don't know the exact format of the frame numbering.]
With the new PNG driver, we decided we didn't like the files being named this way, as it was inconsistent and could make it hard to process these files later.
We decided to go with:
test.000001.png
test.000002.png
test.000003.png
to make it more consistent.
Rick thinks it might be fairly easy to "fix" this, so that the first frame will be renamed to "test.png" if there are no other frames after the user's program ends.
Meanwhile, as a work-around, I believe you can use the "os.system" command to move the "test.000001.png" file to "test.png", after Ngl.end() is called.
--Mary
On Apr 30, 2010, at 3:22 PM, Mary Haley wrote:
> Hi Gary,
>
> FYI, the PNG driver that is part of 1.3.0b4 is a new, overhauled PNG driver.
>
> To be honest, I thought with the old PNG driver, you still got some kind of frame counter,
> because there's no way for PyNGL (or NCL for that matter), to know apriori how many
> frames will be in a PNG file.
>
> I've CC'ed Rick, as he may have some more information on this.
>
> I didn't even realize we advertised the old PNG driver, as it was one of
> those internal things that we were trying out.
>
> What was the behavior before 1.3.0b4?
>
> --Mary
>
>
> On Apr 29, 2010, at 3:10 PM, Gary Bates wrote:
>
>> hi,
>> Why was Ngl.open_wks in PyNGL Version 1.3.0b4 changed for .png files so
>> that:
>>
>> wks = Ngl.open_wks("png","test") ; Will create "test.000001.png"
>>
>> I can see no advantage to this. I want to be able to exactly determine
>> my own names for .png files. This is a pain.
>> -Gary
>>
>> _______________________________________________
>> pyngl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
>
> _______________________________________________
> pyngl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
_______________________________________________
pyngl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
Received on Wed May 5 12:25:49 2010
This archive was generated by hypermail 2.1.8 : Wed May 05 2010 - 12:31:56 MDT