- Timestamp:
- 06/27/06 17:47:06 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Documentation/idldoc_html_output/Interpolation/map_npoints.html
r111 r118 752 752 </h4> 753 753 754 <div class="comments"> np0 elements vector. longitudes and latitudes of np0 points P0</div>754 <div class="comments"></div> 755 755 756 756 <h4 id="_Map_npoints_param_lat0">lat0 757 758 759 760 757 <span class="attr">in</span> 758 759 760 <span class="attr">required</span> 761 761 762 762 … … 765 765 </h4> 766 766 767 <div class="comments"></div> 767 <div class="comments"> 768 np0 elements vector. longitudes and latitudes of np0 points P0 769 </div> 768 770 769 771 <h4 id="_Map_npoints_param_lon1">lon1 … … 778 780 </h4> 779 781 780 <div class="comments"> np1 elements vector. longitude and latitude of np1 points P1 781 </div> 782 <div class="comments"></div> 782 783 783 784 <h4 id="_Map_npoints_param_lat1">lat1 784 785 786 787 785 <span class="attr">in</span> 786 787 788 <span class="attr">required</span> 788 789 789 790 … … 792 793 </h4> 793 794 794 <div class="comments"></div> 795 <div class="comments"> 796 np1 elements vector. longitude and latitude of np1 points P1 797 </div> 795 798 796 799 … … 826 829 </h4> 827 830 828 <div class="comments"> =if set, inputs and angular outputs are in radians, otherwise831 <div class="comments"> if set, inputs and angular outputs are in radians, otherwise 829 832 degrees.</div> 830 833 … … 842 845 <div class="comments"> If given, return the distance between the two points 843 846 calculated using the given radius. 844 Default value is the earth radius : 6378206.4d0</div> 847 Default value is the earth radius : 6378206.4d0 848 </div> 845 849 846 850 <h4 id="_Map_npoints_keyword_MIDDLE">MIDDLE … … 868 872 </h4> 869 873 870 <div class="comments"> :If given,then Map_nPoints returns the distances between874 <div class="comments"> If given,then Map_nPoints returns the distances between 871 875 number n of P0 points and number n of P1 points (in that case, 872 876 np0 and np1 must be equal). … … 876 880 877 881 <h3>Examples</h3><div class="value"> 878 Result = Map_nPoints(lon0, lat0, lon1, lat1)879 880 881 IDL> print, $882 map_npoints([-105.15,1],[40.02,1],[-0.07,100,50],[51.30,20,0])882 IDL> Result = Map_nPoints(lon0, lat0, lon1, lat1) 883 884 885 IDL> print, $ 886 map_npoints([-105.15,1],[40.02,1],[-0.07,100,50],[51.30,20,0]) 883 887 7551369.3 5600334.8 884 888 12864354. 10921254. 885 889 14919237. 5455558.8 886 890 887 IDL> lon0 = [-10, 20, 100]888 IDL> lat0 = [0, -10, 45]889 IDL> lon1 = [10, 60, 280]890 IDL> lat1 = [0, 10, 45]891 IDL> dist = map_npoints(lon0, lat0, lon1, lat1, azimuth = azi)892 IDL> help, dist, azi893 DIST DOUBLE = Array[3, 3]894 AZI DOUBLE = Array[3, 3]895 IDL> print, dist[4*lindgen(3)], azi[4*lindgen(3)]891 IDL> lon0 = [-10, 20, 100] 892 IDL> lat0 = [0, -10, 45] 893 IDL> lon1 = [10, 60, 280] 894 IDL> lat1 = [0, 10, 45] 895 IDL> dist = map_npoints(lon0, lat0, lon1, lat1, azimuth = azi) 896 IDL> help, dist, azi 897 DIST DOUBLE = Array[3, 3] 898 AZI DOUBLE = Array[3, 3] 899 IDL> print, dist[4*lindgen(3)], azi[4*lindgen(3)] 896 900 2226414.0 4957944.5 10018863. 897 901 90.000000 64.494450 4.9615627e-15 898 IDL> dist = map_npoints(lon0, lat0, lon1, lat1, azimuth = azi, /two_by_two)899 IDL> help, dist, azi900 DIST DOUBLE = Array[3]901 AZI DOUBLE = Array[3]902 IDL> print, dist, azi902 IDL> dist = map_npoints(lon0, lat0, lon1, lat1, azimuth = azi, /two_by_two) 903 IDL> help, dist, azi 904 DIST DOUBLE = Array[3] 905 AZI DOUBLE = Array[3] 906 IDL> print, dist, azi 903 907 2226414.0 4957944.5 10018863. 904 908 90.000000 64.494450 4.9615627e-15 905 IDL> print, map_2points(lon0[0], lat0[0], lon1[0], lat1[0])909 IDL> print, map_2points(lon0[0], lat0[0], lon1[0], lat1[0]) 906 910 20.000000 90.000000 907 IDL> print, map_npoints(lon0[0], lat0[0], lon1[0], lat1[0], azi=azi)/6378206.4d0 / !dtor, azi911 IDL> print, map_npoints(lon0[0], lat0[0], lon1[0], lat1[0], azi=azi)/6378206.4d0 / !dtor, azi 908 912 20.000000 909 913 90.000000 910 914 911 IDL> lon0 = [-10, 20, 100]912 IDL> lat0 = [0, -10, 45]913 IDL> lon1 = [10, 60, 280]914 IDL> lat1 = [0, 10, 45]915 IDL> mid = map_npoints(lon0, lat0, lon1, lat1, /middle, /two_by_two)916 IDL> print, reform(mid[0,*]), reform(mid[1,*])915 IDL> lon0 = [-10, 20, 100] 916 IDL> lat0 = [0, -10, 45] 917 IDL> lon1 = [10, 60, 280] 918 IDL> lat1 = [0, 10, 45] 919 IDL> mid = map_npoints(lon0, lat0, lon1, lat1, /middle, /two_by_two) 920 IDL> print, reform(mid[0,*]), reform(mid[1,*]) 917 921 0.0000000 40.000000 190.00000 918 922 0.0000000 -1.5902773e-15 90.000000 919 IDL> print, (map_2points(lon0[0], lat0[0], lon1[0], lat1[0], npath = 3))[*, 1]923 IDL> print, (map_2points(lon0[0], lat0[0], lon1[0], lat1[0], npath = 3))[*, 1] 920 924 0.0000000 0.0000000 921 IDL> print, (map_2points(lon0[1], lat0[1], lon1[1], lat1[1], npath = 3))[*, 1]925 IDL> print, (map_2points(lon0[1], lat0[1], lon1[1], lat1[1], npath = 3))[*, 1] 922 926 40.000000 -1.5902773e-15 923 IDL> print, (map_2points(lon0[2], lat0[2], lon1[2], lat1[2], npath = 3))[*, 1]927 IDL> print, (map_2points(lon0[2], lat0[2], lon1[2], lat1[2], npath = 3))[*, 1] 924 928 190.00000 90.000000 925 929 </div> 926 930 <h3>Version history</h3> 927 931 928 932 <h4>Version</h4><div class="value"> $Id$ 933 </div> 929 934 <h4>History</h4><div class="value"> 930 935 Based on the IDL function map_2points.pro,v 1.6 2001/01/15 931 936 Sebastien Masson (smasson@lodyc.jussieu.fr) 932 October 2003</div> 937 October 2003 938 </div> 933 939 934 940
Note: See TracChangeset
for help on using the changeset viewer.