sackerman-usgs / UAS_processing

2 stars 3 forks source link

Change image rename to use exiftool? #5

Open esturdivant-usgs opened 5 years ago

esturdivant-usgs commented 5 years ago

I was trying variations of this to no avail:

cmd = """exiftool -d {}_{}{}_%Y%m%dT%H%M%SZ_%%f.%%e "-filename<GPSTimeStamp" {}""".format(surveyid, cam_id, flight_id, imagefolder)
subprocess.check_call(cmd, shell=True) 

Problems:

esturdivant-usgs commented 5 years ago

We could do this in two lines by 1) set the CreateDate from the GPS time and date; 2) create the filename from the CreateDate:

exiftool -d 2018015FA_m01fXX_%Y%m%dT%H%M%SZ_%%f.%%e "-filename<CreateDate" 001