[ncl-talk] How to use the wkPDFResolution resource?
Rick Brownrigg
brownrig at ucar.edu
Fri Apr 8 09:22:18 MDT 2016
Hi,
Unfortunately, the wkPDFResolution resource applies only to NCL's original
PDF driver, which was superseded by a newer driver that supports the
advanced color capabilities. If you are not making use of those advanced
features (opacity, exact-colors, etc.), then you can still access the
original driver by using a workstation type of "oldpdf".
Hope that helps...
Rick
On Thu, Apr 7, 2016 at 8:48 PM, yinjinfang88 at 163.com <yinjinfang88 at 163.com>
wrote:
> Dear all,
> I am just trying to use the wkPDFResolution resource to increase
> the PDF figure resolution. Two ways have been tested, but it does not work.
> The NCL is version 6.3.0.
>
> One way to set a value for the wkPDFResolution is :
>
> type = "pdf"
> type at wkPSResolution = 5400; (default is 1800)
> wks = gsn_open_wks(type, "54511")
>
> However, a warning is given
> *warning:wkPSResolution is not a resource in the given object*
> The warning indicates that the wkPSResolution resource is unavailable at
> this time.
>
> Alternative way is using a gsun to open a workstation.
> xworkid = create "testWork" pdfWorkstationClass defaultapp
> "wkPDFResolution" : 5400
> "wkPDFFileName" : "test.pdf"
> end create
>
> This setting works well. However, the size of the pdf file remains
> unchanged.
>
> Any idea?
> Thanks a lot.
>
> Jin-Fang Yin
>
>
>
>
>
>
> ------------------------------
> *State Key Laboratory of Severe Weather, Chinese Academy of Meteorological
> Sciences, Beijing 100081, China*
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160408/60e8eb50/attachment.html
More information about the ncl-talk
mailing list