This example generates a mock sky brightness image and a realistic set of baselines
Note that this script does not sample mock visibility values mpol.fourier.generate_fake_data
in scripts like sgd/src/load_data.py
, so that sky image size, flux, and measurement noise level can be adjusted as needed.
create_butterfly.py
downloads a nice looking image from theceyda/smithsonian_butterflies
collection, uses PIL to greyscale and crop it, adjusts the flux value to match DSHARP IM Lup, then saves it as a numpy array.export_baselines.py
uses MPoL-dev/visread and casatools to extract real baselines from the IM Lup measurement set, and saves them as a numpy array. To save space, we take <5% of the visibilities.package_data.py
combines the two numpy arrays into a single archive, saved asfloat32
to save space.requirements.txt
lists the python packages necessary for the analysis. You can install them withpip install -r requirements.txt
Snakefile
is a snakemake file setting up the workflow. From this directory, you can run
$ snakemake -c 1 all
Will create this mock image (sourced from ceyda/smithsonian_butterflies
) stuffed into data/mock_data.npz