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: | |
---|---|---|---|
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 , 12 years ago
comment:2 by , 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 , 9 years ago
Milestone: | 7.0.0 → 7.0.5 |
---|
comment:4 by , 8 years ago
Do you have some commands to reproduce it? (The docs doesn't have any example.)
comment:5 by , 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:7 by , 8 years ago
Milestone: | 7.0.5 → 7.0.6 |
---|
comment:8 by , 7 years ago
Milestone: | 7.0.6 → 7.0.7 |
---|
does it still do it if you use e.g. the y_color= option? (PGM is just the greyscale version of PPM)
Hamish