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, I'm trying to sample at user-specified lat/lon in a 2D grid. Any ideas to enhance as indicated in the comments below: def getValueAtLocation(fieldimpl) : """Extract a value from a 3D grid at "Location." Enhance so it will work On 2D gridded datasets too level is a makeEarthLocation; must be appropriate for the grid. param fieldimpl is a grid which may have one or more time steps. """ from ucar.unidata.idv.control.DisplayControlBase import makeEarthLocation location = makeEarthLocation(10.000, 104.0, 0) # lat/lon/alt should be supplied as a field of points loaded as csv using # the visad text-adaptor/ESRI shapefile print location ff = GridUtil.sample(fieldimpl, location) # works NOT on a 2D grid (only on 3D), is there an equivalent for 2D's? print ff # works return ff # return doesn't work yet, why? Cheers, Tyn International Institute for Geo-Information Science and Earth Observation (ITC) Chamber of Commerce: 410 27 560 E-mail disclaimer The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission.
idvdevelopers
archives: