<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Finding X and Y coordinate in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Finding-X-and-Y-coordinate/m-p/641949#M83893</link>
    <description>&lt;P&gt;Starting to understand, maybe. x==23 and y==31 is a corner on a rectangular set of bins. That corner that is completely beyond the circle. The bin below, and the bin to the right, is at least partly within the circle?&lt;/P&gt;
&lt;P&gt;There is some step size for the bins in both x and y. there is some radius for the circle. you want to determine the 23 and 31 value?&lt;/P&gt;
&lt;P&gt;If that's correct, I'll suggest a brute force algorithm that tests bins in a loop, looking for one that satisfies the requirement.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jun 2023 17:55:33 GMT</pubDate>
    <dc:creator>Craige_Hales</dc:creator>
    <dc:date>2023-06-13T17:55:33Z</dc:date>
    <item>
      <title>Finding X and Y coordinate</title>
      <link>https://community.jmp.com/t5/Discussions/Finding-X-and-Y-coordinate/m-p/641855#M83883</link>
      <description>&lt;P&gt;Hello JMP Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to figure out a way to identify the X and Y coordinates of the highlighted rows.&lt;/P&gt;&lt;P&gt;Get the lower x boundary of those bin "P" lying furthest to the left, that have at least SOME of their left edge on the wafer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And get the upper y boundary of those bin "P" lying furthest to the top, that have at least SOME of their top edge on the wafer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this example the X = 23 and Y = 31. I would to get these values using some formula or calculation&lt;/P&gt;&lt;P&gt;I've attached the data table below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jackie__0-1686666111830.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53760iF75CD428D39F6A84/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jackie__0-1686666111830.png" alt="Jackie__0-1686666111830.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jackie__1-1686665220379.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53759iC87CAF385497588D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jackie__1-1686665220379.png" alt="Jackie__1-1686665220379.png" /&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jackie__0-1686665065279.png" style="width: 508px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53758i35D96648A68CB100/image-dimensions/508x297?v=v2" width="508" height="297" role="button" title="Jackie__0-1686665065279.png" alt="Jackie__0-1686665065279.png" /&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;I would really appreciate any suggestions&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jackie&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 14:22:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Finding-X-and-Y-coordinate/m-p/641855#M83883</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2023-06-13T14:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Finding X and Y coordinate</title>
      <link>https://community.jmp.com/t5/Discussions/Finding-X-and-Y-coordinate/m-p/641896#M83885</link>
      <description>&lt;P&gt;Hello Jackie,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What about &amp;lt;&amp;lt; Get Selected Rows? It will return a matrix of selected rows. Potentially you can generate an associated array with row as key and a list of values, and perhaps a list of values { x coordinate, y coordinate, "P" value }.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are the P bins differentiated by anything other than bins? Are they numbered or named? If so, it would be good to include that in the AA above. You can then iterate through them to find the values you need using for loops and perhaps generate additional lists or AAs that would be useful to you.&amp;nbsp; Hope this helps.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 15:14:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Finding-X-and-Y-coordinate/m-p/641896#M83885</guid>
      <dc:creator>StarfruitBob</dc:creator>
      <dc:date>2023-06-13T15:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Finding X and Y coordinate</title>
      <link>https://community.jmp.com/t5/Discussions/Finding-X-and-Y-coordinate/m-p/641917#M83886</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/39919"&gt;@StarfruitBob&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I highlighted row just for the reference. I want to identify the 2nd most&amp;nbsp;l&lt;SPAN&gt;ower x boundary of those bin "P" lying furthest to the left and the 2nd most top&amp;nbsp;y boundary. I don't think what you suggested is what I am looking for&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jackie__0-1686671546039.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53765iE0A43CE469353AF8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jackie__0-1686671546039.png" alt="Jackie__0-1686671546039.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 15:54:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Finding-X-and-Y-coordinate/m-p/641917#M83886</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2023-06-13T15:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Finding X and Y coordinate</title>
      <link>https://community.jmp.com/t5/Discussions/Finding-X-and-Y-coordinate/m-p/641936#M83887</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/17878"&gt;@Jackie_&lt;/a&gt;&amp;nbsp;, in these cases, you can easily identify these "P" bins by their coordinates.&amp;nbsp; In your example, your 2nd most top y boundary has values at, or close to Y = 31, and your 2nd left most boundary has values at, or close to X = 23. Making some type of list, or AA may help you quickly compare these values. Including these values in an AA with the row number an other valuable information that you're looking for could satisfy your request.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 16:00:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Finding-X-and-Y-coordinate/m-p/641936#M83887</guid>
      <dc:creator>StarfruitBob</dc:creator>
      <dc:date>2023-06-13T16:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Finding X and Y coordinate</title>
      <link>https://community.jmp.com/t5/Discussions/Finding-X-and-Y-coordinate/m-p/641941#M83889</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/39919"&gt;@StarfruitBob&lt;/a&gt;&amp;nbsp;Thanks! I'm still trying to figure out. If you can give an example, I would appreciate it&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 16:12:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Finding-X-and-Y-coordinate/m-p/641941#M83889</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2023-06-13T16:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Finding X and Y coordinate</title>
      <link>https://community.jmp.com/t5/Discussions/Finding-X-and-Y-coordinate/m-p/641943#M83891</link>
      <description>&lt;P&gt;Is this a geometry question about whether an item at X,Y lies on the edge of a circle of radius R? Then, if CX,CY is the center,&lt;/P&gt;
