Commit f420d78f authored by Gaetano Raffaele's avatar Gaetano Raffaele
Browse files

ENH: adding tool for converting MAJA (v1) outputs to THEIA format.

Showing with 1 addition and 1 deletion
+1 -1
......@@ -16,7 +16,7 @@ def maja2theia(infld,outfld):
sys.exit('Platform ' + platform.system() + 'not supported.')
print os.path.split(infld)[-1]
basename = 'SENTINEL2' + os.path.split(infld)[-1] + '_'
basename = 'SENTINEL2' + os.path.split(infld)[-1][2] + '_'
ref = glob.glob(infld + '/*FRE_R1*.TIF')[0]
date = os.path.basename(ref).split('____')[1].split('_')[0]
tile = 'T' + os.path.basename(ref).split('____')[0].split('_')[-1]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment