In this article, we provide examples of using the python module PyFITS for working with FITS data. We first go through a brief
As configured in my dotfiles.
start new:
tmux
start new with session name:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| n <- 50 | |
| m <- 50 | |
| set.seed(1) | |
| mu <- -0.4 | |
| sig <- 0.12 | |
| x <- matrix(data=rlnorm(n*m, mu, sig), nrow=m) | |
| library(fitdistrplus) | |
| ## Fit a log-normal distribution to the 50 random data set | |
| f <- apply(x, 2, fitdist, "lnorm") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pyximport | |
| import numpy as np | |
| pyximport.install(setup_args={'include_dirs': np.get_include()}) |
NewerOlder