[ncl-talk] Image Resizing Issue
sudipta sarkar
sdptsarkar2 at gmail.com
Wed Mar 16 15:17:04 MDT 2016
I am sure you are doing something else wrong in the rest of the code.
Please post the rest of the code. I just tried this and it works fine. Also
what version of ncl are you using.
On Wed, Mar 16, 2016 at 5:12 PM, Kerwyn Texeira <ktish86 at gmail.com> wrote:
> Sorry again, but when I did exactly that, the same error showed up. I
> attached the figure for you to see how small it is.
>
> Script;
>
> wks_type = "png"
> wks = gsn_open_wks(wks_type,"test")
> wks at wkWidth = 2500
> wks at wkHeight = 2500
>
>
> Error again;
> warning:wkImageFileName is not a resource in the given object
> warning:wkImageFormat is not a resource in the given object
>
> **Kerwyn
>
>
>
> On Wed, Mar 16, 2016 at 2:00 PM, sudipta sarkar <sdptsarkar2 at gmail.com>
> wrote:
>
>> See my other email that I sent to the general list. when you do:
>> wks_type = "png"
>> then the variable "wks_type" is just a string variable.
>> Its the variable "wks" which is initiated as:
>> wks = gsn_open_wks(wks_type,"test")
>> that is the resource variable whose width and height can be set,
>>
>> Hope its clear now.
>>
>>
>> On Wed, Mar 16, 2016 at 4:56 PM, Kerwyn Texeira <ktish86 at gmail.com>
>> wrote:
>>
>>> Hi,
>>>
>>> I don't thiking that I understand clearly. When I state wks = True or
>>> wks = "png" and did as you stated wks.wkWidth = 250 and wks.wkHeight =
>>> 2500, I got the following errors again;
>>>
>>> warning:wkImageFileName is not a resource in the given object
>>> warning:wkImageFormat is not a resource in the given object
>>>
>>> **Kerwyn
>>>
>>> On Wed, Mar 16, 2016 at 1:43 PM, sudipta sarkar <sdptsarkar2 at gmail.com>
>>> wrote:
>>>
>>>> You have to first initialize wks as you have done and then do the
>>>> following:
>>>> Like wks.wkWidth = 2500
>>>> Wks.wkHeight =2500
>>>>
>>>> On Wednesday, March 16, 2016, Kerwyn Texeira <ktish86 at gmail.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I did the following and I got the same error;
>>>>>
>>>>> wkWidth = 2500
>>>>> wkHeight = 2500
>>>>>
>>>>> wks = gsn_open_wks("png", "test")
>>>>>
>>>>> Error:warning:wkImageFileName is not a resource in the given object
>>>>> warning:wkImageFormat is not a resource in the given object
>>>>>
>>>>>
>>>>> I'm not sure what is going on.
>>>>>
>>>>> **Kerwyn
>>>>>
>>>>>
>>>>>
>>>>> On Wed, Mar 16, 2016 at 1:28 PM, Sudipta Sarkar <sdptsarkar2 at gmail.com
>>>>> > wrote:
>>>>>
>>>>>> Hi Kerwyn
>>>>>> "Wks_type" is just a string. You have to resize using the variable
>>>>>> "wks". That's the one that is the resource variable
>>>>>>
>>>>>> Sent from my iPhone
>>>>>>
>>>>>> > On Mar 16, 2016, at 4:25 PM, Kerwyn Texeira <ktish86 at gmail.com>
>>>>>> wrote:
>>>>>> >
>>>>>> > Hi nc-talk,
>>>>>> >
>>>>>> > I trying to resize my figures in "png" format but I'm having
>>>>>> issues. The size of the images are not changing.
>>>>>> >
>>>>>> > Script:
>>>>>> >
>>>>>> > wks_type = "png"
>>>>>> > wks_type at wkWidth = 2500
>>>>>> > wks_type at wkHeight = 2500
>>>>>> > wks = gsn_open_wks(wks_type, "test")
>>>>>> >
>>>>>> > Error: warning:wkImageFileName is not a resource in the given object
>>>>>> > warning:wkImageFormat is not a resource in the given object
>>>>>> >
>>>>>> > Does anyone know how I can fix this?
>>>>>> >
>>>>>> > Appreciate it much!
>>>>>> > **Kerwyn
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> > _______________________________________________
>>>>>> > 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/20160316/061d103a/attachment.html
More information about the ncl-talk
mailing list