This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hi- > Full Name: Nguyen Duc Ha > Email Address: address@hidden > Organization: ITC > Package Version: 2.8a1 build date:2009-11-29 08:08 UTC > Operating System: Windows Vista > Hardware: Java: home: C:\Program Files\IDV_2.8a1\jre version: 1.6.0_13 > j3d:1.5.2 fcs (build4) > Description of problem: Hi! > I am trying to get wind direction at location and time from grid sources by > this way: > > u = sampletoReal ( u_component grid of wind, EarthLocation, animationValue) > v = sampletoReal ( v_component grid of wind, EarthLocation, animationValue) > > and then I do : > direction = dirr(vecr(u,v)) > however I got this error: "1st arg can't be coerced to visad.FieldImpl" > > Could you tell me what should I do here? The dirr only works with grids, not single points. Your best bet would be to create the dirr grid and then sample that. Don Murray Ticket Details =================== Ticket ID: ECG-920998 Department: Support IDV Priority: Normal Status: Open