Errors while transposing with Rcollate.

Hi everyone,

I am trying to do a transpose with rcollate. My operating system is Windows.
My file contains rgb triplets arranged in a (8760columns x 60rows) matrix. I
either get a "error loading file into memory" or an incorrect transpose.

I found that I got the same results with a simple ASCII file with tab
separated values. My file contains:

1 2 3 4

5 6 7 8

9 10 11 12

The following commands return "error loading file into memory":

rcollate -h -fa1 -t a.txt >d.txt

rcollate -h -fa1 -ic 4 -oc 3-t a.txt >d.txt

I found that the '-t' flag was responsible for the error, so I tried
explicitly stating the values for columns and rows as:

rcollate -h -fa1 -ic 4 -ir 3 -oc 3 -ir 4 a.txt>d.txt

This gave me.

1 2 3

4 5 6

7 8 9

10 11 12

Am I missing something?

Thanks,

Sarith

Hi Sarith,

This seems related to the broken handling of text versus binary files under Windows. Try reading the file from stdin, instead:

rcollate –h –fa1 –t < a.txt > d.txt

If this works, let me know and I'll see if I can put in a fix.

Cheers,
-Greg

···

From: "Sarith Subramaniam" <[email protected]>
Subject: [Radiance-general] Errors while transposing with Rcollate.
Date: June 15, 2015 5:09:13 PM PDT

Hi everyone,

I am trying to do a transpose with rcollate. My operating system is Windows. My file contains rgb triplets arranged in a (8760columns x 60rows) matrix. I either get a “error loading file into memory” or an incorrect transpose.

I found that I got the same results with a simple ASCII file with tab separated values. My file contains:

1 2 3 4
5 6 7 8
9 10 11 12

The following commands return “error loading file into memory”:

rcollate –h –fa1 –t a.txt >d.txt

rcollate –h –fa1 –ic 4 –oc 3–t a.txt >d.txt

I found that the ‘-t’ flag was responsible for the error, so I tried explicitly stating the values for columns and rows as:

rcollate –h –fa1 –ic 4 –ir 3 –oc 3 –ir 4 a.txt>d.txt

This gave me.
1 2 3
4 5 6
7 8 9
10 11 12

Am I missing something?

Thanks,
Sarith

Hi Greg,

