[Radiance-general] how to pipe the output of pcompos as input for pflip

Tim Perry tim.v2.0 at gmail.com
Thu May 17 12:59:48 PDT 2012


Ji,

what if you just reverse the order of the two operations?

Tim


On Thu, May 17, 2012 at 12:13 PM, Ji Zhang <hope.zh at gmail.com> wrote:

> Dear Greg, thank you very much!
>
> I've got the C file you sent. However, I have no experience in C
> programming. So, can you kindly advise me how should I "compile" or "do
> with" it?
>
> What I want to do is to get a falsecolor sky radiance fisheye image and
> map it back to a virtual sky dome. See the link below:
>
> http://diva4rhino.com/forum/topics/gendaylit-in-diva-2-0-seriously-underesitmates-total-irradiation
>
> Since the falsecolor image I generated from falsecolor2.exe is one with
> East and West switched, I need to crop it to get ride of the color legend
> and flip horizontally it so that East and West are correctly visualized.
>
> Thanks again!
>
> - Ji
>
>
>
>
> On Fri, May 18, 2012 at 2:03 AM, Greg Ward <gregoryjward at gmail.com> wrote:
>
>> You should get a usage error.  The 4.1 version of pflip needs the input
>> file on the command line, so it can seek on it for the -v option.  While
>> technically not necessary for the -h option by itself, this is how I wrote
>> it figuring it was not worth the effort for the corner case of someone
>> wanting on pflip -h to read from stdin.
>>
>> I have modified the code and uploaded a new version that works in your
>> scenario.  I will e-mail you the C file separately.
>>
>> Cheers,
>> -Greg
>>
>>
>> > From: Ji Zhang <hope.zh at gmail.com>
>> > Date: May 17, 2012 9:33:44 AM PDT
>> >
>> > Dear list,
>> >
>> > I can use two separate commands to crop and flip an .hdr image:
>> >
>> > pcompos -x 800 -y 800 ./sky.hdr -100 0 > ./sky_clipped.hdr
>> > pflip -h ./sky_clipped.hdr > ./sky_flipped.hdr
>> >
>> >
>> > However, I don't seem to be able to "pipe" the output of pcompos as
>> input for pflip using the following script:
>> > pcompos -x 800 -y 800 ./sky.hdr -100 0 | pflip -h > ./sky_flipped.hdr
>> >
>> > I'm sure I missed something here, so please kindly advise!
>> >
>> > Thanks a lot!
>> >
>> > - Ji
>>
>> _______________________________________________
>> Radiance-general mailing list
>> Radiance-general at radiance-online.org
>> http://www.radiance-online.org/mailman/listinfo/radiance-general
>>
>
>
> _______________________________________________
> Radiance-general mailing list
> Radiance-general at radiance-online.org
> http://www.radiance-online.org/mailman/listinfo/radiance-general
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20120517/5d09e0a7/attachment.html>


More information about the Radiance-general mailing list