PolarGeospatialCenter / imagery_utils

Other
34 stars 10 forks source link

Remove stacked Ikonos NTF temp file with other temp files #64

Closed ehusby closed 1 year ago

ehusby commented 1 year ago

I noticed that if the ortho code creates a stacked Ikonos image during processing, it wasn't being removed from the destination directory. Example is the *.ntf file in a ortho results folder:

IK01_20130804083500_2013080408355470000011632321_po_1544187_msi_0000000.nfw
IK01_20130804083500_2013080408355470000011632321_po_1544187_msi_0000000.ntf
IK01_20130804083500_2013080408355470000011632321_po_1544187_msi_0000000_u08rf32735.log
IK01_20130804083500_2013080408355470000011632321_po_1544187_msi_0000000_u08rf32735.prj
IK01_20130804083500_2013080408355470000011632321_po_1544187_msi_0000000_u08rf32735.tif
IK01_20130804083500_2013080408355470000011632321_po_1544187_msi_0000000_u08rf32735.xm

The changes implement creation of a new semaphore temp file during processing: IK01_20130804083500_2013080408355470000011632321_po_1544187_msi_0000000.ntf.stacked which is used to indicate that the info.localsrc file should be treated as a temp file for automatic removal at the end of processing.