The command that you suggested returns the usage options for rcollate in
windows. (ie. Usage: rcollate [-h[io].....)

Earlier, I had tried feeding the file to rcollate via stdin through using
pipe ( | ) as well as the 'type a.txt' shell command in windows but didn't
get it work either way.

Thanks,

Sarith

···

From: Greg Ward [mailto:[email protected]]
Sent: Tuesday, June 16, 2015 12:04 AM
To: Radiance general discussion
Subject: Re: [Radiance-general] Errors while transposing with Rcollate.

Hi Sarith,

This seems related to the broken handling of text versus binary files under
Windows. Try reading the file from stdin, instead:

rcollate -h -fa1 -t < a.txt > d.txt

If this works, let me know and I'll see if I can put in a fix.

Cheers,

-Greg

From: "Sarith Subramaniam" <[email protected] <mailto:[email protected]> >

Subject: [Radiance-general] Errors while transposing with Rcollate.

Date: June 15, 2015 5:09:13 PM PDT

Hi everyone,

I am trying to do a transpose with rcollate. My operating system is Windows.
My file contains rgb triplets arranged in a (8760columns x 60rows) matrix. I
either get a "error loading file into memory" or an incorrect transpose.

I found that I got the same results with a simple ASCII file with tab
separated values. My file contains:

1 2 3 4

5 6 7 8

9 10 11 12

The following commands return "error loading file into memory":

rcollate -h -fa1 -t a.txt >d.txt

rcollate -h -fa1 -ic 4 -oc 3-t a.txt >d.txt

I found that the '-t' flag was responsible for the error, so I tried
explicitly stating the values for columns and rows as:

rcollate -h -fa1 -ic 4 -ir 3 -oc 3 -ir 4 a.txt>d.txt

This gave me.

1 2 3

4 5 6

7 8 9

10 11 12

Am I missing something?

Thanks,

Sarith

Anyone else have any ideas or suggestions? Honestly, I don't know why redirecting stdin from a file would fail completely. I thought this was supported under Windows.

I'm stumped.

-G

···

From: "Sarith Subramaniam" <[email protected]>
Subject: Re: [Radiance-general] Errors while transposing with Rcollate.
Date: June 15, 2015 9:45:56 PM PDT

Hi Greg,

The command that you suggested returns the usage options for rcollate in windows. (ie. Usage: rcollate [-h[io]………..)

Earlier, I had tried feeding the file to rcollate via stdin through using pipe ( | ) as well as the ‘type a.txt’ shell command in windows but didn’t get it work either way.

Thanks,
Sarith

From: Greg Ward [mailto:[email protected]]
Sent: Tuesday, June 16, 2015 12:04 AM
To: Radiance general discussion
Subject: Re: [Radiance-general] Errors while transposing with Rcollate.

Hi Sarith,

This seems related to the broken handling of text versus binary files under Windows. Try reading the file from stdin, instead:

rcollate –h –fa1 –t < a.txt > d.txt

If this works, let me know and I'll see if I can put in a fix.

Cheers,
-Greg

From: "Sarith Subramaniam" <[email protected]>
Subject: [Radiance-general] Errors while transposing with Rcollate.
Date: June 15, 2015 5:09:13 PM PDT

Hi everyone,

I am trying to do a transpose with rcollate. My operating system is Windows. My file contains rgb triplets arranged in a (8760columns x 60rows) matrix. I either get a “error loading file into memory” or an incorrect transpose.

I found that I got the same results with a simple ASCII file with tab separated values. My file contains:

1 2 3 4
5 6 7 8
9 10 11 12

The following commands return “error loading file into memory”:

rcollate –h –fa1 –t a.txt >d.txt

rcollate –h –fa1 –ic 4 –oc 3–t a.txt >d.txt

I found that the ‘-t’ flag was responsible for the error, so I tried explicitly stating the values for columns and rows as:

rcollate –h –fa1 –ic 4 –ir 3 –oc 3 –ir 4 a.txt>d.txt

This gave me.
1 2 3
4 5 6
7 8 9
10 11 12

Am I missing something?

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

Hi Sarith,

I just tried both calls (with and w/o redirecting from stdin) with the
latest Windows binaries from NREL(https://github.com/NREL/Radiance/releases)
and both work fine at my side...

rcollate –h –fa1 –t a.txt > d.txt
rcollate –h –fa1 –t < a.txt > d.txt

Which version of rcollate are you using?

Best,
David

···

2015-06-16 6:58 GMT+02:00 Greg Ward <[email protected]>:

Anyone else have any ideas or suggestions? Honestly, I don't know why
redirecting stdin from a file would fail completely. I thought this was
supported under Windows.

I'm stumped.

-G

*From: *"Sarith Subramaniam" <[email protected]>

*Subject: *Re: [Radiance-general] Errors while transposing with Rcollate.

*Date: *June 15, 2015 9:45:56 PM PDT

Hi Greg,

The command that you suggested returns the usage options for rcollate in
windows. (ie. Usage: rcollate [-h[io]………..)

Earlier, I had tried feeding the file to rcollate via stdin through using
pipe ( | ) as well as the ‘type a.txt’ shell command in windows but didn’t
get it work either way.

Thanks,

Sarith

*From:* Greg Ward [mailto:[email protected]]
*Sent:* Tuesday, June 16, 2015 12:04 AM
*To:* Radiance general discussion
*Subject:* Re: [Radiance-general] Errors while transposing with Rcollate.

Hi Sarith,

This seems related to the broken handling of text versus binary files
under Windows. Try reading the file from stdin, instead:

rcollate –h –fa1 –t < a.txt > d.txt

If this works, let me know and I'll see if I can put in a fix.

Cheers,

-Greg

*From: *"Sarith Subramaniam" <[email protected]>

*Subject: *[Radiance-general] Errors while transposing with Rcollate.

*Date: *June 15, 2015 5:09:13 PM PDT

Hi everyone,

I am trying to do a transpose with rcollate. My operating system is
Windows. My file contains rgb triplets arranged in a (8760columns x 60rows)
matrix. I either get a “error loading file into memory” or an incorrect
transpose.

I found that I got the same results with a simple ASCII file with tab
separated values. My file contains:

1 2 3 4

5 6 7 8

9 10 11 12

The following commands return “error loading file into memory”:

*rcollate –h –fa1 –t a.txt >d.txt*

*rcollate –h –fa1 –ic 4 –oc 3–t a.txt >d.txt*

I found that the ‘-t’ flag was responsible for the error, so I tried
explicitly stating the values for columns and rows as:

*rcollate –h –fa1 –ic 4 –ir 3 –oc 3 –ir 4 a.txt>d.txt*

This gave me.

1 2 3

4 5 6

7 8 9

10 11 12

Am I missing something?

Thanks,

Sarith

_______________________________________________
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

--
Dipl.-Ing. Dr. David Geisler-Moroder
Hofwaldweg 14/20
6020 Innsbruck
Austria

Looks like a line endings problem. If I create an input text file on Windows and run rcollate, I get the "error loading file into memory" error. But if I create an input text file on the Mac, copy it to my Windows VM and run rcollate, it works fine with the first invocation David lists below. What I don't know about this crap could fill a book, but I am ASSuming rcollate lacks certain file type handling that other radiance programs have. (?) HTH, YMMV, EIEIO, TTFN

···

On 6/16/15, 7:50 AM, "David Geisler-Moroder" <[email protected]<mailto:[email protected]>> wrote:

Hi Sarith,

I just tried both calls (with and w/o redirecting from stdin) with the latest Windows binaries from NREL(https://github.com/NREL/Radiance/releases) and both work fine at my side...

rcollate -h -fa1 -t a.txt > d.txt
rcollate -h -fa1 -t < a.txt > d.txt

Which version of rcollate are you using?

Best,
David

2015-06-16 6:58 GMT+02:00 Greg Ward <[email protected]<mailto:[email protected]>>:
Anyone else have any ideas or suggestions? Honestly, I don't know why redirecting stdin from a file would fail completely. I thought this was supported under Windows.

I'm stumped.

-G

From: "Sarith Subramaniam" <[email protected]<mailto:[email protected]>>

Subject: Re: [Radiance-general] Errors while transposing with Rcollate.

Date: June 15, 2015 9:45:56 PM PDT

Hi Greg,

The command that you suggested returns the usage options for rcollate in windows. (ie. Usage: rcollate [-h[io]...........)

Earlier, I had tried feeding the file to rcollate via stdin through using pipe ( | ) as well as the 'type a.txt' shell command in windows but didn't get it work either way.

Thanks,
Sarith

From: Greg Ward [mailto:[email protected]<mailto:[email protected]>]
Sent: Tuesday, June 16, 2015 12:04 AM
To: Radiance general discussion
Subject: Re: [Radiance-general] Errors while transposing with Rcollate.

Hi Sarith,

This seems related to the broken handling of text versus binary files under Windows. Try reading the file from stdin, instead:

rcollate -h -fa1 -t < a.txt > d.txt

If this works, let me know and I'll see if I can put in a fix.

Cheers,
-Greg

From: "Sarith Subramaniam" <[email protected]<mailto:[email protected]>>

Subject: [Radiance-general] Errors while transposing with Rcollate.

Date: June 15, 2015 5:09:13 PM PDT

Hi everyone,

I am trying to do a transpose with rcollate. My operating system is Windows. My file contains rgb triplets arranged in a (8760columns x 60rows) matrix. I either get a "error loading file into memory" or an incorrect transpose.

I found that I got the same results with a simple ASCII file with tab separated values. My file contains:

1 2 3 4
5 6 7 8
9 10 11 12

The following commands return "error loading file into memory":

rcollate -h -fa1 -t a.txt >d.txt

rcollate -h -fa1 -ic 4 -oc 3-t a.txt >d.txt

I found that the '-t' flag was responsible for the error, so I tried explicitly stating the values for columns and rows as:

rcollate -h -fa1 -ic 4 -ir 3 -oc 3 -ir 4 a.txt>d.txt

This gave me.
1 2 3
4 5 6
7 8 9
10 11 12

Am I missing something?

Thanks,
Sarith
_______________________________________________
Radiance-general mailing list
[email protected]<mailto:[email protected]>
http://www.radiance-online.org/mailman/listinfo/radiance-general

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

--
Dipl.-Ing. Dr. David Geisler-Moroder
Hofwaldweg 14/20
6020 Innsbruck
Austria

Something else that is totally bizarre is that if I type your entry on the command line, rcollate crashes with an MSVCR120.dll error, but if I paste Greg's text into the command line it gives me the usage text - and they appear to be completely identical commands. We are using the NREL compile of Radiance.

Rick

···

From: Greg Ward [mailto:[email protected]]
Sent: Tuesday, June 16, 2015 12:59 AM
To: Radiance general discussion
Subject: Re: [Radiance-general] Errors while transposing with Rcollate.

Anyone else have any ideas or suggestions? Honestly, I don't know why redirecting stdin from a file would fail completely. I thought this was supported under Windows.

I'm stumped.

-G

From: "Sarith Subramaniam" <[email protected]<mailto:[email protected]>>

Subject: Re: [Radiance-general] Errors while transposing with Rcollate.

Date: June 15, 2015 9:45:56 PM PDT

Hi Greg,

The command that you suggested returns the usage options for rcollate in windows. (ie. Usage: rcollate [-h[io]...........)

Earlier, I had tried feeding the file to rcollate via stdin through using pipe ( | ) as well as the 'type a.txt' shell command in windows but didn't get it work either way.

Thanks,
Sarith

From: Greg Ward [mailto:[email protected]]
Sent: Tuesday, June 16, 2015 12:04 AM
To: Radiance general discussion
Subject: Re: [Radiance-general] Errors while transposing with Rcollate.

Hi Sarith,

This seems related to the broken handling of text versus binary files under Windows. Try reading the file from stdin, instead:

rcollate -h -fa1 -t < a.txt > d.txt

If this works, let me know and I'll see if I can put in a fix.

Cheers,
-Greg

From: "Sarith Subramaniam" <[email protected]<mailto:[email protected]>>

Subject: [Radiance-general] Errors while transposing with Rcollate.

Date: June 15, 2015 5:09:13 PM PDT

Hi everyone,

I am trying to do a transpose with rcollate. My operating system is Windows. My file contains rgb triplets arranged in a (8760columns x 60rows) matrix. I either get a "error loading file into memory" or an incorrect transpose.

I found that I got the same results with a simple ASCII file with tab separated values. My file contains:

1 2 3 4
5 6 7 8
9 10 11 12

The following commands return "error loading file into memory":

rcollate -h -fa1 -t a.txt >d.txt

rcollate -h -fa1 -ic 4 -oc 3-t a.txt >d.txt

I found that the '-t' flag was responsible for the error, so I tried explicitly stating the values for columns and rows as:

rcollate -h -fa1 -ic 4 -ir 3 -oc 3 -ir 4 a.txt>d.txt

This gave me.
1 2 3
4 5 6
7 8 9
10 11 12

Am I missing something?

Thanks,
Sarith
_______________________________________________
Radiance-general mailing list
[email protected]<mailto:[email protected]>
http://www.radiance-online.org/mailman/listinfo/radiance-general

Let's take this discussion offline and post again when it's resolved. At this point, it isn't clear if the problem lies with the build, the command-line interpreter or Windows system it's running under, or the rcollate command itself.

If you have some idea and want to help us work this out, write to me and I'll loop you back in.

Cheers,
-Greg

···

From: Richard Mistrick <[email protected]>
Subject: Re: [Radiance-general] Errors while transposing with Rcollate.
Date: June 16, 2015 5:50:36 AM PDT

Something else that is totally bizarre is that if I type your entry on the command line, rcollate crashes with an MSVCR120.dll error, but if I paste Greg’s text into the command line it gives me the usage text – and they appear to be completely identical commands. We are using the NREL compile of Radiance.

Rick

From: Greg Ward [mailto:[email protected]]
Sent: Tuesday, June 16, 2015 12:59 AM
To: Radiance general discussion
Subject: Re: [Radiance-general] Errors while transposing with Rcollate.

Anyone else have any ideas or suggestions? Honestly, I don't know why redirecting stdin from a file would fail completely. I thought this was supported under Windows.

I'm stumped.

-G
From: "Sarith Subramaniam" <[email protected]>
Subject: Re: [Radiance-general] Errors while transposing with Rcollate.
Date: June 15, 2015 9:45:56 PM PDT

Hi Greg,

The command that you suggested returns the usage options for rcollate in windows. (ie. Usage: rcollate [-h[io]………..)

Earlier, I had tried feeding the file to rcollate via stdin through using pipe ( | ) as well as the ‘type a.txt’ shell command in windows but didn’t get it work either way.

Thanks,
Sarith

From: Greg Ward [mailto:[email protected]]
Sent: Tuesday, June 16, 2015 12:04 AM
To: Radiance general discussion
Subject: Re: [Radiance-general] Errors while transposing with Rcollate.

Hi Sarith,

This seems related to the broken handling of text versus binary files under Windows. Try reading the file from stdin, instead:

rcollate –h –fa1 –t < a.txt > d.txt

If this works, let me know and I'll see if I can put in a fix.

Cheers,
-Greg

From: "Sarith Subramaniam" <[email protected]>
Subject: [Radiance-general] Errors while transposing with Rcollate.
Date: June 15, 2015 5:09:13 PM PDT

Hi everyone,

I am trying to do a transpose with rcollate. My operating system is Windows. My file contains rgb triplets arranged in a (8760columns x 60rows) matrix. I either get a “error loading file into memory” or an incorrect transpose.

I found that I got the same results with a simple ASCII file with tab separated values. My file contains:

1 2 3 4
5 6 7 8
9 10 11 12

The following commands return “error loading file into memory”:

rcollate –h –fa1 –t a.txt >d.txt

rcollate –h –fa1 –ic 4 –oc 3–t a.txt >d.txt

I found that the ‘-t’ flag was responsible for the error, so I tried explicitly stating the values for columns and rows as:

rcollate –h –fa1 –ic 4 –ir 3 –oc 3 –ir 4 a.txt>d.txt

This gave me.
1 2 3
4 5 6
7 8 9
10 11 12

Am I missing something?

Thanks,
Sarith
_______________________________________________
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

Well, that was quicker than expected. Just after sending this e-mail, Sarith wrote again and the problem seems to be resolved. He had an old version of rcollate that didn't work when stdin was redirected from a file, but the latest works in that mode with -t but not from a file under Windows. This was easy enough to fix, and the next NREL release should behave properly. Meanwhile, Windows folks may have to redirect the input when transposing ASCII files with rcollate.

A tempest in a teacup, really....

Cheers,
-Greg

···

From: Greg Ward <[email protected]>
Subject: Re: [Radiance-general] Errors while transposing with Rcollate.
Date: June 16, 2015 11:50:02 AM PDT

Let's take this discussion offline and post again when it's resolved. At this point, it isn't clear if the problem lies with the build, the command-line interpreter or Windows system it's running under, or the rcollate command itself.

If you have some idea and want to help us work this out, write to me and I'll loop you back in.

Cheers,
-Greg

From: Richard Mistrick <[email protected]>
Subject: Re: [Radiance-general] Errors while transposing with Rcollate.
Date: June 16, 2015 5:50:36 AM PDT

Something else that is totally bizarre is that if I type your entry on the command line, rcollate crashes with an MSVCR120.dll error, but if I paste Greg’s text into the command line it gives me the usage text – and they appear to be completely identical commands. We are using the NREL compile of Radiance.

Rick

From: Greg Ward [mailto:[email protected]]
Sent: Tuesday, June 16, 2015 12:59 AM
To: Radiance general discussion
Subject: Re: [Radiance-general] Errors while transposing with Rcollate.

Anyone else have any ideas or suggestions? Honestly, I don't know why redirecting stdin from a file would fail completely. I thought this was supported under Windows.

I'm stumped.

-G
From: "Sarith Subramaniam" <[email protected]>
Subject: Re: [Radiance-general] Errors while transposing with Rcollate.
Date: June 15, 2015 9:45:56 PM PDT

Hi Greg,

The command that you suggested returns the usage options for rcollate in windows. (ie. Usage: rcollate [-h[io]………..)

Earlier, I had tried feeding the file to rcollate via stdin through using pipe ( | ) as well as the ‘type a.txt’ shell command in windows but didn’t get it work either way.

Thanks,
Sarith

From: Greg Ward [mailto:[email protected]]
Sent: Tuesday, June 16, 2015 12:04 AM
To: Radiance general discussion
Subject: Re: [Radiance-general] Errors while transposing with Rcollate.

Hi Sarith,

This seems related to the broken handling of text versus binary files under Windows. Try reading the file from stdin, instead:

rcollate –h –fa1 –t < a.txt > d.txt

If this works, let me know and I'll see if I can put in a fix.

Cheers,
-Greg

From: "Sarith Subramaniam" <[email protected]>
Subject: [Radiance-general] Errors while transposing with Rcollate.
Date: June 15, 2015 5:09:13 PM PDT

Hi everyone,

I am trying to do a transpose with rcollate. My operating system is Windows. My file contains rgb triplets arranged in a (8760columns x 60rows) matrix. I either get a “error loading file into memory” or an incorrect transpose.

I found that I got the same results with a simple ASCII file with tab separated values. My file contains:

1 2 3 4
5 6 7 8
9 10 11 12

The following commands return “error loading file into memory”:

rcollate –h –fa1 –t a.txt >d.txt

rcollate –h –fa1 –ic 4 –oc 3–t a.txt >d.txt

I found that the ‘-t’ flag was responsible for the error, so I tried explicitly stating the values for columns and rows as:

rcollate –h –fa1 –ic 4 –ir 3 –oc 3 –ir 4 a.txt>d.txt

This gave me.
1 2 3
4 5 6
7 8 9
10 11 12

Am I missing something?

Thanks,
Sarith
_______________________________________________
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

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