Re: do loop

From: <whobbs_at_nyahnyahspammersnyahnyah>
Date: Thu, 02 Jul 2009 14:37:46 -0700

Michael

My mistake; I was rushing and hadn't notices that the order of
dimensions for toa and trans were different: this *should* work...

  toa!0 = "lat"
  toa!1 = "day"

   toa_cons = conform(trans, toa(day|:,lat|:), (/0,1/) )
   solar = toa_con * trans

Sorry again.

Will

Quoting Michael Notaro <mnotaro_at_wisc.edu>:

> Thanks. I tried that but got this error:
> fatal:conform: the dimensions sizes of the second argument do not
> match those indicated by the third argument
> fatal:Execute: Error occurred at or near line 69
>
>
> On Jul 2, 2009, at 4:20 PM, whobbs_at_ucla.edu wrote:
>
>> 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
>
>

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

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