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 / wallaby2reg.ipynb
Created November 13, 2024 08:59
wallaby2reg.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# request 1/8 of a GPU node for an hour
salloc --nodes=1 --partition=gpu --account=mwaeor-gpu -t 01:00:00 --gres=gpu:1
# load all the modules
module load mwalib/1.5.0 birli/0.15.1 hyperdrive-amd-gfx90a/0.4.1 wsclean/3.4-idg-everybeam
export metafits="1090701368.metafits"
wget 'https://projects.pawsey.org.au/birli-test/'$metafits
export raw="1090701368_20140729203555_gpubox01_00.fits"
wget 'https://projects.pawsey.org.au/birli-test/'$raw
@d3v-null
d3v-null / bipp.Dockerfile
Created September 10, 2024 04:49
WIP BIPP - Bluebild Imager ++ Dockerfile
# syntax=docker/dockerfile:1
# cross-platform, cpu-only dockerfile for demoing MWA software stack
# on amd64, arm64
# ref: https://docs.docker.com/build/building/multi-platform/
ARG BASE_IMG="ubuntu:24.04"
FROM ${BASE_IMG} as base
# Suppress perl locale errors
ENV LC_ALL=C
RUN apt-get update && \
@d3v-null
d3v-null / ASVO Downloading.md
Created August 15, 2024 06:25
Downloading MWA visibilities from ASVO

Step 1 - ASVO Config

configure ASVO client and conversion job parameters, see https://github.com/MWATelescope/manta-ray-client

export MWA_ASVO_API_KEY=... # FIXME
export output=ms
export flag_edge_width=80
export avg_time_res=... # FIXME
export avg_freq_res=... # FIXME
@d3v-null
d3v-null / layout.ipynb
Last active August 23, 2024 06:10
polar plot of MWA Layout, compact and extended.
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 / setonix_spack_future_rust2.sh
Created August 8, 2024 06:13
testing stuff on setonix again
# assuming this PR gets merged. https://github.com/PawseySC/pawsey-spack-config/pull/280/
salloc --nodes=1 --partition=gpu-highmem --account=pawsey0875-gpu -t 00:30:00 --gres=gpu:1
module load spack/default
# ##### #
# ASTRO #
# ##### #
# catch undefined variables
@d3v-null
d3v-null / calibrators.ipynb
Created August 1, 2024 03:33
calibrators
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 / compare_vv.ipynb
Last active August 7, 2024 08:51
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'])