Re: plot,lat,lon [message #61541] |
Sat, 19 July 2008 14:21  |
Vince Hradil
Messages: 574 Registered: December 1999
|
Senior Member |
|
|
On Jul 19, 12:18 pm, d.po...@gmail.com wrote:
> On 19 Jul., 06:24, Vince Hradil <hrad...@yahoo.com> wrote:
>
>
>
>> On Jul 19, 7:19 am, d.po...@gmail.com wrote:
>
>>> On 19 Jul., 03:20, Spon <christoph.b...@gmail.com> wrote:
>
>>>> On Jul 19, 10:58 am, d.po...@gmail.com wrote:
>
>>>> > Folks
>
>>>> > I want to plot lat, lon in plot (actually it is rivers coordinates)
>>>> > when I put them in *plot* ends of the branches are connected to
>>>> > beginning of another branch (I want each branch be separate). Does
>>>> > anybody know how to fix it?
>>>> > Any help?
>
>>>> > Cheers
>
>>>> Is this what you mean?
>
>>>> Plot, [0,1], /NoData, XRange=[MinLon, MaxLon], YRange=[MinLat, MaxLat]
>>>> OPlot, *Each river separately*
>
>>>> Chris
>
>>> no for example if you plot this two column:
>
>>> 531607,8642 3406573,946
>>> 530567,965 3401814,358
>>> 531187,9049 3401014,427
>>> 531187,9049 3401014,427
>>> 530567,965 3401814,358
>>> 529428,0755 3400194,498
>>> 528728,1434 3399374,569
>>> 528728,1434 3399374,569
>>> 528268,188 3399074,595
>>> 526928,3179 3398014,687
>>> 533027,7265 3392115,198
>>> 533027,7265 3392115,198
>>> 534247,6082 3390675,322
>>> 534247,6082 3390675,322
>>> 526928,3179 3398014,687
>>> 524808,5234 3397194,758
>>> 524168,5855 3396354,831
>>> 524528,5506 3396054,857
>>> 525248,4808 3395334,919
>>> 527988,2151 3391255,272
>>> 530427,9786 3389015,466
>>> 531467,8777 3387595,589
>>> 532367,7905 3387475,599
>>> 532367,7905 3387475,599
>>> 536227,4162 3383855,913
>>> 536227,4162 3383855,913
>>> 531467,8777 3387595,589
>>> 530427,9786 3389015,466
>>> 527988,2151 3391255,272
>>> 525248,4808 3395334,919
>>> 524528,5506 3396054,857
>>> 524168,5855 3396354,831
>>> 524168,5855 3396354,831
>>> 524808,5234 3397194,758
>>> 522408,7561 3400314,488
>>> 521888,8065 3400734,452
>>> 521888,8065 3400734,452
>>> 521768,8181 3401214,41
>>> 521768,8181 3401214,41
>>> 521248,8686 3402414,306
>>> 520808,9112 3402694,282
>>> 520808,9112 3402694,282
>>> 521248,8686 3402414,306
>>> 522408,7561 3400314,488
>>> 528268,188 3399074,595
>>> 529428,0755 3400194,498
>
>>> you will see this problem arises.
>>> Cheers
>>> Dave
>
>> Your going to need to tell IDL when the rivers end and begin. The
>> program has no way of knowing. Then use Chris's suggestion.- Zitierten Text ausblenden -
>
>> - Zitierten Text anzeigen -
>
> Yes!!!! for each river I have an ID:
>
> x y ID
> 531607,8642 3406573,946 3518
> 530567,965 3401814,358 460664
> 531187,9049 3401014,427 537535
> 531187,9049 3401014,427 537535
> 530567,965 3401814,358 460664
> 529428,0755 3400194,498 616208
> 528728,1434 3399374,569 694934
> 528728,1434 3399374,569 694934
> 528268,188 3399074,595 723726
> 526928,3179 3398014,687 825472
> 533027,7265 3392115,198 1392472
> 533027,7265 3392115,198 1392472
> 534247,6082 3390675,322 1530845
> 534247,6082 3390675,322 1530845
>
> As you can see some lat-lon has just 1 ID (just one point shows that
> river) some has 2 or 3 or more how I can classify and impose idl to
> just connect this points together?
> Any help?
> Cheers
1 - get all the unique IDs (see UNIQ())
2 - use WHERE() to get the indices
3 - use Chris's PLOT/OPLOT method.
|
|
|