Skip to content

Instantly share code, notes, and snippets.

View monodera's full-sized avatar

Masato Onodera monodera

  • Subaru Telescope, National Astronomical Observatory of Japan
  • Hilo, HI, USA
View GitHub Profile
import math
import sys
import os
import random
import numpy
# making frames with Gaussian noise
def makeframes(mu,sigma):
frames = numpy.random.normal(mu,sigma,(100,2500))
return(frames)
import numpy as np
# making frames with Gaussian noise
def makeframes(mu,sigma):
frames = np.random.normal(mu,sigma,(100,2500))
return(frames)
# making reference using median combination
def medianref(frames):
ref_med = np.median(frames, axis=0)
@monodera
monodera / gist:0ee9e8600b2b802c62c3
Created May 2, 2015 17:53
Test Simulate Broadening
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
@monodera
monodera / gist:4911502cfe70daaedd14c9c98d71a627
Created January 27, 2017 03:10
Build log of astropy documentation
running build_docs
creating /Users/monodera/packages/astropy-1.3/docs/_build
creating /Users/monodera/packages/astropy-1.3/docs/_build/doctrees
creating /Users/monodera/packages/astropy-1.3/docs/_build/html
running build
running build_py
running pre_hook from astropy._erfa.setup_package for build_py command
running pre_hook from astropy.modeling.setup_package for build_py command
creating build
creating build/lib.macosx-10.6-x86_64-3.5
@monodera
monodera / .block
Last active October 9, 2018 22:15
Hawaii Earthquakes (May 2018)
license: gpl-3.0
height: 500
border: no
@monodera
monodera / hawaii_earthquake.ipynb
Last active May 27, 2018 09:44
hawaii_earthquake.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@monodera
monodera / gist:54c9ecfe5539ae54f85bd4f7d1e97c63
Created November 21, 2018 00:45
iObserve 1.7 error message on macOS 10.13.6
Process: iObserve [19388]
Path: /Applications/iObserve.app/Contents/MacOS/iObserve
Identifier: com.softtenebraslux.iObserve
Version: 1.7.0 (170001)
App Item ID: 424693907
App External ID: 828938610
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: iObserve [19388]
User ID: 501
@monodera
monodera / gist:10ca8d7d94238fa7fa954d093a6eae86
Created December 1, 2018 05:20
Crash report iObserve 1.7.1 on MacBook Pro (15-inch, 2016)
Process: iObserve [31435]
Path: /Applications/iObserve.app/Contents/MacOS/iObserve
Identifier: com.softtenebraslux.iObserve
Version: 1.7.1 (170102)
App Item ID: 424693907
App External ID: 829370935
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: iObserve [31435]
User ID: 501
@monodera
monodera / gist:87c7b21b560854d42332c154172390e3
Created April 11, 2019 08:37
エクセルとpythonのサンプル
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"import calendar\n",
@monodera
monodera / gist:8972c31d0d6e17f9489740320abbde48
Created January 31, 2020 09:00
crash report (MacBook Pro 16-inch, 2019)
panic(cpu 0 caller 0xffffff801e6153bd): "Invalid queue element linkage for 0xffffff806f594790: next 0xffffff8073304a90 next->prev 0x72266b6b9dde6fe4 prev 0xffffff8073304a90 prev->next 0x1"@/BuildRoot/Library/Caches/com.apple.xbs/Binaries/xnu/install/TempContent/Objects/EXPORT_HDRS/osfmk/kern/queue.h:247
Backtrace (CPU 0), Frame : Return Address
0xffffffa403623620 : 0xffffff801df3bb2b
0xffffffa403623670 : 0xffffff801e0734d5
0xffffffa4036236b0 : 0xffffff801e064f4e
0xffffffa403623700 : 0xffffff801dee2a40
0xffffffa403623720 : 0xffffff801df3b217
0xffffffa403623820 : 0xffffff801df3b5fb
0xffffffa403623870 : 0xffffff801e6d2aa9
0xffffffa4036238e0 : 0xffffff801e6153bd