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.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[IDV #ECG-920998]: get wind direction from grid sources



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