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 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
archives: