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
# 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 && \ |
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
# 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 |
# 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 |
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 |