Re: pipe to ctrans

From: NCAR G Talk (ncargt AT unknown)
Date: Wed Aug 23 2000 - 09:57:16 MDT

  • Next message: Robert A Cohen: "Re: colormap with animate (idt)"

    >
    > Hi all! ;-)
    >
    > I'm trying to pipe a cgm from a ncarg script (f77) into ctrans.
    > Following the manual
    > (http://ngwww.ucar.edu/ngdoc/ng/fund/chp6-10/workstations.html) I set
    > the NCARG_GKS_OUTPUT variable to "|ctrans", but no matter what/if I set
    > GRAPHCAP when I try to open a workstation with this piece of code
    >
    > CALL GOPKS (IERRF, ISZDM)
    > CALL GOPWK (IWKID, LUNIT, IWTYPE)
    > CALL GQOPS (OPSTA)
    > print *, 'After COPWK ',OPSTA
    > CALL GACWK (IWKID)
    > CALL GQOPS (OPSTA)
    > print *, 'After GACWK ',OPSTA
    >
    > where IERRF = 6, ISZDM = 0, IWKID = 1, LUNIT=2 and IWTYPE=1
    > I get this output:
    >
    > Error in flswks_() : Seek failed
    > GKS ERROR NUMBER 304 ISSUED FROM SUBROUTINE GOPWK :
    > .
    > .
    > .

    Dear Giovanni Leoncini,

    I will have to look into why the NCARG_GKS_OUTPUT method isn't
    working. Meanwhile, if you want your output to go to the screen, I
    recommend using the X11 driver instead of writing the output to an
    NCGM file.

    To do this, just set IWTYPE (the third argument to GOPWK) to 8, and
    recompile and run your program.

    Please let me know if you need to use the other method, and I'll let you
    know when we figure out what the problem is with it.

    Sincerely,

    --Mary Haley



    This archive was generated by hypermail 2b29 : Wed Aug 23 2000 - 10:19:42 MDT