&lt;P&gt;radius = sqrt((x-cx)^2 + (y-cy)^2)&lt;/P&gt;
&lt;P&gt;radius &amp;lt; R inside&lt;/P&gt;
&lt;P&gt;radius &amp;gt; R outside&lt;/P&gt;
&lt;P&gt;and you are just left with issues about the size of the item at X,Y and if X,Y is the center or top-left of that item.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 16:26:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Finding-X-and-Y-coordinate/m-p/641943#M83891</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2023-06-13T16:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Finding X and Y coordinate</title>
      <link>https://community.jmp.com/t5/Discussions/Finding-X-and-Y-coordinate/m-p/641944#M83892</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/982"&gt;@Craige_Hales&lt;/a&gt;&amp;nbsp; sort of.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I posted this and&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3552"&gt;@brady_brady&lt;/a&gt;&amp;nbsp;suggested a formula to highlight the reticles in the wafer map&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.jmp.com/t5/Discussions/Name-Selection-in-Column/m-p/624474#M82320" target="_blank"&gt;Solved: Re: Name Selection in Column - Highlight a reticle on wafer - JMP User Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The thing I am trying to figure out is how can I calculate the offset X and Y&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 16:55:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Finding-X-and-Y-coordinate/m-p/641944#M83892</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2023-06-13T16:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Finding X and Y coordinate</title>
      <link>https://community.jmp.com/t5/Discussions/Finding-X-and-Y-coordinate/m-p/641949#M83893</link>
      <description>&lt;P&gt;Starting to understand, maybe. x==23 and y==31 is a corner on a rectangular set of bins. That corner that is completely beyond the circle. The bin below, and the bin to the right, is at least partly within the circle?&lt;/P&gt;
&lt;P&gt;There is some step size for the bins in both x and y. there is some radius for the circle. you want to determine the 23 and 31 value?&lt;/P&gt;
&lt;P&gt;If that's correct, I'll suggest a brute force algorithm that tests bins in a loop, looking for one that satisfies the requirement.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 17:55:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Finding-X-and-Y-coordinate/m-p/641949#M83893</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2023-06-13T17:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Finding X and Y coordinate</title>
      <link>https://community.jmp.com/t5/Discussions/Finding-X-and-Y-coordinate/m-p/641950#M83894</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/982"&gt;@Craige_Hales&lt;/a&gt;&amp;nbsp;Yes, I want to determine the 23 and 31 value. Can you share an example code? Fairley new to this&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 18:03:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Finding-X-and-Y-coordinate/m-p/641950#M83894</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2023-06-13T18:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Finding X and Y coordinate</title>
      <link>https://community.jmp.com/t5/Discussions/Finding-X-and-Y-coordinate/m-p/641971#M83896</link>
      <description>&lt;P&gt;brute force, just test every bin. You'll want to adjust something, but this is the idea.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Window( "test",
	gb = Graph Box(
		Frame Size( 800, 800 ),
		radius = 43;
		xstep = 5;// bin stride across
		xsize = 3;// bin width
		ystep = 4;// bin stride down
		ysize = 2;// bin height
		xmin = 0;
		xmax = 100;
		xcenter = Mean( xmin, xmax );
		ymin = 0;
		ymax = 100;
		ycenter = Mean( ymin, ymax );
		// the bins are identified by their upper left corner
		isOutside = Function( {x, y}, // is this point out of the circle?
			Sqrt( (x - xcenter) ^ 2 + (y - ycenter) ^ 2 ) &amp;gt; radius
		);
		isAllOutside = Function( {x, y}, // are all 4 points of this bin out of the circle?
			isOutside( x, y ) &amp;amp; isOutside( x + xsize, y ) &amp;amp; isOutside( x, y + ysize ) &amp;amp; isOutside( x + xsize, y + ysize )
		);
		Circle( {xcenter, ycenter}, radius );
		For( x = xcenter - xsize / 2 - xstep * Ceiling( radius / xstep ), x &amp;lt;= xcenter + xsize / 2 + xstep * Ceiling( radius / xstep ), x += xstep,
			For( y = ycenter - ysize / 2 - ystep * Ceiling( radius / ystep ), y &amp;lt;= ycenter + ysize / 2 + ystep * Ceiling( radius / ystep ),
				y += ystep, 
				// is this bin outside, and the right,below siblings not outside?
				If( isAllOutside( x, y ) &amp;amp; !isAllOutside( x + xstep, y ) &amp;amp; !isAllOutside( x, y + ystep ),
					Rect( x, y, x + xsize, y + ysize, fill = 1 ),
					Rect( x, y, x + xsize, y + ysize, fill = 0 )
				)
			)
		);

	)
);
gb &amp;lt;&amp;lt; setyaxis( {Min( 100 ), Max( 0 )} );&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The for-loops look complicated just to center the bins on the circle. I don't know what the real rule is.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="I'm a bit unclear on the rule that will make exactly one selection." style="width: 875px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53773iA411DC22B3B44CA9/image-size/large?v=v2&amp;amp;px=999" role="button" title="bins.png" alt="I'm a bit unclear on the rule that will make exactly one selection." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;I'm a bit unclear on the rule that will make exactly one selection.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 18:59:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Finding-X-and-Y-coordinate/m-p/641971#M83896</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2023-06-13T18:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Finding X and Y coordinate</title>
      <link>https://community.jmp.com/t5/Discussions/Finding-X-and-Y-coordinate/m-p/641972#M83897</link>
      <description>&lt;P&gt;Thanks Craige!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 19:18:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Finding-X-and-Y-coordinate/m-p/641972#M83897</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2023-06-13T19:18:47Z</dc:date>
    </item>
  </channel>
</rss>

