# [gradsusr] Areal Average over Depth

Joseph Basconcillo jbasconcillo at pagasa.dost.gov.ph
Tue Aug 21 11:08:45 EDT 2018

```I would like to share the reply of Davide as reference to similar issues. Thank you.

set x 1
set y 1
set z 1
set t 1 last
d tloop( mean(aave(var, global),z=10,z=20)

Joseph

----- Original Message -----
From: "Joseph Basconcillo" <jbasconcillo at pagasa.dost.gov.ph>
Sent: Tuesday, August 21, 2018 10:58:27 PM
Subject: Re: [gradsusr] Areal Average over Depth

Hi, David:

It did not result to averaged values from 100-300m depth. Instead, it resulted hovmoller diagram that varies with depth and time. I want integration of subsurface ocean temperature from 100-300m depth levels. Thanks.

Yours,
Joseph

----- Original Message -----
From: "Davide Sacchetti" <davide.sacchetti at arpal.gov.it>
Sent: Tuesday, August 21, 2018 5:32:29 PM
Subject: Re: [gradsusr] Areal Average over Depth

try this:

define test=tloop(aave(var, global))
d test

it should work
bye
Davide

On Tue, 2018-08-21 at 15:20 +0800, Joseph Basconcillo wrote:
> Good day! I want to create a timeseries data of subsurface ocean
> temperature from 100-300m using global domain. I suppose the function
> aave can produce timeseries in one depth level. Using global domain
> does not make sense but I want to test it first then proceed to
> regional domain.
>
> Say, if I do..
>
> set x 1
> set y 1
> set z 10 20
> set t 1 last
> d tloop(aave(var, global))
>
> Error says the Z cannot vary. So I want to take the average value of
> Z from 10th-20th depth level. Is there a way to do this in GrADS? I
> looked at the function vint. How can I used that in my problem? Thank
> you.
>
> Yours,
> Joseph Basconcillo
>
> _______________________________________________

_______________________________________________