This command is superseded by pamtofits. More information: https://netpbm.sourceforge.net/doc/pnmtofits.html.
pamtofits
tldr pamtofits