Re: pdf

From: Adam Phillips (asphilli AT XXXXXX)
Date: Tue Jul 20 2004 - 08:16:05 MDT

  • Next message: Bob Tomas: "Lonitude tick mark spacing + res@pmTickMarkDisplayMode = "Always""

    Hi Keith,

    At the end of your do loop delete the workstation: delete(wks). I did a quick
    test here and that seemed to work..

    Adam
      
    >Delivered-To: asphilli@ucar.edu
    >Delivered-To: ncl-talk@ucar.edu
    >X-Authentication-Warning: atmis.cgd.ucar.edu: oleson owned process doing -bs
    >Date: Fri, 16 Jul 2004 12:47:22 -0600 (MDT)
    >From: Keith Oleson <oleson@cgd.ucar.edu>
    >To: <ncl-talk@ucar.edu>
    >MIME-Version: 1.0
    >X-Mailman-Approved-At: Tue, 20 Jul 2004 08:09:30 -0600
    >Subject: pdf
    >X-BeenThere: ncl-talk@ucar.edu
    >X-Mailman-Version: 2.1.1
    >List-Id: NCAR Command Language User Group <ncl-talk.ucar.edu>
    >List-Unsubscribe: <http://mailman.ucar.edu/mailman/listinfo/ncl-talk>,
    <mailto:ncl-talk-request@ucar.edu?subject=unsubscribe>
    >List-Post: <mailto:ncl-talk@ucar.edu>
    >List-Help: <mailto:ncl-talk-request@ucar.edu?subject=help>
    >List-Subscribe: <http://mailman.ucar.edu/mailman/listinfo/ncl-talk>,
    <mailto:ncl-talk-request@ucar.edu?subject=subscribe>
    >X-Spam-Status: No, hits=-6.2 required=5.0
    tests=AWL,BAYES_01,USER_AGENT_PINE,X_AUTH_WARNING version=2.55
    >X-Spam-Level:
    >X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp)
    >
    >I have an ncl script from which I'm generating multiple postscript files.
    >I'm using gsn_open_wks within a loop of index "ar" like:
    >
    >wks = gsn_open_wks(plot_type,wkdir+"set3_radf_"+ps_id(ar))
    >
    >This works fine. However when I change plot_type from "ps" to "pdf" I get
    >the following error:
    >
    >warning:GKS:GOPWK: -- Only one PDF workstation can be open at a time
    >fatal:Workstation with PID#105 is not open
    > ERROR 3 IN NGSETI - value for WO must reference an open workstation.
    > ERROR 1 IN NGSETI - Uncleared prior error
    > ERROR 1 IN NGSETI - Uncleared prior error
    > ERROR 1 IN NGSETI - Uncleared prior error
    > ERROR 1 IN NGSETI - Uncleared prior error
    > ERROR 1 IN NGSETI - Uncleared prior error
    >fatal:Unable to open Workstation-Can't Create
    >fatal:Unable to access object with id:-4
    >
    >I get this error on the second loop.
    >
    >Do I have to do something special to generate multiple pdf files from within
    >a single ncl script?
    >
    >Thanks,
    >
    >Keith
    >
    >
    >____________________________________________________________________________
    >Keith Oleson oleson@ucar.edu
    >Terrestrial Sciences Section Work Phone: 303-497-1332
    >Climate and Global Dynamics Division Fax: 303-497-1695
    >National Center for Atmospheric Research Express mail: NCAR
    >P.O. Box 3000 1850 Table Mesa Dr.
    >Boulder, CO 80307 Boulder, CO 80305
    >
    >_______________________________________________
    >ncl-talk mailing list
    >ncl-talk@ucar.edu
    >http://mailman.ucar.edu/mailman/listinfo/ncl-talk

    -------------------------------------------------------------
    Adam Phillips email: asphilli@ucar.edu
    Climate and Global Dynamics Division tel: (303) 497-1726
    National Center for Atmospheric Research fax: (303) 497-1333
    P.O. Box 3000
    Boulder, CO 80307-3000 http://www.cgd.ucar.edu/~asphilli

    _______________________________________________
    ncl-talk mailing list
    ncl-talk@ucar.edu
    http://mailman.ucar.edu/mailman/listinfo/ncl-talk



    This archive was generated by hypermail 2b29 : Tue Jul 20 2004 - 08:17:15 MDT