#!/bin/csh
#
#  Generate kernel database from existing kernels
#  Comments:   	2008 09 16 - JRS - This version of makedb was generated to
#	            include the ISS files that were not previously included 
#                   because of NAIF routines array limits.  Also, concerning 
#                   predict kernels, the "p" in the naming convention represents
#                   all the predict files and picks up both the psiv and fsiv 
#                   files (these are Preliminary and Final versions of the 
#                   Sequence Integration and Validation files, typically 
#                   generated 6-8 weeks before uplink).
#		2008 09 17 - JRS - Certain CK kernels are not time sorted
#       	    properly in the db file.  This might be corrected by 
#                   changing the way kerneldbgen reads the regular expression 
#                   string - that is read them into an array instead of a string.
#       	2010 05 20 - Jeannie Backer - Edited reconfilter and 
#                   smithedfilter parameters to work with array, as modified 
#                   in kerneldbgen. Modified smithedfilter to list 1999 file 
#                   first.
kerneldbgen to='kernels.????.db' type=CK \
            predictdir='$cassini/kernels/ck' \
            predictfilter='?????_?????p*.bc' \
            recondir='$cassini/kernels/ck' \
            reconfilter=\("??????_??????r*.bc","?????_?????r*.bc"\) \
	    smitheddir='$cassini/kernels/ck' \
            smithedfilter=\("99213_99243cb_ISS.bc","0????_?????c?_ISS.bc"\) \
            sclk='$cassini/kernels/sclk/cas?????.tsc' \
            lsk='$base/kernels/lsk/naif????.tls'
            
