Hi,
How do I transpose a one-dimensional vector?
In particular, I'd like to be able to calculate transpose(x) # x and get a
matrix with dimsizes(x) rows and columns as the result.
The following example taken from
http://www.ncl.ucar.edu/Document/Functions/Contributed/transpose.shtml
produces errors:
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
e = (/1,2,3,4/) ; SPECIAL CASE: one dimensional array
N = dimsizes(e)
e!0 = "data"
eT = transpose( e )
printVarSummary( eT)
Any suggestions?
Regards,
Jan Ploski
-- Dipl.-Inform. (FH) Jan Ploski OFFIS FuE Bereich Energie | R&D Division Energy Escherweg 2 - 26121 Oldenburg - Germany Phone/Fax: +49 441 9722 - 184 / 202 E-Mail: Jan.Ploski_at_offis.de URL: http://www.offis.de _______________________________________________ ncl-talk mailing list ncl-talk_at_ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Wed Oct 15 2008 - 07:56:08 MDT
This archive was generated by hypermail 2.2.0 : Fri Oct 17 2008 - 10:06:33 MDT