### Max of own variables Grads

Posted:

**Tue May 20, 2014 4:07 pm**Hi gurus,

I have a little problem.

I want to get max value of each gridpoint for a timeserie, say t=0 to t=24 from an own defined/calculated variable so i get a "24h variable" and that plotted to a map.

The variable is the thu1 in this example:

'define ha1=const(const(maskout(ownlftx,ownlftx-1.25),1),0,-u)'

'define he1=const(const(maskout(avcape,avcape-400),1),0,-u)'

'define ts1 = const(he1+ha1,0,-u)'

'define thu1=const(const(maskout(ts1,ts1-2),1),0,-u)'

Any idea how to do that?

// Henkka

I have a little problem.

I want to get max value of each gridpoint for a timeserie, say t=0 to t=24 from an own defined/calculated variable so i get a "24h variable" and that plotted to a map.

The variable is the thu1 in this example:

'define ha1=const(const(maskout(ownlftx,ownlftx-1.25),1),0,-u)'

'define he1=const(const(maskout(avcape,avcape-400),1),0,-u)'

'define ts1 = const(he1+ha1,0,-u)'

'define thu1=const(const(maskout(ts1,ts1-2),1),0,-u)'

Any idea how to do that?

// Henkka