<div dir="ltr">Hello the Astropy community<div><br></div><div>I have a project to detect cloud coverage from ground-based data (All-Sky camera data).</div><div>I'm trying to train a classifier using SVM or CNN.</div><div><br></div><div>The problem:</div><div>I want to train the machine for parts of the sky. And for this, I want to chop the image data into pieces. These pieces can be polygons(This part is not the problemn) or Alt-Az(This is the problem) areas. And I want to use the Numpy masks (The problem can be solved using a nested loop. But that would be inefficient I think).</div><div><img src="cid:ii_k42gj4pf0" alt="part.png" width="195" height="148" style="margin-right: 0px;"><br></div><div><font size="1">At-Az mask example(What I want to achieve.<i> Image created using gimp</i>)</font></div><div><br></div><div>I can create a full radius mask which I call pizza mask.</div><div><div><img src="cid:ii_k42gljfi1" alt="pizza.png" width="194" height="146" style="margin-right: 0px;"><br></div></div><div><font size="1">Full radius (Pizza) mask example  </font><br></div><div><br></div><div>The plan is to have 3 pizza masks for different radii and apply logical comparison to achieve At-Az mask. (I'm open to better ideas. With this method I'll need to calculate 3 pizza masks and it takes time.)</div><div><br></div><div>Here comes the catch: I need to know what is the linear radius of the given altitude angle.(Sounds like <u>someone</u> didn't attend to trigonometry/spherical astronomy courses)</div><div>The fisheye projection looks like I need to use Sky2Pix_ZenithalEqualArea. But how?  </div><div><br></div><div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font size="4">Mohammad SHAMEONI NIAEI</font><font size="1"><br>Astronomer / Software Specialist</font><br>Astrofizik Araştırma ve Uygulama Merkezi (ATASAM),<br>Yakutiye, ERZURUM/TÜRKİYE</div></div></div></div>