|
From: Jean-Yves P. <Jea...@ls...> - 2016-02-13 11:19:48
|
On 13/02/2016 07:54, Fall, Souleymane wrote:
> I am still using the old nice CDAT!
Wow, 2009, that's old
> I have netcdf files that span 1981-2009 at annual time step.
>
> One example: a netdcf representing consecutive dry days: variable: cdd
> (29,54,94).
>
> From this file, I want to create a new netcdf that represents the sum
> for each gridpoint. VCDAT has plenty of functions including Mean,
> Variance, StDev ..., but not Sum.
can you try
import MV2
cdd_sum = MV2.sum(cdd, axis=0)
This is available in a 2011 CDAT version. I have older binaries, but I
can't get them to work easily
If your 2009 version is still based on Numeric instead of numpy, just
use 'MV' instead of MV2
You should consider moving to a more recent version. At least the old
1.5.1 version!
JY
--
```
(o o)
+-------------oOO--(_)--OOo-------------------------------------------+
| Jean-Yves Peterschmitt |
| Laboratoire des Sciences du Climat et de l'Environnement (LSCE) |
| UMR CEA-CNRS 1572 |
| LSCE/DSM - CEA Saclay - L'Orme des Merisiers - Bat 701 |
| 91191 Gif-sur-Yvette - FRANCE |
+---------------------------------------------------------------------+
| jea...@ls... |
| Tel (33.1) 69.08.77.19 Fax (33.1) 69.08.77.16 |
+---------------------------------------------------------------------+
|