[ncl-talk] appending values
Aditya Nalam
aditya.nalam at gmail.com
Wed Nov 25 11:30:50 MST 2015
Hi all
I was having trouble in appending values in a newly created array array
The code written for it:
n=21
func=new(n,float)
l=0
do while(l.lt.n)
func(l)=dble2flt(1/n)
l=l+1
end do
print(func)
The output:
Variable: func
Type: float
Total Size: 84 bytes
21 values
Number of Dimensions: 1
Dimensions and sizes: [21]
Coordinates:
Number Of Attributes: 2
typeConversion_op_ncl : double converted to float
_FillValue : 9.96921e+36
(0) 0
(1) 0
(2) 0
(3) 0
(4) 0
(5) 0
(6) 0
(7) 0
(8) 0
(9) 0
(10) 0
(11) 0
(12) 0
(13) 0
(14) 0
(15) 0
(16) 0
(17) 0
(18) 0
(19) 0
(20) 0
Where am i going wrong? Kindly clarify.
Thank you very much
--
Regards
Adithya Nalam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20151126/7a596e14/attachment.html
More information about the ncl-talk
mailing list