Re: Calculating div/grad and vector

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Tue Jun 26 2012 - 10:06:56 MDT

Yes

On 6/26/12 10:05 AM, Soumik Basu wrote:
>
> Thanks for the reply.
> Sorry that I didn't mention about my grid. It is a CAM output in T85
> resolution. In that case can I apply the spherical harmonics functions
> 'div' and 'grad'?
>
> Thanks,
> Soumik
>
>
> On 2012-06-26 07:03, Dennis Shea wrote:
>> Assuming you are referring to a WRF grid, the answer is "no" to the
>> 'div' and 'grad' functionality.
>>
>> If the data had been global and on a rectilinear grid,
>> NCL's spherical harmonic functions could perform the 'div'
>> and 'grad' operations. Unfortunately, the spherical harmonic
>> functions
>> can not be applied to a non-global or curviliner grids.
>>
>> ---
>>
>> "Calculating a vector": Basic geometry? (w=>omega).
>>
>> vlen = sqrt( (u(1)-u(0))^2 + (v(1)-v(0))^2 + (w(1)-w(0))^2 )
>>
>> a is the angle between vlen and the x-axis
>> b is the angle between vlen and the y-axis
>> c is the angle between vlen and the z-axis
>>
>> a = acos((u(1)-u(0))/vlen)
>> b = acos((v(1)-v(0))/vlen)
>> c = acos((w(1)-w(0))/vlen)
>>
>> On 6/25/12 5:39 PM, Soumik Basu wrote:
>>> Hi,
>>>
>>> I am trying to calculate some energy conversion terms and boundary
>>> flux
>>> for which I need to calculate divergence and gradient of some terms
>>> like
>>> div(T'u') and grad(T - T') . So is it possible to calculate this in
>>> NCL?
>>> Also I need vector wind so is there any function for calculating
>>> vector
>>> for example U which is a function of u,v,omega.
>>>
>>>
>>> Thanks,
>>> Soumik
>>>
>> _______________________________________________
>> 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 Tue Jun 26 10:07:04 2012

This archive was generated by hypermail 2.1.8 : Fri Jun 29 2012 - 15:46:14 MDT