NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GEMPAK #AFG-179015]: NMAP2 Configuration



> Marcus,
> 
> The postscript driver code:
> $GEMPAK/source/driver/active/ps/pinita.c and psdatt.c have some code
> that sets the /Letter, /Tabloid, /Roll1, or /Roll2 based
> on the X;Y sizes used in the DEVICE parameter.
> 
> If you have modified psopen.c to define /A3, you will also have to modify
> those 2 routines to pick the /A3 based on the sizes you pass. At the moment,
> the code just looks for ranges to assume the type, but you need to add
> your specific range before the more general to prevent /Tabloid from
> being chosen to automate that decision.
> 
> If you have already generated some ps files, then you can simply
> edit the ps file and change the "papername" line from /Tabloid to /A3 if
> you had added the /A3 size into the prolog.
> 
> Steve Chiswell
> Unidata User Support
> 
> > Hi,
> > I need to print an image from nmap2 into a paper A3.
> > The sizes of paper is 297 x 420 mm (11.701799... x 16.548 inches).
> > I've found a previous email asking the same. I followed that
> > instructions but I'm kinda confuse.
> > I've added the last line to this section of the file
> > '$GEMPAK/source/driver/active/ps/psopen.c':
> > strcat ( prolog, " /papersize {\n" );
> > strcat ( prolog, "    papersizedict begin\n" );
> > strcat ( prolog, "        /Letter { << /PageSize [612 792] >>
> > setpagedevice } def\n" );
> > strcat ( prolog, "        /Tabloid { << /PageSize [792 1224] >>
> > setpagedevice } def\n" );
> > strcat ( prolog, "        /A3 {<< /PageSize [842 1191] >>
> > setpagedevice } def\n" );
> >
> > The number is 842.5296 x 1191.456 pixel (that I rounded it down).
> > What should I do next?
> >
> > Thanks for the Attention!
> >
> > --
> > Att.
> > Marcus Vin&#65533;cius S. Mendes
> > Cachoeira Paulista / SP - Brazil (GMT-3)
> > National Institute for Space Research - INPE
> > Center for Weather Forecast and Climatic Analysis - CPTEC
> > (+55) (12) 3186-8676
> >
> >
> 


Ticket Details
===================
Ticket ID: AFG-179015
Department: Support GEMPAK
Priority: High
Status: Closed