Re: modifying resolution in NCL-produced PNG output

From: Saji N. Hameed <saji_at_nyahnyahspammersnyahnyah>
Date: Mon, 25 Aug 2008 14:18:29 +0900

Hi All,

I was surprised to see that NCL can natively produce "png"
output. Is it true? Could the document at

http://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_open_wks.shtml

be updated, please?

saji

* David Brown <dbrown_at_ucar.edu> [2008-08-17 15:00:03 -0600]:

> Hi Gary,
> Assuming you are using the gsn interface try this:
>
> wks_type = "png"
> wks_type_at_wkWidth = 900 # or whatever
> wks_type_at_wkHeight = 900
> wks =gsn_open_wks(wks_type,"output_file_prefix")
>
>
>
> On Aug 16, 2008, at 8:53 AM, Gerry Creager wrote:
>
>> Good Morning, Dennis,
>>
>> If I do that, then I might as well go through the older method of
>> creating PS and then converting. I was trying to create a web-ready
>> graphic directly.
>>
>> I'm not pleased with the various undocumented changes in ImageMagick
>> I've already had to work though for other processes where I already
>> have to use "convert" to go to user-mandated formats for some web
>> services. A bad release (like 2.3.0 recently) can cause me days of
>> grief.
>>
>> If there's a way to change resolution within NCL that'd be wonderful.
>> If not, I'll fall back to "convert" and be quiet again!
>>
>> Thanks, Gerry
>>
>> Dennis Shea wrote:
>>> GC .... Could you not use "convert"?
>>> system("convert -density ... foo.png FOO.png")
>>> Gerry Creager wrote:
>>>> All,
>>>>
>>>> I've been googling for an answer but the most informative I've
>>>> I've found involves PyNCL which I'm not using.
>>>>
>>>> NCL has a bit of functionality to natively create PNGs. I need to
>>>> see if there's a way to change their resolution. I can't find one
>>>> so far.
>>>>
>>>> If there's a pointer, I'd appreciate it!
>>>>
>>>> Thanks. Gerry
>>
>> --
>> Gerry Creager -- gerry.creager_at_tamu.edu
>> Texas Mesonet -- AATLT, Texas A&M University
>> Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.862.3983
>> Office: 1700 Research Parkway Ste 160, TAMU, College Station, TX 77843
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk_at_ucar.edu
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>

-- 
Saji N. Hameed
APEC Climate Center          				+82 51 668 7470
National Pension Corporation Busan Building 12F         
Yeonsan 2-dong, Yeonje-gu, BUSAN 611705			saji_at_apcc21.net
KOREA
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sun Aug 24 2008 - 23:18:29 MDT

This archive was generated by hypermail 2.2.0 : Mon Aug 25 2008 - 15:23:45 MDT