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 27 of 28 Topic 5497 of 6454
Post > Topic >>

Re: GRIDDATA woes

by "ben.bighair" <ben.bighair@[EMAIL PROTECTED] > Mar 4, 2008 at 07:14 PM

On Mar 4, 6:58 pm, David Fanning <n...@[EMAIL PROTECTED]
> wrote:
> Bill Gallery writes:
> > On the other hand, I don't understand the implications of the /sphere
> > option: without it, you appear to be interpolating on a flat surface.
> > What happens near the poles? What about crossing the meridian from 359
> > deg to 0 deg? I never investigated these question. Perhaps you can
> > elucidate them in your white paper.
>
> Yes, exactly my plan, but at the moment it looks like I will have to
> re-write GRIDDATA from scratch in order to understand it. :-(
>
> I always get an ominous feeling when I've asked the same
> question three or four times and get nothing but silence
> back. An obvious topic for a Ph.D. thesis, is my first
> thought. In this case, I was hoping the author might be
> listening in and could tell us why he added the darn
> SPHERE keyword in the first place. Surely he had something
> other than confounding users in mind. :-)
>

Hi,

I updated the example code using Bill's suggestions and a small
twist...

http://www.tidewater.net/~pemaquid/ccw_fail.pro

This test function now allows you to specify the triangulation method
("qhull" or "triangulate") and the /SPHERE keyword.  Here's the
results using the different keyword combinations...

SeaDAS> z = ccw_fail(olon = olon, olat = olat, trimethod = "qhull",
sphere = 0) ;works

SeaDAS> z = ccw_fail(olon = olon, olat = olat, trimethod = "qhull",
sphere = 1) ;doesn't work
% GRIDDATA: Triangle 5 not in counterclockwise order.
% GRIDDATA: Triangle 6 not in counterclockwise order.
    .
    .
    .

SeaDAS> z = ccw_fail(olon = olon, olat = olat, trimethod =
"triangulate", sphere = 0) ;works

SeaDAS> z = ccw_fail(olon = olon, olat = olat, trimethod =
"triangulate", sphere = 1) ;works

QHULL and TRIANGULATE use different algorithms, so I suppose it is
reasonable that they produce different outputs.  So, I compared the
results of each and sure enough they are different...

QHULL, lon, lat, qtr,/DELAUNAY
TRIANGULATE, lon, lat, ttr, /DEGREES
help, qtr,ttr
QTR             LONG      = Array[3, 744557] ;QHULL's triangulation
TTR             LONG      = Array[3, 742122] ;TRIANGULATES
triangulation

So, I am not sure what to think.  The locations are specified to be on
a grid it is unlikely that the issue is duplicates points (within some
tolerance).   For grins I called QHULL with the SPHERE keyword
assigned...

QHULL, lon, lat, sqtr, /DELAUNAY, SPHERE = s
help, sqtr
SQTR            LONG      = Array[3, 744578]

Hahaha!  Time to call it quits for the day!

Cheers,
Ben
 




 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 Wed Dec 3 13:54:04 CST 2008.