Skip to content

Instantly share code, notes, and snippets.

View vatch123's full-sized avatar
🏠
Working from home

Vatsalya Chaubey vatch123

🏠
Working from home
View GitHub Profile
import math
import os
import random
import PIL
import matplotlib.pyplot as plt
import numpy as np
import torch
import torch.nn.functional as F
from torch.utils.data import Dataset, DataLoader
from accelerate import Accelerator
@vatch123
vatch123 / Sunkit-Image.md
Last active December 7, 2020 04:26
Final Report of Google Summer of Code 2019

Sunkit-Image

This project developed several image processing algorithms and manipulation routines for sunkit-image, an affiliated Python package of the Sunpy Project. The rigorous analysis of solar images is of paramount importance to the Heliophysics community as this can reveal more information on solar features and events, which in turn can affect the Earth. This project brought selected solar image processing algorithms under the umbrella of a new library.

GSOC 2019: Project Goals

There were four major goals as listed on the OpenAstronomy website.
These included:

  • Implement the Normalizing Radial Gradient Filter
  • Port the Multi-scale Gaussian Normalization
  • Implement the OCCULT-2 algorithm for coronal loop tracing
import numpy as np
import sunpy.io
import matplotlib.pyplot as plt
import sunkit_image.enhance as enhance
aia = sunpy.io.fits.read("http://www.lmsal.com/~aschwand/software/tracing/EUVIA_20070430.fits")
# plt.imshow(aia[0].data, cmap='Reds_r')
# plt.show()