Opened 12 years ago

Closed 6 years ago

#1842 closed defect (wontfix)

d.linegraph writes a pgm file instead of ppm

Reported by: lucadelu Owned by: grass-dev@…
Priority: normal Milestone: 7.0.7
Component: Display Version: svn-trunk
Keywords: d.linegraph, d.mon Cc:
CPU: Unspecified Platform: All

Description

d.linegraph writes a pgm file instead of ppm and d.mon returns an error

ERROR: Rendering failed. Details: File </home/lucadelu/grassdata/nc_spm_08/user1/.tmp/center/9052.0.ppm>

inside the folder I can find the pgm file which is just in the wrong format

ls /home/lucadelu/grassdata/nc_spm_08/user1/.tmp/center/
9052.0.cmd  9052.0.env  9052.0.pgm

Change History (9)

comment:1 by hamish, 12 years ago

does it still do it if you use e.g. the y_color= option? (PGM is just the greyscale version of PPM)

Hamish

in reply to:  description comment:2 by glynn, 12 years ago

Replying to lucadelu:

d.linegraph writes a pgm file instead of ppm and d.mon returns an error

If the PNG driver is asked to generate a PPM file and the data has an alpha channel, it will generate both a .ppm file and a .pgm file. The .ppm file is written first, and a fatal error will be raised if the file cannot be opened (so the .pgm won't be created).

If you have a .pgm file without a matching .ppm file, the most likely reason is that something has deleted the .ppm file.

comment:3 by martinl, 9 years ago

Milestone: 7.0.07.0.5

comment:4 by wenzeslaus, 8 years ago

Do you have some commands to reproduce it? (The docs doesn't have any example.)

comment:5 by neteler, 8 years ago

d.linegraph is used here:

# scripts/i.spectral/i.spectral.py l177
grass.run_command('d.linegraph', x_file=xfile, y_file=yfiles,...

comment:6 by martinl, 8 years ago

Still an issue?

comment:7 by neteler, 8 years ago

Milestone: 7.0.57.0.6

comment:8 by neteler, 7 years ago

Milestone: 7.0.67.0.7

comment:9 by martinl, 6 years ago

Resolution: wontfix
Status: newclosed

No activity.

Note: See TracTickets for help on using tickets.