<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>솔라리스 태양의 활동과 오로라 by Kyungmin Bae</title>
      <link>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko</link>
      <description></description>
      <language>en-us</language>
      <pubDate>2024-07-13 04:59:13 UTC</pubDate>
      <lastBuildDate>2024-09-01 10:01:31 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>흑점 수 분류 관련 정보</title>
         <author>baefromearth</author>
         <link>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3052385313</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://m.blog.naver.com/jeong_hyunjin/222453714236" />
         <pubDate>2024-07-13 05:07:12 UTC</pubDate>
         <guid>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3052385313</guid>
      </item>
      <item>
         <title></title>
         <author>ojingojing55</author>
         <link>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3052386306</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2377076962/48380ce617fa7931fb3cc3d4f294afdf/image.png" />
         <pubDate>2024-07-13 05:10:54 UTC</pubDate>
         <guid>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3052386306</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3052386379</link>
         <description><![CDATA[<p>오로라는 극관글로오로라, 오로라대형, 중위도 오로라로 크게 세 가지로 나뉜다. </p><p>극관글로오로라와 오로라대형 오로라는 잘 관측되지 않고 보통 오로라라고 하면 다시 커튼형오로라, 패치상 맥동성오로라, 희미한 부정형 오로라로 나뉜다.</p><p>또한 오로라에 따라 나타나는 높이가 다르다.</p><p><br></p>]]></description>
         <enclosure url="https://blog.naver.com/daeboo108/70082060186" />
         <pubDate>2024-07-13 05:11:16 UTC</pubDate>
         <guid>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3052386379</guid>
      </item>
      <item>
         <title>오로라에 대해서</title>
         <author>ojingojing55</author>
         <link>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3052386613</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://brunch.co.kr/@dailynews/1931" />
         <pubDate>2024-07-13 05:12:30 UTC</pubDate>
         <guid>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3052386613</guid>
      </item>
      <item>
         <title>과제연구계획서 양식</title>
         <author>baefromearth</author>
         <link>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3052387158</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1417575148/0a854729fa95ca0e1a58acb07e5a1a13/2024_______________7__16______.hwp" />
         <pubDate>2024-07-13 05:14:51 UTC</pubDate>
         <guid>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3052387158</guid>
      </item>
      <item>
         <title>플라즈마 입자</title>
         <author></author>
         <link>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3052387562</link>
         <description><![CDATA[<p>플라즈마 입자는 태양풍이 발생할때 방출된다. 이때 태양풍은 태양의 코로나에서 발생한다. 또한, 코로나 질량 방출 이라는 현상에 의해 발생되기도 한다. 이는 태양의 자기장에 특이점이 생겨 발생한다. </p>]]></description>
         <enclosure url="" />
         <pubDate>2024-07-13 05:17:18 UTC</pubDate>
         <guid>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3052387562</guid>
      </item>
      <item>
         <title>오로라 색</title>
         <author>ojingojing55</author>
         <link>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3052387631</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://blog.kwonochul.com/502" />
         <pubDate>2024-07-13 05:17:39 UTC</pubDate>
         <guid>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3052387631</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3052388033</link>
         <description><![CDATA[<p>태양 흑점은 매킨토시 분류법으로 형태를 나눠볼 수 있다. Zpc를 사용하는데, Z'는 기존에 흑점군들을 분류하던 방법인 취리히(Zurich) 등급을 개선한 분류 방법을 나타내는 기준으로, 영문자 A부터 H까지 흑점과 반암부의 개수에 따라 분류한다. 'p'는 흑점군 안에 있는 흑점들 중에서 가장 큰 흑점의 반암부(penumbra)의 형태를 나타내는 기준으로, 영문자 x, r, s, a, h, k 값들로 반암부의 크기와 대칭성에 따라 분류한다. 'c'는 x, o, i, c 값들로 흑점군 안에 흑점들이 얼마나 밀집되어 있는지(compactness)를 나타내는 기준이다. '매킨토시 흑점군 분류 값 '은 각각의 기준으로 분류한 세 개의 값을 나란히 표기한 값이다.</p>]]></description>
         <enclosure url="" />
         <pubDate>2024-07-13 05:19:56 UTC</pubDate>
         <guid>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3052388033</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3052388226</link>
         <description><![CDATA[<p>wolf 흑점 수: R=k(10g+s)</p><p>R= wolf 흑점 수</p><p>k= 관측 조건 및 장비를 설명하는 스케일링 계수</p><p>g= 흑점 그룹의 수</p><p>s=  개별 흑점의 총 수 </p>]]></description>
         <enclosure url="" />
         <pubDate>2024-07-13 05:21:01 UTC</pubDate>
         <guid>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3052388226</guid>
      </item>
      <item>
         <title>과제연구계획서</title>
         <author></author>
         <link>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3052395854</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2582296962/e897d66a6fadacd857b52200c7902519/______________hwp.hwp" />
         <pubDate>2024-07-13 05:55:30 UTC</pubDate>
         <guid>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3052395854</guid>
      </item>
      <item>
         <title>7/27</title>
         <author></author>
         <link>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3062102841</link>
         <description><![CDATA[<p>강민: 오로라 사진 탐색 및 오로라 면적 분석(범위: 최근 30년)</p><p>준하, 준혁: 태양 흑점 사진 및 오로라 사진이 있는 사이트 탐색</p><p>성민: 매킨토시 분류법과 wolf 흑점 수 공식 사용 가능하게 코드 개량</p>]]></description>
         <enclosure url="" />
         <pubDate>2024-07-27 00:46:28 UTC</pubDate>
         <guid>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3062102841</guid>
      </item>
      <item>
         <title>물론입니다! 다음은 각 사이트에 직접 접근할 수 있는 링크입니다:</title>
         <author></author>
         <link>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3062106910</link>
         <description><![CDATA[<p>NASA Earth Data</p><p><br></p><p>NASA Worldview</p><p>Earthdata Search</p><p>Google Earth Engine</p><p><br></p><p>Google Earth Engine</p><p>European Space Agency (ESA) Copernicus Open Access Hub</p><p><br></p><p>Copernicus Open Access Hub</p><p>NOAA's National Centers for Environmental Information (NCEI)</p><p><br></p><p>NOAA NCEI</p><p>Aurora Service</p><p><br></p><p>Aurora Service</p><p>USGS Earth Explorer</p><p><br></p><p>USGS Earth Explorer</p><p>NOAA's Space Weather Prediction Center (SWPC)</p><p><br></p><p>NOAA SWPC</p><p>이 링크들을 통해 각 사이트에서 과거의 위성 이미지를 검색하거나 오로라 관련 자료를 찾아보실 수 있습니다.</p>]]></description>
         <enclosure url="" />
         <pubDate>2024-07-27 01:04:24 UTC</pubDate>
         <guid>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3062106910</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3062111623</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://sos.noaa.gov/catalog/datasets/aurora/" />
         <pubDate>2024-07-27 01:20:24 UTC</pubDate>
         <guid>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3062111623</guid>
      </item>
      <item>
         <title>관측자료 찾아볼 수 있는 곳.</title>
         <author>baefromearth</author>
         <link>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3062117679</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://spaceweather.kasa.go.kr/openpotal/datasetInfo/dataSetList.do" />
         <pubDate>2024-07-27 01:39:36 UTC</pubDate>
         <guid>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3062117679</guid>
      </item>
      <item>
         <title>test</title>
         <author></author>
         <link>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3062145423</link>
         <description><![CDATA[<p>from PIL import Image</p><p>import matplotlib.pyplot as plt</p><p>import numpy as np</p><p>def pixelate_image(input_path, pixel_size):</p><p>    image = <a rel="noopener noreferrer nofollow" href="http://Image.open">Image.open</a>(input_path)</p><p>    width, height = image.size</p><p>    small = image.resize(</p><p>        (width // pixel_size, height // pixel_size),</p><p>        resample=Image.NEAREST</p><p>    )</p><p>    result = small.resize(</p><p>        (width, height),</p><p>        resample=Image.NEAREST</p><p>    )</p><p>    </p><p>    return result</p><p>input_image_path = 'thumbnail_big.jpg'</p><p>pixel_size = 1</p><p>pixelated_image = pixelate_image(input_image_path, pixel_size)</p><p>pixelated_image_array = np.array(pixelated_image)</p><p>plt.imshow(pixelated_image_array)</p><p>plt.axis('off')</p><p><a rel="noopener noreferrer nofollow" href="http://plt.show">plt.show</a>()</p><p>red=0</p><p>green=0</p><p>for w in pixelated_image_array:</p><p>    for p in w:</p><p>        if p[0]&gt;=p[1]+p[2]:</p><p>            red+=1</p><p>        elif p[1]&gt;p[0]+p[2]:</p><p>            green+=1</p><p>print(red)</p><p>print(green)</p><p>print(red+green)</p><p>print((red+green)/len(pixelated_image_array)/len(pixelated_image_array[0]))</p><p>pixel=pixelate_image('thumbnail_big (2).jpg', 1)</p><p>array=np.array(pixel)</p><p>plt.imshow(array)</p><p>plt.axis('off')</p><p><a rel="noopener noreferrer nofollow" href="http://plt.show">plt.show</a>()</p><p>for q in range(0, 25):</p><p>    ma=0</p><p>    for w in array:</p><p>        for p in w:</p><p>            if p[0]&lt;q*10 and p[1]&lt;q*10 and p[2]&lt;q*10:</p><p>                ma+=1</p><p>    print(len(pixelated_image_array)*len(pixelated_image_array) - ma)</p><p>    print(len(array)*len(array[0]) - ma)</p>]]></description>
         <enclosure url="" />
         <pubDate>2024-07-27 03:07:44 UTC</pubDate>
         <guid>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3062145423</guid>
      </item>
      <item>
         <title>연구보고서양식</title>
         <author>baefromearth</author>
         <link>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3062179703</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1417575148/bff841431b8c68990b1de9d4279d4c2e/2024____________________________.hwp" />
         <pubDate>2024-07-27 05:27:40 UTC</pubDate>
         <guid>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3062179703</guid>
      </item>
      <item>
         <title>Praise the Sun!</title>
         <author></author>
         <link>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3078187714</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2650772415/a3066d8c82204febf7c048059eb2129a/____.hwp" />
         <pubDate>2024-08-17 00:08:30 UTC</pubDate>
         <guid>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3078187714</guid>
      </item>
      <item>
         <title>KP지수</title>
         <author></author>
         <link>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3078188054</link>
         <description><![CDATA[<p>KP지수는 "Kp index"라고도 하며, 지구의 자기권 상태를 측정하는 지표입니다. 이 지수는 주로 지구의 자기권에서 발생하는 자기폭풍의 강도를 나타내기 위해 사용됩니다. KP지수는 0에서 9까지의 숫자 범위로 표시되며, 숫자가 클수록 자기폭풍의 강도가 강하다는 것을 의미합니다.</p><p>KP지수는 3시간 간격으로 측정되며, 이를 통해 지구 자기권의 전반적인 활동 수준을 평가할 수 있습니다. KP지수는 다음과 같은 범위로 해석됩니다:</p><ul><li><p><strong>0~1</strong>: 매우 안정적</p></li><li><p><strong>2~3</strong>: 약간의 자기폭풍 활동</p></li><li><p><strong>4~5</strong>: 중간 정도의 자기폭풍 활동</p></li><li><p><strong>6~7</strong>: 강한 자기폭풍 활동</p></li><li><p><strong>8~9</strong>: 매우 강한 자기폭풍 활동</p></li></ul><p>KP지수는 천문학적, 우주 날씨 연구 및 통신 시스템, 전력망 등에 영향을 미칠 수 있는 자기폭풍의 영향을 예측하고 대응하는 데 중요한 역할을 합니다.</p>]]></description>
         <enclosure url="" />
         <pubDate>2024-08-17 00:09:09 UTC</pubDate>
         <guid>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3078188054</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3078190476</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://spaceweather.kasa.go.kr/obsenv3.do" />
         <pubDate>2024-08-17 00:16:31 UTC</pubDate>
         <guid>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3078190476</guid>
      </item>
      <item>
         <title>태양 사진 사이트</title>
         <author></author>
         <link>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3078207961</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://sdo.gsfc.nasa.gov/assets/img/browse/" />
         <pubDate>2024-08-17 01:12:39 UTC</pubDate>
         <guid>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3078207961</guid>
      </item>
      <item>
         <title>Kp-index</title>
         <author></author>
         <link>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3078244556</link>
         <description><![CDATA[<p><a rel="noopener noreferrer nofollow" href="https://www-app3.gfz-potsdam.de/kp_index/Kp_ap_Ap_SN_F107_since_1932.txt">https://www-app3.gfz-potsdam.de/kp_index/Kp_ap_Ap_SN_F107_since_1932.txt</a></p>]]></description>
         <enclosure url="https://www-app3.gfz-potsdam.de/kp_index/Kp_ap_Ap_SN_F107_since_1932.txt" />
         <pubDate>2024-08-17 02:43:11 UTC</pubDate>
         <guid>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3078244556</guid>
      </item>
      <item>
         <title>Kp지수 - 현재의 지자기 수평성분과 태양활동이 조용한 날의 지자기 수평성분 차이를 3시간 간격으로 측정하여 0부터 9까지 등급화 시킨 것을 K지수라 하며, 지구전역에 분포(미국 등 10여개)하고 있는 관측소에서 각각 계산된 K값의 평균을 &#39;Kp지수&#39; 라고 한다.</title>
         <author></author>
         <link>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3078299714</link>
         <description><![CDATA[]]></description>
         <enclosure url="" />
         <pubDate>2024-08-17 04:57:19 UTC</pubDate>
         <guid>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3078299714</guid>
      </item>
      <item>
         <title>웹 스크래핑 코드(범위 지정은 datetime)부분을 바꿔야 됨</title>
         <author></author>
         <link>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3078307393</link>
         <description><![CDATA[<p>import requests</p><p>import os</p><p>from datetime import datetime, timedelta</p><p>def download_image(url, filename):</p><p>    response = requests.get(url)</p><p>    if response.status_code == 200:</p><p>        with open(filename, 'wb') as f:</p><p>            f.write(response.content)</p><p>        print(f"Downloaded: {filename}")</p><p>    else:</p><p>        print(f"Failed to download: {url}")</p><p>def main():</p><p>  </p><p>    start_date = datetime(2018, 7, 15)</p><p>    end_date = datetime(2023, 6, 3)</p><p>    delta = timedelta(days=1)</p><p>    current_date = start_date</p><p>    output_dir = os.path.expanduser('~/Downloads/images')  </p><p>    os.makedirs(output_dir, exist_ok=True)</p><p>    while current_date &lt;= end_date:</p><p>        date_str = current_date.strftime('%Y/%m/%d')</p><p>        base_url = f'<a rel="noopener noreferrer nofollow" href="https://sdo.gsfc.nasa.gov/assets/img/browse/%7Bdate_str%7D/">https://sdo.gsfc.nasa.gov/assets/img/browse/{date_str}/</a>'</p><p>        </p><p>        image_filename = f"{current_date.strftime('%Y%m%d')}_000000_1024_HMIIF.jpg"</p><p>        image_url = base_url + image_filename</p><p>        </p><p>        print(f"Downloading from URL: {image_url}")  </p><p>        </p><p>        filename = os.path.join(output_dir, f"{current_date.strftime('%Y%m%d')}_HMIIF.jpg")</p><p>        download_image(image_url, filename)</p><p>        </p><p>        current_date += delta</p><p>if <strong>name</strong> == "__main__":</p><p>    main()</p><p><br/></p>]]></description>
         <enclosure url="" />
         <pubDate>2024-08-17 05:27:24 UTC</pubDate>
         <guid>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3078307393</guid>
      </item>
      <item>
         <title>실시간 회의 주소</title>
         <author>baefromearth</author>
         <link>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3086489212</link>
         <description><![CDATA[]]></description>
         <enclosure url="" />
         <pubDate>2024-08-24 00:54:41 UTC</pubDate>
         <guid>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3086489212</guid>
      </item>
      <item>
         <title>과제연구보고서 공유문서</title>
         <author></author>
         <link>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3086491740</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://docs.google.com/document/d/1Fajxw-1tsJXDeR2W08xYg1MKQ8jU3F2poDfDESP9-QE/edit?usp=sharing" />
         <pubDate>2024-08-24 01:01:50 UTC</pubDate>
         <guid>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3086491740</guid>
      </item>
      <item>
         <title>형식 참고 논문</title>
         <author>baefromearth</author>
         <link>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3086526655</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1417575148/b3ae1373797b89648e84f6c59cba45cd/Long_Term_Variability_of_the_Sun_and_Climate_Chang.pdf" />
         <pubDate>2024-08-24 02:08:23 UTC</pubDate>
         <guid>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3086526655</guid>
      </item>
      <item>
         <title>두번째 분석 방법(조금 개선됨)</title>
         <author></author>
         <link>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3096919466</link>
         <description><![CDATA[<p>from PIL import Image</p><p>import numpy as np</p><p>import matplotlib.pyplot as plt</p><p>def check_pixel_color(binary_image_np, i, j):</p><p>    """</p><p>    주어진 좌표 (i, j)의 픽셀 색상을 확인하는 함수.</p><p>    """</p><p>    pixel_color = binary_image_np[i, j]</p><p>    print(f"Pixel at ({i}, {j}): {pixel_color}")</p><p>    return pixel_color</p><p>def get_reference_colors(reference_image_paths):</p><p>    """</p><p>    주어진 여러 참조 이미지의 R, G, B 색상 조합을 집합으로 반환합니다.</p><p>    """</p><p>    reference_colors = set()</p><p>    </p><p>    for path in reference_image_paths:</p><p>        reference_image = <a rel="noopener noreferrer nofollow" href="http://Image.open">Image.open</a>(path)</p><p>        reference_image_np = np.array(reference_image)</p><p>        </p><p>        for i in range(reference_image_np.shape[0]):</p><p>            for j in range(reference_image_np.shape[1]):</p><p>                reference_colors.add(tuple(reference_image_np[i, j][:3]))</p><p>    </p><p>    return reference_colors</p><p>def analyze_sun_image(reference_colors, sun_image_path):</p><p>    """</p><p>    참조 색상 집합을 사용하여 태양 이미지에서 색상 비교 및 흑점 카운트.</p><p>    """</p><p>    sun_image = <a rel="noopener noreferrer nofollow" href="http://Image.open">Image.open</a>(sun_image_path)</p><p>    sun_image_np = np.array(sun_image)</p><p>    # 태양 이미지 크기만큼의 빈 이미지 생성</p><p>    binary_image_np = np.zeros_like(sun_image_np)</p><p>    # 흑점 픽셀 수 카운트 초기화</p><p>    sunspot_pixels = 0</p><p>    # 태양 이미지의 각 픽셀을 순회하면서 참조 색상과 비교합니다.</p><p>    for i in range(sun_image_np.shape[0]):</p><p>        signal = False</p><p>        for j in range(sun_image_np.shape[1]):</p><p>            pixel_color = tuple(sun_image_np[i, j][:3])</p><p>            if pixel_color in reference_colors:</p><p>                binary_image_np[i, j] = [255, 255, 255]  # 흰색</p><p>                signal = True</p><p>            elif signal:</p><p>                binary_image_np[i, j] = [0, 0, 0]  # 검은색</p><p>                sunspot_pixels += 1</p><p>            else:</p><p>                binary_image_np[i, j] = [150, 150, 150]  # 회색</p><p>    # 오른쪽에서 왼쪽으로 스캔하며 흑점 픽셀 처리</p><p>    for i in range(sun_image_np.shape[0]):</p><p>        for j in range(sun_image_np.shape[1]-1, -1, -1):</p><p>            pixel_color = binary_image_np[i, j]</p><p>            if np.array_equal(pixel_color, [0, 0, 0]):  # 흑점</p><p>                sunspot_pixels -= 1</p><p>                binary_image_np[i, j] = [150, 150, 150]  # 회색으로 변경</p><p>            else:</p><p>                break</p><p>    l=0</p><p>    u=0</p><p>    q=0</p><p>    for i in range(sun_image_np.shape[0]):</p><p>        for j in range(sun_image_np.shape[1]):</p><p>            pixel_color = binary_image_np[i, j]</p><p>            if np.array_equal(pixel_color, [0, 0, 0]):</p><p>                l+=1</p><p>                sig=1</p><p>                for k in range(i-1, i+2):</p><p>                    if not sig:</p><p>                        break</p><p>                    for p in range(j-1, j+2):</p><p>                        if k==i and p==j:</p><p>                            continue</p><p>                        pixel= binary_image_np[k, p]</p><p>                        if np.array_equal(pixel, [0, 0, 0]):</p><p>                            sig=0</p><p>                            u+=1</p><p>                            break</p><p>                if sig:</p><p>                    q+=1</p><p>                    binary_image_np[i, j]=[255, 255, 255]</p><p>                    sunspot_pixels -=1</p><p>                        </p><p>    # 변환된 이미지 출력</p><p>    binary_image_pil = Image.fromarray(binary_image_np)</p><p>    plt.imshow(binary_image_pil)</p><p>    plt.axis('off')</p><p>    <a rel="noopener noreferrer nofollow" href="http://plt.show">plt.show</a>()</p><p>    print(f'흑점 픽셀 수: {sunspot_pixels}')</p><p>    </p><p># 여러 참조 이미지 경로를 지정합니다</p><p>reference_image_paths = [</p><p>    'new.jpg',</p><p>    'g.jpg',</p><p>    'n.jpg',</p><p>    'new.png',</p><p>    'g.png',</p><p>    'n.png'</p><p>    # 추가 참조 이미지 경로를 여기에 추가할 수 있습니다</p><p>]</p><p># 참조 이미지의 색상 조합을 계산합니다</p><p>reference_colors = get_reference_colors(reference_image_paths)</p><p># 태양 이미지 분석</p><p>analyze_sun_image(reference_colors, '분석할 파일명')</p><p><br/></p><p><br/></p>]]></description>
         <enclosure url="" />
         <pubDate>2024-09-01 10:00:26 UTC</pubDate>
         <guid>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3096919466</guid>
      </item>
      <item>
         <title>가장 개선된 방법</title>
         <author></author>
         <link>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3096919989</link>
         <description><![CDATA[<p>import os</p><p>from PIL import Image</p><p>import numpy as np</p><p>import matplotlib.pyplot as plt</p><p>def find_images_in_directory(directory):</p><p>    """</p><p>    주어진 디렉토리 내 모든 이미지 파일 경로를 찾습니다.</p><p>    """</p><p>    image_extensions = ('.jpg', '.jpeg', '.png', '.bmp', '.gif')  # 지원할 이미지 확장자</p><p>    image_files = []</p><p>    for root, _, files in os.walk(directory):</p><p>        for file in files:</p><p>            if file.lower().endswith(image_extensions):</p><p>                file_path = os.path.join(root, file)</p><p>                image_files.append(file_path)</p><p>    </p><p>    return image_files</p><p>def analyze_sun_image( sun_image_path):</p><p>    global s</p><p>    """</p><p>    참조 색상 집합을 사용하여 태양 이미지에서 색상 비교 및 흑점 카운트.</p><p>    """</p><p>    sun_image = <a rel="noopener noreferrer nofollow" href="http://Image.open">Image.open</a>(sun_image_path)</p><p>    sun_image_np = np.array(sun_image)</p><p>    # 태양 이미지 크기만큼의 빈 이미지 생성</p><p>    binary_image_np = np.zeros_like(sun_image_np)</p><p>    # 흑점 픽셀 수 카운트 초기화</p><p>    sunspot_pixels = 0</p><p>    # 태양 이미지의 각 픽셀을 순회하면서 참조 색상과 비교합니다.</p><p>    for i in range(sun_image_np.shape[0]):</p><p>        signal = False</p><p>        for j in range(sun_image_np.shape[1]):</p><p>            pixel_color = sum(list(sun_image_np[i, j][:3]))</p><p>            </p><p>            if pixel_color&gt;435:</p><p>                binary_image_np[i, j] = [255, 255, 255]  </p><p>                signal = True</p><p>            elif signal:</p><p>                binary_image_np[i, j] = [0, 0, 0]  # 검은색</p><p>                sunspot_pixels += 1</p><p>            else:</p><p>                binary_image_np[i, j] = [150, 150, 150] </p><p>    # 오른쪽에서 왼쪽으로 스캔하며 흑점 픽셀 처리</p><p>    for i in range(sun_image_np.shape[0]):</p><p>        for j in range(sun_image_np.shape[1]-1, -1, -1):</p><p>            pixel_color = binary_image_np[i, j]</p><p>            if np.array_equal(pixel_color, [0, 0, 0]):  # 흑점</p><p>                sunspot_pixels -= 1</p><p>                binary_image_np[i, j] = [150, 150, 150]  # 회색으로 변경</p><p>            else:</p><p>                break           </p><p>    binary_image_pil = Image.fromarray(binary_image_np)</p><p>    plt.imshow(binary_image_pil)</p><p>    plt.axis('off')</p><p>    <a rel="noopener noreferrer nofollow" href="http://plt.show">plt.show</a>()</p><p>    print(sunspot_pixels)</p><p>analyze_sun_image('분석할 파일명')</p>]]></description>
         <enclosure url="" />
         <pubDate>2024-09-01 10:01:31 UTC</pubDate>
         <guid>https://padlet.com/baefromearth/g9u3nu8vxcu7jsko/wish/3096919989</guid>
      </item>
   </channel>
</rss>
