# # The following Makefile is used to control the execution of # MODTRAN under CONDOR. # # The inputs into the process is a tape5 file and the results will # be the standard MODTRAN output tapes as well as an ENVI spectral # library version of the tape7.scn output columns # # RVR # VERSION=4v1r1 local: make -e link time nice /dirs/bin/Mod$(VERSION).exe make -e unlink make -e sli condor: make -e tape7.scn VERSION=$(VERSION) # # Create the tape7.scn file by submitting the MODTRAN job under # CONDOR # tape7.scn: tape5 condor_submit_dag -f condor_submit.dag # # It is necessary to make a symbolic link to the band models of # MODTRAN. # Remove any existing links and re-link if necessary # link: rm -f DATA ln -s /dirs/lib/Mod$(VERSION) DATA # # Remove the link once the MODTRAN run is finished # unlink: rm -f DATA # # Dependency to create the ENVI Spectral Library from the # tape7.scn file # sli: tape7.scn echo "make_modtran_envi_spectral_library, 'tape7.scn'" | envi # # Clean up command to allow you to start from scratch # clean: rm -f DATA *.dag.* tape[6-8]* plt* *.log