create account

Finding Local Maxima Peaks in Solar Data by prateekiiest

View this thread on: hive.blogpeakd.comecency.com
· @prateekiiest · (edited)
$0.06
Finding Local Maxima Peaks in Solar Data
Detecting intensity peaks in solar images can be useful as
a simple flare identification mechanism. This example illustrates detection
of those areas where there is a spike in solar intensity.

In this feature I worked on  implementing the *skimage.feature.peak_local_max*
function to find the local peaks in the solar data collected from AIA plot.

Using the *map functionality* in SunPy we first plot the AIA data.

![sphx_glr_Finding_Local_Peaks_in_Solar_Data_001.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1514790049/lps09jukmmdm562idenc.png)

Now using the peak function from  skimage we plot the AIA data distribution showing the local peaks.

![sphx_glr_Finding_Local_Peaks_in_Solar_Data_002.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1514790221/vxhnwbazqkpyh8nejywe.png)

Once we get the local peaks position, we plot those coordinates in the actual AIA map plot.

![sphx_glr_Finding_Local_Peaks_in_Solar_Data_003.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1514790337/fxk2kqobduwka0yso1zs.png)

Pull Request [Link](https://github.com/sunpy/sunpy/pull/2339). 

<br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@prateekiiest/finding-local-maxima-peaks-in-solar-data">Utopian.io -  Rewarding Open Source Contributors</a></em><hr/>
👍  , , , , , , , , , , , , ,
properties (23)
authorprateekiiest
permlinkfinding-local-maxima-peaks-in-solar-data
categoryutopian-io
json_metadata"{"community":"utopian","app":"utopian/1.0.0","format":"markdown","repository":{"id":2165383,"name":"sunpy","full_name":"sunpy/sunpy","owner":{"login":"sunpy","id":963197,"avatar_url":"https://avatars0.githubusercontent.com/u/963197?v=4","gravatar_id":"","url":"https://api.github.com/users/sunpy","html_url":"https://github.com/sunpy","followers_url":"https://api.github.com/users/sunpy/followers","following_url":"https://api.github.com/users/sunpy/following{/other_user}","gists_url":"https://api.github.com/users/sunpy/gists{/gist_id}","starred_url":"https://api.github.com/users/sunpy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunpy/subscriptions","organizations_url":"https://api.github.com/users/sunpy/orgs","repos_url":"https://api.github.com/users/sunpy/repos","events_url":"https://api.github.com/users/sunpy/events{/privacy}","received_events_url":"https://api.github.com/users/sunpy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sunpy/sunpy","description":"SunPy - Python for Solar Physics","fork":false,"url":"https://api.github.com/repos/sunpy/sunpy","forks_url":"https://api.github.com/repos/sunpy/sunpy/forks","keys_url":"https://api.github.com/repos/sunpy/sunpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sunpy/sunpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sunpy/sunpy/teams","hooks_url":"https://api.github.com/repos/sunpy/sunpy/hooks","issue_events_url":"https://api.github.com/repos/sunpy/sunpy/issues/events{/number}","events_url":"https://api.github.com/repos/sunpy/sunpy/events","assignees_url":"https://api.github.com/repos/sunpy/sunpy/assignees{/user}","branches_url":"https://api.github.com/repos/sunpy/sunpy/branches{/branch}","tags_url":"https://api.github.com/repos/sunpy/sunpy/tags","blobs_url":"https://api.github.com/repos/sunpy/sunpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sunpy/sunpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sunpy/sunpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/sunpy/sunpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sunpy/sunpy/statuses/{sha}","languages_url":"https://api.github.com/repos/sunpy/sunpy/languages","stargazers_url":"https://api.github.com/repos/sunpy/sunpy/stargazers","contributors_url":"https://api.github.com/repos/sunpy/sunpy/contributors","subscribers_url":"https://api.github.com/repos/sunpy/sunpy/subscribers","subscription_url":"https://api.github.com/repos/sunpy/sunpy/subscription","commits_url":"https://api.github.com/repos/sunpy/sunpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/sunpy/sunpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/sunpy/sunpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/sunpy/sunpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/sunpy/sunpy/contents/{+path}","compare_url":"https://api.github.com/repos/sunpy/sunpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sunpy/sunpy/merges","archive_url":"https://api.github.com/repos/sunpy/sunpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sunpy/sunpy/downloads","issues_url":"https://api.github.com/repos/sunpy/sunpy/issues{/number}","pulls_url":"https://api.github.com/repos/sunpy/sunpy/pulls{/number}","milestones_url":"https://api.github.com/repos/sunpy/sunpy/milestones{/number}","notifications_url":"https://api.github.com/repos/sunpy/sunpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sunpy/sunpy/labels{/name}","releases_url":"https://api.github.com/repos/sunpy/sunpy/releases{/id}","deployments_url":"https://api.github.com/repos/sunpy/sunpy/deployments","created_at":"2011-08-06T15:34:08Z","updated_at":"2018-01-02T06:59:13Z","pushed_at":"2017-12-21T19:05:56Z","git_url":"git://github.com/sunpy/sunpy.git","ssh_url":"git@github.com:sunpy/sunpy.git","clone_url":"https://github.com/sunpy/sunpy.git","svn_url":"https://github.com/sunpy/sunpy","homepage":"http://www.sunpy.org","size":41126,"stargazers_count":306,"watchers_count":306,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":230,"mirror_url":null,"archived":false,"open_issues_count":205,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":230,"open_issues":205,"watchers":306,"default_branch":"master","score":120.17716},"pullRequests":[],"platform":"github","type":"sub-projects","tags":["utopian-io","sunpy","solarphysics","github","solarsoftware"],"links":["https://res.cloudinary.com/hpiynhbhq/image/upload/v1514790049/lps09jukmmdm562idenc.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1514790221/vxhnwbazqkpyh8nejywe.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1514790337/fxk2kqobduwka0yso1zs.png","https://github.com/sunpy/sunpy/pull/2339"],"image":["https://res.cloudinary.com/hpiynhbhq/image/upload/v1514790049/lps09jukmmdm562idenc.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1514790221/vxhnwbazqkpyh8nejywe.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1514790337/fxk2kqobduwka0yso1zs.png"],"moderator":{"account":"stoodkev","pending":false,"reviewed":false,"flagged":true}}"
created2018-01-02 07:35:36
last_update2018-01-06 17:29:39
depth0
children3
last_payout2018-01-09 07:35:36
cashout_time1969-12-31 23:59:59
total_payout_value0.062 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,289
author_reputation485,742,897
root_title"Finding Local Maxima Peaks in Solar Data"
beneficiaries
0.
accountutopian.pay
weight2,500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id26,509,049
net_rshares7,112,185,538
author_curate_reward""
vote details (14)
@steemitboard ·
Congratulations @prateekiiest! You have received a personal award!

[![](https://steemitimages.com/70x70/http://steemitboard.com/@prateekiiest/birthday1.png)](http://steemitboard.com/@prateekiiest)  1 Year on Steemit
<sub>_Click on the badge to view your Board of Honor._</sub>


**Do not miss the last post from @steemitboard:**
<table><tr><td><a href="https://steemit.com/steemfest/@steemitboard/meet-the-steemians-contest-intermediate-results"><img src="https://steemitimages.com/64x128/https://cdn.steemitimages.com/DQmeLukvNFRsa7RURqsFpiLGEZZD49MiU52JtWmjS5S2wtW/image.png"></a></td><td><a href="https://steemit.com/steemfest/@steemitboard/meet-the-steemians-contest-intermediate-results">Meet the Steemians Contest - Intermediate results</a></td></tr></table>

> Support [SteemitBoard's project](https://steemit.com/@steemitboard)! **[Vote for its witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1)** and **get one more award**!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-prateekiiest-20181118t055412000z
categoryutopian-io
json_metadata{"image":["https://steemitboard.com/img/notify.png"]}
created2018-11-18 05:54:12
last_update2018-11-18 05:54:12
depth1
children0
last_payout2018-11-25 05:54:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length978
author_reputation38,975,615,169,260
root_title"Finding Local Maxima Peaks in Solar Data"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id75,479,182
net_rshares0
@steemitboard ·
Congratulations @prateekiiest! You received a personal award!

<table><tr><td>https://steemitimages.com/70x70/http://steemitboard.com/@prateekiiest/birthday2.png</td><td>Happy Birthday! - You are on the Steem blockchain for 2 years!</td></tr></table>

<sub>_You can view [your badges on your Steem Board](https://steemitboard.com/@prateekiiest) and compare to others on the [Steem Ranking](https://steemitboard.com/ranking/index.php?name=prateekiiest)_</sub>


###### [Vote for @Steemitboard as a witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1) to get one more award and increased upvotes!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-prateekiiest-20191118t061203000z
categoryutopian-io
json_metadata{"image":["https://steemitboard.com/img/notify.png"]}
created2019-11-18 06:12:03
last_update2019-11-18 06:12:03
depth1
children0
last_payout2019-11-25 06:12:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length636
author_reputation38,975,615,169,260
root_title"Finding Local Maxima Peaks in Solar Data"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id92,601,907
net_rshares0
@stoodkev ·
Your contribution cannot be approved yet. Please follow the [Utopian Rules](https://utopian.io/rules). This does not fit into Sub-Projects, at best it would be a tutorial if you add way more detail and information.

You may edit your post [here](https://utopian.io/utopian-io/@hsynterkr/isteem-open-source-mobile-app-for-steemit), as shown below: 
![](https://res.cloudinary.com/hpiynhbhq/image/upload/v1509788371/nbgbomithszxs3nxq6gx.png)

You can contact us on [Discord](https://discord.gg/UCvqCsx).
**[[utopian-moderator]](https://utopian.io/moderators)**
properties (22)
authorstoodkev
permlinkre-prateekiiest-finding-local-maxima-peaks-in-solar-data-20180104t084430058z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2018-01-04 08:44:30
last_update2018-01-04 08:44:30
depth1
children0
last_payout2018-01-11 08:44:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length558
author_reputation190,283,772,273,558
root_title"Finding Local Maxima Peaks in Solar Data"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id26,982,830
net_rshares0