#!/bin/sh
#*******************************************************************************
# JMMC project ( http://www.jmmc.fr ) - Copyright (C) CNRS.
#*******************************************************************************

SCLCAT=~/dev/SCALIB/DEVELOPMENT/sclcat/

PREV=SVN20170503_BRIGHT
NEW=20250624_BRIGHT

PREVCAT="jsdc-$PREV.fits"
LASTCAT="jsdc-$NEW.fits"

#PREVCAT=JSDC_V1.fits
#LASTCAT=jsdc_v2_GD_20170303.fits

echo "copying final.fits to $LASTCAT"
cp final.fits output/$LASTCAT


# compare script does not work if catalogs are not in the current directory !
cd output/

$SCLCAT/src/sclcatCompareCat.sh $PREVCAT $LASTCAT 

# $SCLCAT/src/sclcatCompareCat.sh JSDC_V1.fits $LASTCAT
#$SCLCAT/src/sclcatCompareCat.sh jsdc_v2_GD_20170303.fits $LASTCAT  

