Skip to content

Instantly share code, notes, and snippets.

View ycopin's full-sized avatar

Yannick Copin ycopin

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ycopin
ycopin / GD71_07_253_090_B.txt
Created April 19, 2017 15:41
Simulation of seeing in large telescopes (D>>r0), tested against SNfactory ad-hoc PSF models.
# lbda: 4327A
# radius[spx] flux
0.716608613055 12.3552
0.745272338424 11.5852
0.745343175736 11.7769
0.834997936881 10.4475
1.55358944456 4.54829
1.57210666273 4.74318
1.61169010512 4.2645
1.68493686848 3.5319
@ycopin
ycopin / restride.py
Created May 22, 2020 08:51
Rebin ND-array using stride tricks.
# Copyright: This document has been placed in the public domain.
__author__ = "Yannick Copin <[email protected]>"
import numpy as N
def restride(arr, binfactor, squeezed=True, flattened=False):
"""
Rebin ND-array `arr` by `binfactor`.
@ycopin
ycopin / Isothermes_vdWaals.svg
Created November 15, 2020 20:18
Isothermes de van der Waals
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.