PGMA Files
ASCII PGM Files (Portable Gray Map)


PGMA is a data directory which contains examples of the ASCII PGM (Portable Gray Map) file format. It is a simple grayscale image description. The definition is as follows:

Characters from a "#" to the next end-of-line are ignored (comments). No line should be longer than 70 characters.

Example ASCII PGM file:

        P2
        # feep.ascii.pgm
        24 7
        15
        0 0  0  0  0  0  0  0  0 0  0  0  0  0  0  0  0 0  0  0  0  0  0  0
        0 3  3  3  3  0  0  7  7 7  7  0  0 11 11 11 11 0  0 15 15 15 15  0
        0 3  0  0  0  0  0  7  0 0  0  0  0 11  0  0  0 0  0 15  0  0 15  0
        0 3  3  3  0  0  0  7  7 7  0  0  0 11 11 11  0 0  0 15 15 15 15  0
        0 3  0  0  0  0  0  7  0 0  0  0  0 11  0  0  0 0  0 15  0  0  0  0
        0 3  0  0  0  0  0  7  7 7  7  0  0 11 11 11 11 0  0 15  0  0  0  0
        0 0  0  0  0  0  0  0  0 0  0  0  0  0  0  0  0 0  0  0  0  0  0  0
      

ASCII PGM File Characteristics:

Licensing:

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

Related Data and Programs:

PBMA, a data directory which describes ASCII PBM (Portable Bit Map) files.

PGMB, a data directory which describes binary PGM (Portable Gray Map) files.

PPMA, a data directory which describes ASCII PPM (Portable Pixel Map) files.

Reference:

  1. the NETPBM homepage.

Sample Files:

You can go up one level to the DATA page.


Last revised on 10 June 2011.