Re: Calculating div/grad and vector

From: Soumik Basu <sbasu_at_nyahnyahspammersnyahnyah>
Date: Tue Jun 26 2012 - 10:05:59 MDT

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

-- 
"Numbing the pain for a while will make it worse when you finally feel 
it.
  ~J.K. Rowling"
*****************************************
Soumik Basu
Graduate Student, Research Assistant
International Arctic Research Center
University of Alaska Fairbanks
Fairbanks,Alaska,USA
*****************************************
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Jun 26 10:06:26 2012

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