Commit 76438207 authored by Andrea Giannetti's avatar Andrea Giannetti
Browse files

Added stub script for saving images to fits.

parent c00689d3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -176,7 +176,7 @@ def get_moldata(species_names: list):
    """
    for species in species_names:
        data = urllib.request.urlopen(leiden_url_mapping[species]).read().decode()
        with open(os.path.join('mdl', 'radmc_input_files', f'molecule_{species}.inp'), 'w') as outfile:
        with open(os.path.join('mdl', 'radmc_files', f'molecule_{species}.inp'), 'w') as outfile:
            outfile.writelines(data)


+4 −0
Original line number Diff line number Diff line
from radmc3dPy import image

imdata = image.readImage(fname='mdl/radmc_files/image.out')
imdata.writeFits(fname='prs/fits/test_cube.fits')
 No newline at end of file