NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Hi Suvarchal, We have a few area average formulas available, such as rects(field, D=2) for the rectangular aperature smoothing, and you can check out the Jython libraries under Grid Diagnostics. There is also a formula named getNthTimeGrid(field, Nth) for your second request under the Grid Routines. Yuan On Mon, May 25, 2015 at 3:24 PM, Suvarchal Kumar < suvarchal.kumar@xxxxxxxxxxxxxxx> wrote: > Hi All, I am trying to write some jython scripts to make a composite views, > > two things i cant figure out in my script: > 1) I want to compute and display average of a grid at every time step. > > I feel there must be better way to do then loop around this to get an > Average > ucar.unidata.util.Misc.getAverage(avgvariable.getSample(i).getFloats()[0]) > --well i can live with it. > > I am ok with an average but would like area average, i havent seen a > direct function(?), is there a way to get area of each grid box? that i > could multiply and average myself? I think i saw it somewhere but cant > find where. > > 2) how to access a grid at particular time subset passed as an array? > i have a gridded dataset with N times as timeset, would like to have > newvariables at time indices 1,2,7 or specified by time values, into a new > variable. > > so I would like to get only a particular time subset of a grid specified > by a time array list(either index or value). This works as part of > Dataselection before reading dataset but cant manage it with a variable > after it is loaded? > > Cheers, > Suvarchal > > > > > > > > > > _______________________________________________ > idvusers mailing list > idvusers@xxxxxxxxxxxxxxxx > For list information, to unsubscribe, visit: > http://www.unidata.ucar.edu/mailing_lists/ > >
idvusers
archives: