Commit 487d752d authored by Mohammad Akhlaghi's avatar Mohammad Akhlaghi

Moved the aligned UDF images to a separate directory

The aligned UDF (not UDF10) images were in the same directory as the
cutouts of each subfield. They are now saved in a separate directory
of the top build directory to make the cutouts directory more easily
understandable/managable. Especially since the HST images will be
coming in too soon.
parent bdca120b
......@@ -243,10 +243,3 @@ $(kernels): $(dhstdir)/udf%-ker.fits: $(dhstdir)/udf%-psf.fits
filter=$(word 2, $(subst -, , $*)); \
astconvolve --kernel=$< $(dhstdir)/star-$$filter".fits" --makekernel=8 \
--viewfreqsteps
file.txt: $(muse-psfs)
echo; echo "-- REACHED THE END ---"; echo
......@@ -30,15 +30,19 @@ $(indir): $(BDIR); mkdir $@
# Align the MUSE UDF region
# -------------------------
#
# The original MUSE UDF Mosaic region is not aligned with the
# celestial coordinates. To make things easier, we are first aligning
# them to ease the processing.
udfaligned = $(foreach f, $(filters), $(indir)/udf-muse-$(f).fits)
$(udfaligned): $(indir)/udf-muse-%.fits: \
$(MUSEINPUTS)/muse-udf-%.fits $(imgwarp)
audfdir=$(BDIR)/aligned-udf
udfaligned = $(foreach f, $(filters), $(audfdir)/muse-udf-$(f).fits)
$(audfdir): $(BDIR); mkdir $@
$(udfaligned): $(audfdir)/muse-udf-%.fits: \
$(MUSEINPUTS)/muse-udf-%.fits $(imgwarp) | $(audfdir)
astimgwarp $< --align -h1 -o$@
......@@ -47,63 +51,63 @@ $(udfaligned): $(indir)/udf-muse-%.fits: \
# From original MUSE images
# -------------------------
#
# Cutout the udf10 and udf regions
udf1-muse-cutouts = $(foreach f, $(filters), $(indir)/udf1-muse-$(f).fits)
$(udf1-muse-cutouts): $(indir)/udf1-muse-%.fits: $(indir)/udf-muse-%.fits \
# Cutout the 10 udf regions
udf1-muse-cutouts = $(foreach f, $(filters), $(indir)/udf1-$(f)-m.fits)
$(udf1-muse-cutouts): $(indir)/udf1-%-m.fits: $(audfdir)/muse-udf-%.fits \
$(imgcrop) reproduce/config/internal/vertices-udf1.mk \
| $(indir)
astimgcrop $(udf1polygon) $< -o$@
udf2-muse-cutouts = $(foreach f, $(filters), $(indir)/udf2-muse-$(f).fits)
$(udf2-muse-cutouts): $(indir)/udf2-muse-%.fits: $(indir)/udf-muse-%.fits \
udf2-muse-cutouts = $(foreach f, $(filters), $(indir)/udf2-$(f)-m.fits)
$(udf2-muse-cutouts): $(indir)/udf2-%-m.fits: $(audfdir)/muse-udf-%.fits \
$(imgcrop) reproduce/config/internal/vertices-udf2.mk \
| $(indir)
astimgcrop $(udf2polygon) $< -o$@
udf3-muse-cutouts = $(foreach f, $(filters), $(indir)/udf3-muse-$(f).fits)
$(udf3-muse-cutouts): $(indir)/udf3-muse-%.fits: $(indir)/udf-muse-%.fits \
udf3-muse-cutouts = $(foreach f, $(filters), $(indir)/udf3-$(f)-m.fits)
$(udf3-muse-cutouts): $(indir)/udf3-%-m.fits: $(audfdir)/muse-udf-%.fits \
$(imgcrop) reproduce/config/internal/vertices-udf3.mk \
| $(indir)
astimgcrop $(udf3polygon) $< -o$@
udf4-muse-cutouts = $(foreach f, $(filters), $(indir)/udf4-muse-$(f).fits)
$(udf4-muse-cutouts): $(indir)/udf4-muse-%.fits: $(indir)/udf-muse-%.fits \
udf4-muse-cutouts = $(foreach f, $(filters), $(indir)/udf4-$(f)-m.fits)
$(udf4-muse-cutouts): $(indir)/udf4-%-m.fits: $(audfdir)/muse-udf-%.fits \
$(imgcrop) reproduce/config/internal/vertices-udf4.mk \
| $(indir)
astimgcrop $(udf4polygon) $< -o$@
udf5-muse-cutouts = $(foreach f, $(filters), $(indir)/udf5-muse-$(f).fits)
$(udf5-muse-cutouts): $(indir)/udf5-muse-%.fits: $(indir)/udf-muse-%.fits \
udf5-muse-cutouts = $(foreach f, $(filters), $(indir)/udf5-$(f)-m.fits)
$(udf5-muse-cutouts): $(indir)/udf5-%-m.fits: $(audfdir)/muse-udf-%.fits \
$(imgcrop) reproduce/config/internal/vertices-udf5.mk \
| $(indir)
astimgcrop $(udf5polygon) $< -o$@
udf6-muse-cutouts = $(foreach f, $(filters), $(indir)/udf6-muse-$(f).fits)
$(udf6-muse-cutouts): $(indir)/udf6-muse-%.fits: $(indir)/udf-muse-%.fits \
udf6-muse-cutouts = $(foreach f, $(filters), $(indir)/udf6-$(f)-m.fits)
$(udf6-muse-cutouts): $(indir)/udf6-%-m.fits: $(audfdir)/muse-udf-%.fits \
$(imgcrop) reproduce/config/internal/vertices-udf6.mk \
| $(indir)
astimgcrop $(udf6polygon) $< -o$@
udf7-muse-cutouts = $(foreach f, $(filters), $(indir)/udf7-muse-$(f).fits)
$(udf7-muse-cutouts): $(indir)/udf7-muse-%.fits: $(indir)/udf-muse-%.fits \
udf7-muse-cutouts = $(foreach f, $(filters), $(indir)/udf7-$(f)-m.fits)
$(udf7-muse-cutouts): $(indir)/udf7-%-m.fits: $(audfdir)/muse-udf-%.fits \
$(imgcrop) reproduce/config/internal/vertices-udf7.mk \
| $(indir)
astimgcrop $(udf7polygon) $< -o$@
udf8-muse-cutouts = $(foreach f, $(filters), $(indir)/udf8-muse-$(f).fits)
$(udf8-muse-cutouts): $(indir)/udf8-muse-%.fits: $(indir)/udf-muse-%.fits \
udf8-muse-cutouts = $(foreach f, $(filters), $(indir)/udf8-$(f)-m.fits)
$(udf8-muse-cutouts): $(indir)/udf8-%-m.fits: $(audfdir)/muse-udf-%.fits \
$(imgcrop) reproduce/config/internal/vertices-udf8.mk \
| $(indir)
astimgcrop $(udf8polygon) $< -o$@
udf9-muse-cutouts = $(foreach f, $(filters), $(indir)/udf9-muse-$(f).fits)
$(udf9-muse-cutouts): $(indir)/udf9-muse-%.fits: $(indir)/udf-muse-%.fits \
udf9-muse-cutouts = $(foreach f, $(filters), $(indir)/udf9-$(f)-m.fits)
$(udf9-muse-cutouts): $(indir)/udf9-%-m.fits: $(audfdir)/muse-udf-%.fits \
$(imgcrop) reproduce/config/internal/vertices-udf9.mk \
| $(indir)
astimgcrop $(udf9polygon) $< -o$@
udf10-muse-cutouts = $(foreach f, $(filters), $(indir)/udf10-muse-$(f).fits)
$(udf10-muse-cutouts): $(indir)/udf10-muse-%.fits: \
udf10-muse-cutouts = $(foreach f, $(filters), $(indir)/udf10-$(f)-m.fits)
$(udf10-muse-cutouts): $(indir)/udf10-%-m.fits: \
$(MUSEINPUTS)/muse-udf10-%.fits $(imgcrop) \
reproduce/config/internal/vertices-udf10.mk | $(indir)
astimgcrop $(udf10polygon) -h1 $< -o$@
......@@ -113,3 +117,10 @@ udf-muse-cutouts = $(udf1-muse-cutouts) $(udf2-muse-cutouts) \
$(udf5-muse-cutouts) $(udf6-muse-cutouts) \
$(udf7-muse-cutouts) $(udf8-muse-cutouts) \
$(udf9-muse-cutouts) $(udf10-muse-cutouts)
file.txt: $(udf-muse-cutouts)
echo; echo "-- REACHED THE END ---"; echo
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment