#!/bin/csh
#
#  Generate kernel database from existing kernels
#  Comments:    2009 08 25 - Jeannie Backer - This version of makedb was 
#                   generated to search for highest version of lsk 
#                   (previously hard-coded).
#               2010 05 20 - Jeannie Backer - Edited reconfilter to work with 
#                   array, as modified in kerneldbgen.  Changed order of 
#                   reconstructed files to list map files before ext files.
#                   Removed nadir parameters found in previous 
#                   version (makedb.0015)
#               2011-03-11 - Stuart Sides - With information from the Themis
#                    team as ASU is was determined that the new regex below
#                    was the correct one to use. The "nadir" in some of the
#                   file names is only partially true. Those files also
#                    contain rolled orientation data that may not be in
#                    the other files.
kerneldbgen to='kernels.????.db' type=CK \
            recondir='$odyssey/kernels/ck' \
	    reconfilter=\("m01_sc_ab????.bc","m01_sc_map?_rec_nadir.bc","m01_sc_map??_rec_nadir.bc","m01_sc_map?_v?.bc","m01_sc_map?.bc","m01_sc_map??.bc","m01_sc_ext?_rec_nadir.bc","m01_sc_ext??_rec_nadir.bc","m01_sc_ext??_rec_roto*.bc","m01_sc_ext?.bc","m01_sc_ext??.bc"\) \
            sclk='$odyssey/kernels/sclk/ORB1_SCLKSCET.?????.tsc' \
            lsk='$base/kernels/lsk/naif????.tls'
