[GRASS5] r.lzw2z updated...

Eric G . Miller egm2 at jps.net
Tue Jan 23 20:55:52 EST 2001

On Tue, Jan 23, 2001 at 06:10:57PM +0000, Markus Neteler wrote:
> The problem with s.surf.rst is that it doesn't use the GRASS functions
> to write maps (huh!). Therefore the lzw_compression_bits: 0 occurs.
> The module uses "fwrite" as far as I understand
> src/sites/s.surf.rst/main.c
> Maybe I am wrong and src/libes/rst_gmsl/interp_float/output2d.c is
> used with G_put_f_raster_row(). 
> Ah yes, see
> ./interp_float/resout2dmod.c
> ./interp_float/resout2d.c
>     cf1 = G_open_fp_cell_new_uncompressed (params->elev);
>     cf1 = G_open_fp_cell_new_uncompressed (params->elev);
> Maybe that's the reason?
> Could you change the r.lzw2z accordingly so that it can handle these
> data as well without WARNING?

I will update to compare against the -1 token instead of checking the
9-20 range.  This ought to solve the problem for most cases...

Eric G. Miller <egm2 at jps.net>

If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'

More information about the grass-dev mailing list