Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: GRIDDATA wo...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 28 Topic 5497 of 6247
Post > Topic >>

Re: GRIDDATA woes

by David Fanning <news@[EMAIL PROTECTED] > Mar 4, 2008 at 10:05 AM

Bill Gallery writes:

> Ben,
> 
> 1.  There is an error in your routine to generate longitude.
> 
> ;;lon = FINDGEN(nLon)/(nLon-1) * PS[0] + lonRange[0]
> lon = fINDGEN(nLon) * PS[0] + lonRange[0]
> 
> Otherwise, lon has only two unique points
> 
> 2.  Try using the first form of grid_data: without /sphere:
> 
> ;filter and reorder the data
> ;;GRID_INPUT, lon, lat, zValue, xyz, newZ, /SPHERE, /DEGREES, EPSILON
> = PS[0]/2.0
> GRID_INPUT, lon, lat, zValue, x1, y1, newZ, /DEGREES, EPSILON = PS[0]/
> 2.0
> 
> ;build the triangulation
> ;;QHULL, xyz[0,*], xyz[1,*], tr, /DELAUNAY
> QHULL, x1, y1, tr, /DELAUNAY
> 
> ;interpolate
> ;;Z = GRIDDATA(xyz[0,*], xyz[1,*], newZ, /SPHERE,/DEGREES, $
> Z = GRIDDATA(x1, y1, newZ, /SPHERE,/DEGREES, $
>     METHOD = "NaturalNeighbor", MISSING = !VALUES.F_NAN, $
>     XOUT = oLon, YOUT = oLat, TRIANGLES = tr )
> 
> You will no longer get the dreaded "Triangle 0 not in counterclockwise
> order"  error.

Well, actually, I *did* still get the error. And I continued to
get it until I removed the SPHERE keyword from GRIDDATA, too.
Has anyone, anywhere, gotten spherical triangles to work on anything?

I don't know what to say about this in my article, except
not to ever use the SPHERE keyword if you expect to use
these routines successfully. Any ideas?

Cheers,

David
-- 
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Se****e ma de ni thui. ("Perhaps thou speakest truth.")
 




 28 Posts in Topic:
GRIDDATA woes
"ben.bighair" &  2008-03-02 18:57:27 
Re: GRIDDATA woes
Bill Gallery <wgallery  2008-03-03 11:00:55 
Re: GRIDDATA woes
David Fanning <news@[E  2008-03-04 10:05:13 
Re: GRIDDATA woes
"Kenneth P. Bowman&q  2008-03-03 08:24:14 
Re: GRIDDATA woes
David Fanning <news@[E  2008-03-04 08:35:55 
Re: GRIDDATA woes
"Kenneth P. Bowman&q  2008-03-04 21:04:16 
Re: GRIDDATA woes
David Fanning <news@[E  2008-03-04 22:04:32 
Re: GRIDDATA woes
David Fanning <news@[E  2008-03-04 12:49:54 
Re: GRIDDATA woes
"Kenneth P. Bowman&q  2008-03-04 20:55:19 
Re: GRIDDATA woes
David Fanning <news@[E  2008-03-05 07:57:59 
Re: GRIDDATA woes
Kenneth Bowman <k-bowm  2008-03-05 10:05:10 
Re: GRIDDATA woes
Kenneth Bowman <k-bowm  2008-03-05 08:14:03 
Re: GRIDDATA woes
David Fanning <news@[E  2008-03-04 14:14:37 
Re: GRIDDATA woes
David Fanning <news@[E  2008-03-04 09:03:31 
Re: GRIDDATA woes
"ben.bighair" &  2008-03-04 08:05:59 
Re: GRIDDATA woes
David Fanning <news@[E  2008-03-04 10:14:46 
Re: GRIDDATA woes
"Kenneth P. Bowman&q  2008-03-04 21:02:39 
Re: GRIDDATA woes
James Kuyper <jameskuy  2008-03-05 11:38:10 
Re: GRIDDATA woes
"Kenneth P. Bowman&q  2008-03-05 07:46:41 
Re: GRIDDATA woes
Brian Larsen <balarsen  2008-03-04 08:23:04 
Re: GRIDDATA woes
Bill Gallery <wgallery  2008-03-04 09:43:26 
Re: GRIDDATA woes
David Fanning <news@[E  2008-03-04 10:54:50 
Re: GRIDDATA woes
Bill Gallery <wgallery  2008-03-04 14:17:35 
Re: GRIDDATA woes
David Fanning <news@[E  2008-03-04 16:58:42 
Re: GRIDDATA woes
pgrigis@[EMAIL PROTECTED]  2008-03-04 14:39:31 
Re: GRIDDATA woes
"ben.bighair" &  2008-03-04 14:46:46 
Re: GRIDDATA woes
"ben.bighair" &  2008-03-04 19:14:26 
Re: GRIDDATA woes
David Fanning <news@[E  2008-03-04 22:10:22 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Oct 10 13:34:57 CDT 2008.