After running mosaic_all for the whole catalog, there should be a directory containing all data product with the mosaicked galaxies sorted in directory with their PGC name. Along with a lot of intermediary rfits created for mosaciking. These can be deleted if unused.
rm SDSS_*.fits
It is generally safer to save a backup copy of the whole data product file, so that you can always start from this step instead of taking a whole week to regenerate the data product.
The Python sqlite3 module can be used to generate the
Inside the rc3.db the path location is stored as
$PATH/<pgc-name>/<survey-name>/<filename>
where $PATH refers to the directory containing all the data product.
However the data product generated by the program is as :
$PATH/<pgc-name>/<survey-name>/<filename>
Therefore, we run the bash script on all the data product to add the additional directory:
for SUBDIR in `find SDSS_run_result -maxdepth 1 -type d | tail -n +2` ;
do
OBJA="${SUBDIR}/sdss"
mkdir -p $OBJA
for j in `find $SUBDIR -maxdepth 1 | tail -n +2` ;
do
echo $j
mv $j $OBJA
done
done
This may seem extraneous but is helpful in organization of data when there are data from multiple surveys. In those cases, mosaics of a particular object of interest can be retreived from multiple surveys.
mkdir Mosaic
find . -name "*.tiff" -type f -exec cp {} ./Mosaic \;
This copies all the color images inside the Mosaic directory.
3)Copy img/ to where all the html/php files are. (Alternatively, you can simply keep the storage location for img/ and change the path in gallery.php)