Re: do loop

From: <whobbs_at_nyahnyahspammersnyahnyah>
Date: Thu, 02 Jul 2009 14:20:27 -0700

Michael

You could use the 'conform' function to expand the 'toa' array to the
same size as 'trans':

    toa_con = conform(trans, toa, (/1,2/) )

    solar = trans * toa_con

See http://www.ncl.ucar.edu/Document/Functions/Built-in/conform.shtml

Will

Quoting Michael Notaro <mnotaro_at_wisc.edu>:

> Can this be performed without a do loop?
>
> do id=0,364
> do ilat=0,47
> solar(id,ilat,:)=trans(id,ilat,:)*toa(ilat,id)
> end do
> end do
>
> Thanks, Michael
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Jul 02 2009 - 15:20:27 MDT

This archive was generated by hypermail 2.2.0 : Tue Jul 07 2009 - 11:13:18 MDT