- Timestamp:
- 07/12/06 11:52:09 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Documentation/idldoc_html_output/Interpolation/inrecgrid.html
r121 r138 328 328 table.variables td.image { width: 64px; } 329 329 330 div#file_comments { 330 div#file_comments { white-space: pre; 331 331 margin: 2em; 332 332 font-size: 80%; … … 696 696 </div> 697 697 698 <div id="file_comments"> given - a list of points, (x,y) position 699 - the x and y limits of a rectangular grid 700 find in which cell is located each given point. 698 <div id="file_comments"> 699 given - a list of points, (x,y) position 700 - the x and y limits of a rectangular grid 701 find in which cell is located each given point. 701 702 </div> 702 703 … … 718 719 719 720 <p class="header"> 720 <span class="result">result = </span>inrecgrid(<span class="result"><a href="#_inrecgrid_param_x1d">x1d</a>, <a href="#_inrecgrid_param_y1d">y1d</a>, <a href="#_inrecgrid_param_left">left</a>, <a href="#_inrecgrid_param_bottom">bottom</a></span>, <a href="#_inrecgrid_keyword_ output2d">output2d</a>=<span class="result">output2d</span>, <a href="#_inrecgrid_keyword_checkout">checkout</a>=<span class="result">checkout</span>)</p>721 <span class="result">result = </span>inrecgrid(<span class="result"><a href="#_inrecgrid_param_x1d">x1d</a>, <a href="#_inrecgrid_param_y1d">y1d</a>, <a href="#_inrecgrid_param_left">left</a>, <a href="#_inrecgrid_param_bottom">bottom</a></span>, <a href="#_inrecgrid_keyword_OUTPUT2D">OUTPUT2D</a>=<span class="result">OUTPUT2D</span>, <a href="#_inrecgrid_keyword_CHECKOUT">CHECKOUT</a>=<span class="result">CHECKOUT</span>)</p> 721 722 722 723 <div class="comments"> 723 724 </div> 724 725 725 <h3>Return value</h3><div class=" value"> the index on the cell accoring to the 2d array defined by726 left and bottom.726 <h3>Return value</h3><div class="preformat"> 727 the index on the cell according to the 2d array defined by left and bottom. 727 728 </div> 728 729 … … 742 743 </h4> 743 744 744 <div class="comments"> a 1d array, the x position on the points</div> 745 <div class="comments"> 746 a 1d array, the x position on the points 747 </div> 745 748 746 749 <h4 id="_inrecgrid_param_y1d">y1d … … 755 758 </h4> 756 759 757 <div class="comments"> a 1d array, the y position on the points</div> 760 <div class="comments"> 761 a 1d array, the y position on the points 762 </div> 758 763 759 764 <h4 id="_inrecgrid_param_left">left … … 768 773 </h4> 769 774 770 <div class="comments"> a 1d, monotonically increasing array, 771 the position of the "left" border of each cell.</div> 775 <div class="comments"> 776 a 1d, monotonically increasing array, 777 the position of the "left" border of each cell. 778 </div> 772 779 773 780 <h4 id="_inrecgrid_param_bottom">bottom … … 782 789 </h4> 783 790 784 <div class="comments"> a 1d, monotonically increasing array, 791 <div class="comments"> 792 a 1d, monotonically increasing array, 785 793 the position of the "bottom" border of each cell. 786 794 </div> … … 793 801 <h3>Keywords</h3> 794 802 795 <h4 id="_inrecgrid_keyword_ output2d">output2d 803 <h4 id="_inrecgrid_keyword_OUTPUT2D">OUTPUT2D 796 804 797 805 … … 804 812 </h4> 805 813 806 <div class="comments"> to get the output as a 2d array (2,n_elements(x1d)),807 with res[0,*] the x index accoring to the 1d array defined by808 left and res[1,*] the y index accoring to the 1d array defined by809 814 <div class="comments"> 815 to get the output as a 2d array (2,n_elements(x1d)), 816 with res[0,*] the x index according to the 1d array defined by 817 left and res[1,*] the y index according to the 1d array defined by bottom. 810 818 </div> 811 819 812 <h4 id="_inrecgrid_keyword_ checkout">checkout 820 <h4 id="_inrecgrid_keyword_CHECKOUT">CHECKOUT 813 821 814 822 … … 821 829 </h4> 822 830 823 <div class="comments">=[rbgrid,ubgrid] specify the right and upper bondaries of 824 the grid and check if some points are out. 831 <div class="comments"> 832 = [rbgrid,ubgrid] specify the right and upper boundaries of 833 the grid and check if some points are out. 825 834 </div> 826 835 827 836 828 837 829 <h3>Examples</h3><div class=" value">830 831 832 833 834 838 <h3>Examples</h3><div class="preformat"> 839 840 IDL> a=indgen(5) 841 IDL> b=indgen(7) 842 IDL> r=inrecgrid([0.25,3.25,2],[4.25,2.8,1.4],a,b) 843 IDL> print, r 835 844 20 13 7 836 837 845 IDL> r=inrecgrid([0.25,3.25,2],[4.25,2.8,1.4],a,a+1,b,b+1,/output2d) 846 IDL> print, r 838 847 0.00000 4.00000 839 848 3.00000 2.00000 840 849 2.00000 1.00000 841 850 </div> 842 851 <h3>Version history</h3> 843 852 844 <h4>Version</h4><div class=" value"> $Id: inrecgrid.pro 118 2006-06-27 15:47:06Z pinsard $845 </div> 846 <h4>History</h4><div class=" value">847 848 849 853 <h4>Version</h4><div class="preformat"> $Id: inrecgrid.pro 136 2006-07-10 15:20:19Z pinsard $ 854 </div> 855 <h4>History</h4><div class="preformat"> 856 S. Masson (smasson@lodyc.jussieu.fr) 857 July 3rd, 2002 858 October 3rd, 2003: use value_locate 850 859 </div> 851 860
Note: See TracChangeset
for help on using the changeset viewer.