Skip to content

Instantly share code, notes, and snippets.

View d3v-null's full-sized avatar

Dev Null d3v-null

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/bin/zsh -eux
export obsid="1090359520"
export outdir="/data/dev"
## preprocessing settings
#### time resolution to average to in seconds
export timeres_s=2
#### frequency resolution to average to in kHz
export freqres_khz=40
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@d3v-null
d3v-null / get_vis_times.ipynb
Last active January 12, 2023 09:24
How to get the timestamps from MWA uvfits and measurement sets, what it looks like if --ignore-dut1 is enabled
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@d3v-null
d3v-null / read_uvfits.py
Last active August 2, 2022 09:31
Fast UVFits reading code
import numpy as np
from astropy.io import fits
def make_fits_axis_array(hdu, axis):
count = hdu.header[f"NAXIS{axis}"]
crval = hdu.header[f"CRVAL{axis}"]
cdelt = hdu.header[f"CDELT{axis}"]
crpix = hdu.header[f"CRPIX{axis}"]
return cdelt * (np.arange(count) - crpix) + crval
#!/bin/bash -l
#SBATCH -J "*:~.✩"
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --account=mwaeor
#SBATCH --export=NONE
#SBATCH --partition=gpuq
#SBATCH --cpus-per-task=32
#SBATCH --mem=350G
#SBATCH --tmp=500G
0eNqdvc1uXTnSZn0rDY/lwuY/WYMe9hX07EMh4bRdmQKctj9ZTnShUffee8s6R8cyn3OexUH5fZ2WFrkZDJIRDEb83ze/f/r+8evD/efHN//8v2++fX739e3jl7d/PNx/OP7+f978M9S7N/85/s9/7968+/3bl0/fHz++PX7u6/3nP9788/Hh+8e7N/fvv3z+9uaf/99OuP/j87tPx+8+/ufrxzf/fHP/+PGvN3dvPr/76/jbw7v7T2920v3nDx8P+H/vJr/y9/3D4/f9v5x/68dP7L36+PHzxW/H//7r7s3Hz4/3j/cff7T+9Jf//Pb5+1+/f3zY8S/tfvn9y9cvD4878+uXb/svfPn88/e9Tf89+vIKEA1AzVcAyelBiFcI2fqG7QqhGIS49SuE6hDKtYFsBiFt10ayO4RybSSHQcjbtZEMm4PI14YyvMzJ3+//ePvx08f3jw/3799+/fLpo5yc2z7nP3+8/+PP3798fzhmesj/mrFfpuu3x13T/vjz8e2Twv0qrPGji2HaxfSTur591s+JvP5RfmD2/2fv4Yf7h/1jnv49z7CZfHmK4svDXdji9OuL+/WpXPv6Srr5rPy/dnObS6gh6QcxCHGbwrs7ACFeHYHhyT/EiiZA3NDHxy6Gtu0zoM4GIAZ7AFK4MgAxMh3d1Bzo014mQj8tzBP6mNKRlp0W7YmaTadYLEiHN6UdIUzpSPVOi/2v2tHvds2ZNvCift/+evfp09tP7/76OiOny4k9A3XU0ypkuH9wnEtxIH7PciTSVI4JqeJpU/yVP+5SmvJtTczHbiM1MUVvKcoho6UoIR3MahvehzHMt+KU/QG4thcnpHCno8dE4aYLZro42L378O5htrg9j2ucK0Jq8Mgx/8punjhOeinUMg14BJj2Jm83RyXE68OSA92K5z2J7k48rg9MTnRnnPcn3xqZfbu6MTLlFmLfNW4gqrmKbzcG5WXufvryx/23x12v3v/58dvj29+///vfHx+uIcPTKvPw8f//vv/8b/+