Skip to content

Instantly share code, notes, and snippets.

View d3v-null's full-sized avatar

Dev Null d3v-null

View GitHub Profile
@d3v-null
d3v-null / compare_vv.ipynb
Created July 16, 2024 07:24
compare pyuvdata Van Vleck corrections with chebychev approximations, without, and raw
Loading
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 / validation.ipynb
Last active July 12, 2024 09:35
validation.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# wget -O "1392414360.metafits" $'http://ws.mwatelescope.org/metadata/fits?obs_id=1392414360' # compact
# wget -O "1204135512.metafits" $'http://ws.mwatelescope.org/metadata/fits?obs_id=1204135512' # extended
from astropy.io import fits
import numpy as np
extended = fits.open('1204135512.metafits')
compact = fits.open('1392414360.metafits')
# delete any rows from compact that have a `TileName` that already exists in extended
extended_names = np.unique(extended['TILEDATA'].data['TileName'])
#!/bin/bash
# credit: Jack Line
# salloc --nodes=1 --partition=gpu --account=${PAWSEY_PROJECT}-gpu -t 00:30:00 --gres=gpu:1
##what to call WODEN directory
WODEN_NAME="woden-test"
##Load some dependencies
module load rust
@d3v-null
d3v-null / setonix_spack_future_rust.sh
Last active May 23, 2024 09:13
install modern rust versions on ancient spack
export SPACK_FUTURE_VER=0.20.0
export PACKAGES="rust"
# doesn't work:
# export SPACK_FUTURE_VER=0.21.0
# export PACKAGES="rust rust-bootstrap"
for package in $PACKAGES; do
cd ${MYSOFTWARE}/setonix/2023.08/spack_repo/packages/
rm -rf $package
mkdir -p $package
@d3v-null
d3v-null / phase_fit_analysis.ipynb
Last active April 12, 2024 05:18
analysis of calibration solutions
Loading
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 / ssins_starlink_175.py
Last active February 15, 2024 02:02
given a set of MWA raw files on ch137, and their metafits, crop 40kHz wide around the signal and write to disk
@d3v-null
d3v-null / hyperdrive_hip_setonix.sh
Last active February 2, 2024 07:33
build hyperdrive on setonix
# salloc --nodes=1 --partition=gpu-highmem --account=pawsey0875-gpu -t 04:00:00 --gres=gpu:1 --exclusive
# if you want segfaults:
# ROCM_VER=system DEBUG=false RAYON_NUM_THREADS=7 ./hyperdrive_hip_setonix.sh
# ##### #
# SETUP #
# ##### #
set -eux
@d3v-null
d3v-null / fitsdump.sh
Created February 1, 2024 08:29
quick fits dump
python -c 'from astropy.io import fits; import sys; from tabulate import tabulate; print(tabulate((i:=fits.open(sys.argv[-1])[1]).data, headers=[c.name for c in i.columns]))'
@d3v-null
d3v-null / hyperdrive_cpu_setonix.sh
Created December 20, 2023 06:56
Compiles and runs hyperdrive on setonx. Additional notes for ROCm development.
#!/bin/bash
#SBATCH -J "hypertest"
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --account=pawsey0875-gpu
#SBATCH --partition=gpu
#SBATCH --time=1:00:00
#SBATCH --exclusive
#SBATCH --gres=gpu:1
###SBATCH --array=0-1