Re: eps or epsi

From: Bob Lackman (rll AT unknown)
Date: Tue Dec 10 1996 - 15:30:13 MST


> From: Michael Timlin <timlin AT unknown>
> Subject: eps or epsi
> Sender: owner-ncarg-talk AT unknown
>
> I haven't used NCARGraphics much since the upgrade to 4.0, so I don't know
> how to create eps or epsi files using 4.0. I'm quite familiar with ctrans
> and creating postscript. When 4.0 was released it said eps and epsi were
> supported but I haven't been able to find these features.
>
> Thanks,
> Mike Timlin
> timlin AT unknown

        Mike,

        If you are using the Low Level Utilities (traditional Fortran
        and C subroutine libraries), the item that controls the output
        workstation is the argument WKTYPE in the GKS open workstation
        subroutine, GOPWK(WKID,CONID,WKTYPE)

        The choice of this argument is documented in the GKS User Guide
        at URL
                  http://ngwww.ucar.edu/ngdoc/ng4.0.1/gks/ps.html

In the new interfaces
=====================

        If you are using High Level Utilites or ncl, then you need
        to open a Workstation object and set the resource wkPSFormat
        to "ps", "eps", or "epsi" as documented at location:

http://ngwww.ucar.edu/ngdoc/ng4.0.1/ref/hlu/obj/PSWorkstation.res.html#wkPSFormat

        An example program which shows how to create a workstation object
        in NCGM, X11, or PostScript is given at location:

http://ngwww.ucar.edu/ngdoc/ng4.0.1/qsg/basic/basic07.html

        The HLU Fortran example is basic07f.f, the C example is
        basic07c.c, and the NCL example is basic07n.ncl.

        You can run any of these three examples by typing:

            ng4ex basic07f.f
        or ng4ex basic07c.c
        or ng4ex basic07n.ncl

        The examples create straight PostScript. To switch to eps, or epsi

Fortran HLU
-----------
In the section of code of example basic07f.f:
---------------------------------------------------------------------
C
C Create a PostScript workstation.
C
      call NhlFRLClear(srlist)
      call NhlFRLSetString(srlist,'wkPSFileName','basic07f.ps',ierr)
                                                  ^^^^^^^^^^^
                        (change the above to basic07f.eps or basic07f.epsi)

      call NhlFRLSetString(srlist,'wkOrientation','portrait',ierr)
      call NhlFRLSetString(srlist,'wkPSFormat','ps',ierr)
                                                ^^
                        (change the above to eps, or epsi)

      call NhlFCreate(widp,'basic07ps',NhlFPSWorkstationClass,0,
     1 srlist,ierr)
---------------------------------------------------------------------

C HLU
-----
In the section of code of example basic07c.c:
---------------------------------------------------------------------
/*
 * Create a PostScript workstation.
 */
      NhlRLClear(srlist);
      NhlRLSetString(srlist,NhlNwkPSFileName,"basic07c.ps");
                                              ^^^^^^^^^^^
                        (change the above to basic07c.eps or basic07c.epsi)

      NhlRLSetString(srlist,NhlNwkOrientation,"portrait");
      NhlRLSetString(srlist,NhlNwkPSFormat,"ps");
                                            ^^
                        (change the above to eps, or epsi)

      NhlCreate(&widp,"basic07ps",NhlpsWorkstationClass,NhlDEFAULT_APP,
                srlist);
------------------------------------------------------------------------

NCL

---
In the section of code in example basic07n.ncl:
------------------------------------------------------------------------
       ;
; Create a PostScript workstation.
;
	 widp = create "basic07ps" psWorkstationClass defaultapp
		 "wkPSFileName": "basic07n.ps"
				  ^^^^^^^^^^^
	     (change the above to basic07n.eps or basic07n.epsi)

"wkOrientation": "portrait" "wkPSFormat": "ps" ^^ (change the above to eps, or epsi)

end create ------------------------------------------------------------------------

Please let me know which interface you are using!

Best regards,

Bob-

********************************************************************* Bob Lackman National Center For Atmospheric Research E-mail: rll AT unknown P.O.Box 3000 Phone: (303) 497-1224 Boulder, CO 80307-3000 FAX: (303) 497-1804 *********************************************************************



This archive was generated by hypermail 2b29 : Wed Jun 28 2000 - 09:44:56 MDT