Skip to content

Instantly share code, notes, and snippets.

View yucelkilic's full-sized avatar

Yücel Kılıç yucelkilic

View GitHub Profile
@yucelkilic
yucelkilic / irafv2_16_1_installation_on_macos_mojave_10_14_6_v1.ipynb
Last active October 9, 2019 13:03
IRAF (V2.16.1+ snapshot) installation on macOS Mojave (10.14.6)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yucelkilic
yucelkilic / bjd.py
Created June 28, 2019 07:26 — forked from mwcraig/bjd.py
from __future__ import print_function, division
import numpy as np
from jplephem.spk import SPK
from astropy.constants import c
import astropy.units as u
from astropy.coordinates import SkyCoord
from astropy.time import Time
@yucelkilic
yucelkilic / sun_plot.py
Created September 29, 2018 20:26 — forked from adrn/sun_plot.py
Generate a yearly sun graph for a location. See: http://adrn.github.io/posts/2016/07/yearly-sun-graph/
from datetime import datetime
# Third-party
import astropy.coordinates as coord
import astropy.units as u
import astropy.time as t
import matplotlib as mpl
import matplotlib.pyplot as pl
import matplotlib.dates as mdates
import numpy as np
@yucelkilic
yucelkilic / PSFPhotometrySpitzer.ipynb
Created February 23, 2018 07:34 — forked from adonath/PSFPhotometrySpitzer.ipynb
Demonstration of photutils PSF/PRF photometry
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yucelkilic
yucelkilic / findrpi.sh
Created October 14, 2017 13:56
Find your Raspberry Pi in your local network
# Contact: yucelkilic@myrafproject.org
red='\e[1;31m%s\e[0m\n'
green='\e[1;32m%s\e[0m\n'
yellow='\e[1;33m%s\e[0m\n'
blue='\e[1;34m%s\e[0m\n'
magenta='\e[1;35m%s\e[0m\n'
cyan='\e[1;36m%s\e[0m\n'
if [ "$(whoami)" != "root" ]; then
@yucelkilic
yucelkilic / peakdet.m
Created October 9, 2017 20:51 — forked from endolith/peakdet.m
Peak detection in Python
function [maxtab, mintab]=peakdet(v, delta, x)
%PEAKDET Detect peaks in a vector
% [MAXTAB, MINTAB] = PEAKDET(V, DELTA) finds the local
% maxima and minima ("peaks") in the vector V.
% MAXTAB and MINTAB consists of two columns. Column 1
% contains indices in V, and column 2 the found values.
%
% With [MAXTAB, MINTAB] = PEAKDET(V, DELTA, X) the indices
% in MAXTAB and MINTAB are replaced with the corresponding
% X-values.
@yucelkilic
yucelkilic / progress-bar.sh
Last active February 3, 2017 23:07 — forked from F1LT3R/progress-bar.sh
Bash Progress Bar
#!/bin/bash
# Bash Progress Bar: https://gist.github.com/F1LT3R/fa7f102b08a514f2c535
progressBarWidth=20
# Function to draw progress bar
progressBar () {
# Calculate number of fill/empty slots in the bar