[GRASS-dev] [GRASS GIS] #1842: d.linegraph writes a pgm file instead of ppm

#1842: d.linegraph writes a pgm file instead of ppm
--------------------------------+-------------------------------------------
Reporter: lucadelu | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Display | Version: svn-trunk
Keywords: d.linegraph, d.mon | Platform: All
      Cpu: Unspecified |
--------------------------------+-------------------------------------------
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
}}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1842&gt;
GRASS GIS <http://grass.osgeo.org>

#1842: d.linegraph writes a pgm file instead of ppm
--------------------------------+-------------------------------------------
Reporter: lucadelu | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Display | Version: svn-trunk
Keywords: d.linegraph, d.mon | Platform: All
      Cpu: Unspecified |
--------------------------------+-------------------------------------------

Comment(by hamish):

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

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1842#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#1842: d.linegraph writes a pgm file instead of ppm
--------------------------------+-------------------------------------------
Reporter: lucadelu | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Display | Version: svn-trunk
Keywords: d.linegraph, d.mon | Platform: All
      Cpu: Unspecified |
--------------------------------+-------------------------------------------

Comment(by glynn):

Replying to [ticket:1842 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.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1842#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>