I think the issue is that transpose requires named coordinates, so the
following two are equivalent for data(lat|:,lon|:):
trans = data( lon|:,lat|: )
trans = transpose( data )
I don't think it can handle 1-d arrays.
Cheers,
Carl
On Thu, Sep 11, 2008 at 10:23 AM, Andrew Mai <mai_at_ucar.edu> wrote:
> Carl J. Schreck, III wrote:
>
> By contrast, in matlab it would simply be:
>
> outer = a' * b
>
>
> Hmm... It sure seems to me that the following ought to work in NCL (and get
> the same answer as my previous posting):
>
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
>
> begin
>
> a = (/1,2,3,4/)
> b = (/5,6,7/)
> c = transpose(a) # b
> print(c)
>
> end
>
> It does not work. Anyone want to comment as to why?
>
> Andy
>
> --
>
> Andrew W. Mai
> --- __o National Center for Atmospheric Research
> ---- _`\<,_ Boulder, CO 80307 USA
> --- (*)/ (*) http://www.cgd.ucar.edu/cdp/mai/mai.html
>
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Sep 11 2008 - 08:28:24 MDT
This archive was generated by hypermail 2.2.0 : Fri Sep 12 2008 - 21:42:04 MDT