rlam limitations

Hi devs,

I am trying to get rlam to merge an occupancy file (single '0' or '1',
one per line) with a large matrix. Both files are 8760 lines long. The
matrix contains grey illuminance readings and has as many columns as
there are sensors in the room.

The following doesn't actually do anything useful. I'm simply running
the annual illuminance matrix through rlam:

rlam $lmx | awk '{print NF}' |sort |uniq
40

as expected, this gives me a single number: the sensor count. BUT
this only works with a small grid. With a larger one (650 grid
points), I get

rlam $lmx | awk '{print NF}' |sort |uniq -c
      1 271
      9 272
    402 273
   2400 274
   1598 275
     97 276
      2 283
     10 284
     22 285
     24 286
     19 287
      2 288
      5 363
     22 364
     23 365
     23 366
      6 367
    257 375
   2237 376
   1811 377
    199 378
      3 379
   4174 650

It looks as if all the rows with only zeros (night time) are all
right. Daytime rows (longer lines) are truncated.

Is there some rlam limitation wrt line length or column count that
might be causing this?

Lovely day to you all

Best

Axel

Hi Axel,

Yes, there is a MAXLINE #define of 8192 in the version of rlam you are using. I just increased it to 64KB, which should handle just about anything. You can download the new HEAD version or change MAXLINE in src/cal/lam.c and recompile.

Cheers,
-Greg

···

From: Axel Jacobs <[email protected]>
Date: February 11, 2014 4:38:22 AM PST

Hi devs,

I am trying to get rlam to merge an occupancy file (single '0' or '1',
one per line) with a large matrix. Both files are 8760 lines long. The
matrix contains grey illuminance readings and has as many columns as
there are sensors in the room.

The following doesn't actually do anything useful. I'm simply running
the annual illuminance matrix through rlam:

rlam $lmx | awk '{print NF}' |sort |uniq
40

as expected, this gives me a single number: the sensor count. BUT
this only works with a small grid. With a larger one (650 grid
points), I get

rlam $lmx | awk '{print NF}' |sort |uniq -c
     1 271
     9 272
   402 273
  2400 274
  1598 275
    97 276
     2 283
    10 284
    22 285
    24 286
    19 287
     2 288
     5 363
    22 364
    23 365
    23 366
     6 367
   257 375
  2237 376
  1811 377
   199 378
     3 379
  4174 650

It looks as if all the rows with only zeros (night time) are all
right. Daytime rows (longer lines) are truncated.

Is there some rlam limitation wrt line length or column count that
might be causing this?

Lovely day to you all

Best

Axel

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

You're star, Greg! Thank you so much.

Regards

Axel

···

On 11 February 2014 17:06, Gregory J. Ward <[email protected]> wrote:

Hi Axel,

Yes, there is a MAXLINE #define of 8192 in the version of rlam you are using. I just increased it to 64KB, which should handle just about anything. You can download the new HEAD version or change MAXLINE in src/cal/lam.c and recompile.

Cheers,
-Greg

From: Axel Jacobs <[email protected]>
Date: February 11, 2014 4:38:22 AM PST

Hi devs,

I am trying to get rlam to merge an occupancy file (single '0' or '1',
one per line) with a large matrix. Both files are 8760 lines long. The
matrix contains grey illuminance readings and has as many columns as
there are sensors in the room.

The following doesn't actually do anything useful. I'm simply running
the annual illuminance matrix through rlam:

rlam $lmx | awk '{print NF}' |sort |uniq
40

as expected, this gives me a single number: the sensor count. BUT
this only works with a small grid. With a larger one (650 grid
points), I get

rlam $lmx | awk '{print NF}' |sort |uniq -c
     1 271
     9 272
   402 273
  2400 274
  1598 275
    97 276
     2 283
    10 284
    22 285
    24 286
    19 287
     2 288
     5 363
    22 364
    23 365
    23 366
     6 367
   257 375
  2237 376
  1811 377
   199 378
     3 379
  4174 650

It looks as if all the rows with only zeros (night time) are all
right. Daytime rows (longer lines) are truncated.

Is there some rlam limitation wrt line length or column count that
might be causing this?

Lovely day to you all

Best

Axel

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

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