how to pipe the output of pcompos as input for pflip

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 <[email protected]>
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

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 <[email protected]> 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 <[email protected]>
> 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
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

Ji,

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

Tim

···

On Thu, May 17, 2012 at 12:13 PM, Ji Zhang <[email protected]> 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 <[email protected]> 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 <[email protected]>
> 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
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

The C file goes in src/px -- if you didn't compile Radiance, though, it won't do you much good.

Tim's idea of reversing the order of operations should work, since falsecolor can read from a pipe. Or, you could create a temporary file and use the version of pflip you have.

-Greg

···

From: Tim Perry <[email protected]>
Date: May 17, 2012 12:59:48 PM PDT

Ji,

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

Tim

On Thu, May 17, 2012 at 12:13 PM, Ji Zhang <[email protected]> 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

Thanks, Greg and Tim!

Can you kindly explain the "reversing the order of operation" approach? Do
you mean flipping the image first before cropping it?

BTW, it seems that the horizontally flipped .hdr image created by pflip
cannot be correctly displayed in PhotosphereU application on Mac system.
What is shown in PhotosphereU is still the original one before flipping.
However, the flipped image can be correctly displayed in Photoshop. I'm not
sure if there's something wrong with my Mac system because the flipped .hdr
image can't be properly previewed either...

Please kindly advise!

The original hdr image:
https://sites.google.com/site/episodehopezh/files/original.hdr?attredirects=0&d=1

The flipped hdr image:
https://sites.google.com/site/episodehopezh/files/flipped.hdr?attredirects=0&d=1

- Cheers, Ji

···

On Fri, May 18, 2012 at 5:14 AM, Greg Ward <[email protected]> wrote:

The C file goes in src/px -- if you didn't compile Radiance, though, it
won't do you much good.

Tim's idea of reversing the order of operations should work, since
falsecolor can read from a pipe. Or, you could create a temporary file and
use the version of pflip you have.

-Greg

*From: *Tim Perry <[email protected]>

*Date: *May 17, 2012 12:59:48 PM PDT

*
*

Ji,

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

Tim

On Thu, May 17, 2012 at 12:13 PM, Ji Zhang <[email protected]> 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

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

Yes, we meant flipping the image horizontally before running falsecolor. This should also fix the issue with Photosphere.

I made the design decision to correct image orientations in Photosphere based on the input. Use the -c option of pflip if you don't want this to occur.

Best,
-Greg

···

From: Ji Zhang <[email protected]>
Date: May 18, 2012 1:41:31 PM PDT

Thanks, Greg and Tim!

Can you kindly explain the "reversing the order of operation" approach? Do you mean flipping the image first before cropping it?

BTW, it seems that the horizontally flipped .hdr image created by pflip cannot be correctly displayed in PhotosphereU application on Mac system. What is shown in PhotosphereU is still the original one before flipping. However, the flipped image can be correctly displayed in Photoshop. I'm not sure if there's something wrong with my Mac system because the flipped .hdr image can't be properly previewed either...

Please kindly advise!

The original hdr image:
https://sites.google.com/site/episodehopezh/files/original.hdr?attredirects=0&d=1

The flipped hdr image:
https://sites.google.com/site/episodehopezh/files/flipped.hdr?attredirects=0&d=1

- Cheers, Ji

Noted with thanks, Greg! Will try accordingly later. - Cheers, Ji

···

On 19 May, 2012, at 6:43 AM, Greg Ward <[email protected]> wrote:

Yes, we meant flipping the image horizontally before running falsecolor. This should also fix the issue with Photosphere.

I made the design decision to correct image orientations in Photosphere based on the input. Use the -c option of pflip if you don't want this to occur.

Best,
-Greg

From: Ji Zhang <[email protected]>
Date: May 18, 2012 1:41:31 PM PDT

Thanks, Greg and Tim!

Can you kindly explain the "reversing the order of operation" approach? Do you mean flipping the image first before cropping it?

BTW, it seems that the horizontally flipped .hdr image created by pflip cannot be correctly displayed in PhotosphereU application on Mac system. What is shown in PhotosphereU is still the original one before flipping. However, the flipped image can be correctly displayed in Photoshop. I'm not sure if there's something wrong with my Mac system because the flipped .hdr image can't be properly previewed either...

Please kindly advise!

The original hdr image:
https://sites.google.com/site/episodehopezh/files/original.hdr?attredirects=0&d=1

The flipped hdr image:
https://sites.google.com/site/episodehopezh/files/flipped.hdr?attredirects=0&d=1

- Cheers, Ji

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general