{
    "content": [
        {
            "type": "text",
            "text": "# pamseq (man)\n\n## NAME\n\npamseq - generate PAM image of a numerical sequence of tuple values\n\n## SYNOPSIS\n\npamseq [-tupletype=tupletype] depth maxval [-min=n,n,...]  [-max=n,n,...]  [-step=n,n,...]\nAll  options can be abbreviated to their shortest unique prefix.  You may use two hyphens in‐\nstead of one to designate an option.  You may use either white space or an  equals  sign  be‐\ntween an option name and its value.\n\n## DESCRIPTION\n\nThis program is part of Netpbm(1).\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (4 subsections)\n- **USAGE**\n- **SEE ALSO**\n- **HISTORY**\n- **DOCUMENT SOURCE**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "pamseq",
        "section": "",
        "mode": "man",
        "summary": "pamseq - generate PAM image of a numerical sequence of tuple values",
        "synopsis": "pamseq [-tupletype=tupletype] depth maxval [-min=n,n,...]  [-max=n,n,...]  [-step=n,n,...]\nAll  options can be abbreviated to their shortest unique prefix.  You may use two hyphens in‐\nstead of one to designate an option.  You may use either white space or an  equals  sign  be‐\ntween an option name and its value.",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "This is the value of the \"tupletype\" attribute of the created PAM image. It can be any string up to 255 characters."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "This gives the starting value for the sequence in each plane. The number of comma-separated numbers must be equal to the number of planes in the image (its depth). Each number must be a whole number no greater than the maxval of the image. The first number is for Plane 0, the second for Plane 1, etc. The default is 0 in every plane. This option was new in Netpbm 10.99 (June 2022)."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "This is analogous to -min, giving the ending value for the sequence. Each value must be at least as great as the corresponding -min value. The default is the maxval in every plane. This option was new in Netpbm 10.99 (June 2022)."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "This is analogous to -min, giving the step value for the sequence (difference between two consecutive numbers). Each value must be positive and no greater than the maxval. The default is 1. This option was new in Netpbm 10.99 (June 2022)."
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "pnmremap",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pnmremap/1/json"
            },
            {
                "name": "pamtopnm",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pamtopnm/1/json"
            },
            {
                "name": "pamrestack",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pamrestack/1/json"
            },
            {
                "name": "pam",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pam/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 53,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 5,
                "subsections": [
                    {
                        "name": "-tupletype",
                        "lines": 4
                    },
                    {
                        "name": "-min=_",
                        "lines": 11
                    },
                    {
                        "name": "-max=_",
                        "lines": 11
                    },
                    {
                        "name": "-step=_",
                        "lines": 12
                    }
                ]
            },
            {
                "name": "USAGE",
                "lines": 30,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "HISTORY",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DOCUMENT SOURCE",
                "lines": 6,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "pamseq - generate PAM image of a numerical sequence of tuple values\n\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "pamseq [-tupletype=tupletype] depth maxval [-min=n,n,...]  [-max=n,n,...]  [-step=n,n,...]\n\nAll  options can be abbreviated to their shortest unique prefix.  You may use two hyphens in‐\nstead of one to designate an option.  You may use either white space or an  equals  sign  be‐\ntween an option name and its value.\n\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This program is part of Netpbm(1).\n\npamseq generates a PAM image of a specified depth and specified\nmaxval that consists of a single row.  The row consists of tuples\ncontaining sample values in a numerical sequence.\n\nFor example\n\npamseq 1 4\n\n\ngenerates a 5 pixel wide image of 1 row with depth 1 tuples containing these\nsamples, in order from left to right:\n\n0 1 2 3 4\n\n\nThe following example uses depth 2:\n\npamseq 2 2\n\n\nThe resulting image is a 9 pixel wide image of 1 row with depth 2 containing\nthese samples, in order from left to right;\n\n(0,0) (0,1) (0,2) (1,0) (1,1) (1,2) (2,0) (2,1) 2,2)\n\n\nYou can choose the starting and ending sample values and the step for each\nplane:  Here is an example of that:\n\npamseq 1 255 -min=4 -max=8 -step=2\n\n\nThis generates\n\n4 6 8\n\n\nIn two dimensions:\n\npamseq 2 255 -min=0,4 -max=2,8 -step=1,2\n\n\n(0,4) (0,6) (0,8) (1,4) (1,6) (1,8) (2,4) (2,6) (2,8)\n\n\npamseq varies first the highest numbered plane, then the next lower\nnumbered plane, etc.  Within each plane, the program varies from low sample\nvalue to high.\n\n\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "In  addition  to  the options common to all programs based on libnetpbm (most notably -quiet,\nsee \u001b]8;;index.html#commonoptions\u001b\\ Common Options\u001b]8;;\u001b\\ ), pamseq recognizes the following command line options:\n\n\n",
                "subsections": [
                    {
                        "name": "-tupletype",
                        "content": "This is the value of the \"tupletype\" attribute of the created PAM image.  It  can  be\nany string up to 255 characters.\n\n"
                    },
                    {
                        "name": "-min=_",
                        "content": "This gives the starting value for the sequence in each plane.  The number\nof comma-separated numbers must be equal to the number of planes in the\nimage (its depth).  Each number must be a whole number no greater than\nthe maxval of the image.  The first number is for Plane 0, the second for\nPlane 1, etc.\n\nThe default is 0 in every plane.\n\nThis option was new in Netpbm 10.99 (June 2022).\n\n"
                    },
                    {
                        "name": "-max=_",
                        "content": "This is analogous to -min, giving the ending value for the\nsequence.\n\nEach value must be at least as great as the corresponding -min\nvalue.\n\nThe default is the maxval in every plane.\n\nThis option was new in Netpbm 10.99 (June 2022).\n\n"
                    },
                    {
                        "name": "-step=_",
                        "content": "This is analogous to -min, giving the step value for the\nsequence (difference between two consecutive numbers).\n\nEach value must be positive and no greater than the maxval.\n\nThe default is 1.\n\nThis option was new in Netpbm 10.99 (June 2022).\n\n\n\n"
                    }
                ]
            },
            "USAGE": {
                "content": "To create a simple ramp of the values 0..255, for input to various matrix calculations, try\npamseq 1 255\n\n(Before pamseq existed, pgmramp was often pressed into service for this).\n\nTo create a PPM color map of all the possible colors representable with a maxval of 5, do\npamseq 3 5 -tupletype=RGB | pamtopnm\n\n\nAgain, with a modern program based on the Netpbm library, you don't need the pamtopnm because\na PAM RGB image is equivalent to a PPM image.\n\nYou  can  use such a color map with pnmremap(1) to quantize the colors in an image.  With the\nmaxval of 5 given in the example, you get a color map of the set of \"web safe\" colors as  de‐\nfined by Netscape.  Most web browsers guarantee that they can produce at least these 216 col‐\nors (215 plus black).\n\npamrestack can often produce a useful two-dimensional image from pamseq's single row.\n\npamseq 2 255 -min=0,4 -max=2,8 -step=1,2 | pamrestack -width=3\n\n\n(0,4) (0,6) (0,8)\n(1,4) (1,6) (1,8)\n(2,4) (2,6) (2,8)\n\n\n\n\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "pnmremap(1), pamtopnm(1), pamrestack(1), pam(1)\n\n",
                "subsections": []
            },
            "HISTORY": {
                "content": "pamseq was added to Netpbm in June 2002.\n",
                "subsections": []
            },
            "DOCUMENT SOURCE": {
                "content": "This  manual  page  was  generated by the Netpbm tool 'makeman' from HTML source.  The master\ndocumentation is at\n\nhttp://netpbm.sourceforge.net/doc/pamseq.html\n\nnetpbm documentation                        30 April 2022                      Pamseq User Manual(1)",
                "subsections": []
            }
        }
    }
}