[ncl-talk] copying resources from one set to another --> ?

Barry Lynn barry.h.lynn at gmail.com
Tue Nov 7 18:01:18 MST 2017


Hi Adam:

Rick mentioned that your approach would also copy, but not overwrite
resource (attributes) as well.  This works so long as the attributes have
different names.

Thanks,

Barry

On Tue, Nov 7, 2017 at 6:48 PM, Adam Phillips <asphilli at ucar.edu> wrote:

> Hi Barry,
> If all you want to do is to copy attributes from one array to another, I
> think copy_VarAtts would work:
> https://www.ncl.ucar.edu/Document/Functions/Contributed/copy_VarAtts.shtml
> Adam
>
> On Tue, Nov 7, 2017 at 4:56 AM, Barry Lynn <barry.h.lynn at gmail.com> wrote:
>
>> Hello:
>>
>> I can't seem to find how to do this.
>>
>> I have this ncl line:
>>
>> opts_zdr = set_res2_list()
>>
>> I also have opts_xy.
>>
>> When making vertical cross sections I need to set opts_zdr = opts_xy
>>
>> and then add in the resources of res2_lis.
>>
>> I am not sure how to add them in, rather than "set" them.
>>
>> Thanks,
>>
>>
>> Barry
>>
>>
>>
>>
>>
>> --
>> Barry H. Lynn, Ph.D
>> Senior Lecturer,
>> The Institute of the Earth Science,
>> The Hebrew University of Jerusalem,
>> Givat Ram, Jerusalem 91904, Israel
>> Tel: 972 547 231 170
>> Fax: (972)-25662581
>>
>> C.E.O, Weather It Is, LTD
>> Weather and Climate Focus
>> http://weather-it-is.com
>> Jerusalem, Israel
>> Local: 02 930 9525
>> Cell: 054 7 231 170
>> Int-IS: x972 2 930 9525
>> US 914 432 3108 <(914)%20432-3108>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>
>
> --
> Adam Phillips
> Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR
> www.cgd.ucar.edu/staff/asphilli/   303-497-1726 <(303)%20497-1726>
>
> <http://www.cgd.ucar.edu/staff/asphilli>
>



-- 
Barry H. Lynn, Ph.D
Senior Lecturer,
The Institute of the Earth Science,
The Hebrew University of Jerusalem,
Givat Ram, Jerusalem 91904, Israel
Tel: 972 547 231 170
Fax: (972)-25662581

C.E.O, Weather It Is, LTD
Weather and Climate Focus
http://weather-it-is.com
Jerusalem, Israel
Local: 02 930 9525
Cell: 054 7 231 170
Int-IS: x972 2 930 9525
US 914 432 3108
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20171108/f5cc7fe4/attachment.html>


More information about the ncl-talk mailing list