Sum over time step

c256
2013-02-14
2013-10-17
  • c256

    c256 - 2013-02-14

    HI all,

    I have a netcdf file wit the following dimensions:
    dimensions:

    TSTEP = UNLIMITED ; // (24 currently)
    VAR=39
    .
    .
    

    I would like to sum all the value of the 39 variables together so to have the total for the day:
    I used something like:

    ${NCO}/ncwa -O -C -a TSTEP -y ttl FILE FILE

    Is this correct?

    Thanks.

     
  • Charlie Zender

    Charlie Zender - 2013-02-14

    You question is unclear so all I can answer is … maybe. try it and see.
    ncwa does not add different variables together, but it will total the time steps within each variable.
    cz

     
  • c256

    c256 - 2013-02-14

    Sorry, it was really unclear.

    BTW you got the idea. I simply have to total the time steps within each variable.
    Is the code ok?

    Thanks

     
  • Charlie Zender

    Charlie Zender - 2013-02-14

    yes

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks