[Users] CactusIO::IOJpeg standard vs. remove mode / output format
Ole Weidner
oweidner at cct.lsu.edu
Wed Dec 5 15:07:51 CST 2007
On Dec 5, 2007, at 10:46 AM, Thomas Radke wrote:
> Ole Weidner wrote:
>> Aloha,
>>
>> I'm using the IOJpeg thorn for continuous output slice generation for
>> an oceanographic model recently "ported" to cactus. The jpeg files
>> are
>> used to create an mpeg4 movie once the simulation is done.
>> Since I'm also using the HTTPD thorn for monitoring/steering, I'm
>> wondering if there's a rationale behind the fact that the IOJpeg
>> thorn
>> doesn't generate the single "remove-mode"-style advertised jpeg file
>> that is used by the HTTPD thorn to provide a preview for the current
>> time-step. I modified my local copy of the IOJpeg (dev) thorn to
>> achieve this. Would it be in general interest to have a feature like
>> this in the Cactus development CVS?
>
> If I got this right, you want to have the most recent jpeg image
> advertised when in "standard" mode (currently, nothing is advertised
> in
> this mode). Sounds like a reasonable suggestion to me.
>
> In the patch you submitted the jpeg is now created twice when in
> "standard" mode. I think it can be rewritten in a more efficient way
> such that it would generate only one image named after
> 'filename_standard_mode' and then, depending on the mode, either
> rename
> ("remove") or copy ("standard") it to 'filename_remove_mode'.
>
You're right. I'll sent an optimized version of the patch!
>> Another rather minor annoyance (IMHO;-) is the naming of the
>> continuous output files: ...
>> which makes a lexicographic ordering unnecessary difficult and
>> usually
>> (depending on the processing tool - in my case mencoder) requires an
>> additional sorting step. Would it make sense to prepend a couple of
>> zeros to the format string (Write.c)?
>
> That is a good idea !
>
> --
> Cheers, Thomas.
>
Cheers,
Ole
More information about the Users
mailing list