from geodata import *

ids = [
    'KV1_38765_30109_00_KANOPUS_20190718_080631_080722.SCN10.PMS.L2',
    'KV1_38765_30109_00_KANOPUS_20190718_080631_080722.SCN11.PMS.L2',
    'KV1_38765_30109_00_KANOPUS_20190718_080631_080722.SCN12.PMS.L2',
    'KV1_38765_30109_00_KANOPUS_20190718_080631_080722.SCN13.PMS.L2',
    'KV1_38765_30109_00_KANOPUS_20190718_080631_080722.SCN9.PMS.L2'
]

path_cover = r'd:\terratech\covers\102_2020_180_Samara_fullcover.json'
path_out = r'd:\terratech\covers\test'

suredir(path_out)

for pms_id in ids:
    get_pms_json_from_ms(path_cover, fullpath(path_out, pms_id, 'json'), pms_id)
    json_fix_datetime(fullpath(path_out, pms_id, 'json'))
c5504ef5a713f22f4977a721c2cc98a6bd5157c3
<mask token>

<mask token>
suredir(path_out)
for pms_id in ids:
    get_pms_json_from_ms(path_cover, fullpath(path_out, pms_id, 'json'), pms_id
        )
    json_fix_datetime(fullpath(path_out, pms_id, 'json'))

<mask token>
ids = ['KV1_38765_30109_00_KANOPUS_20190718_080631_080722.SCN10.PMS.L2',
    'KV1_38765_30109_00_KANOPUS_20190718_080631_080722.SCN11.PMS.L2',
    'KV1_38765_30109_00_KANOPUS_20190718_080631_080722.SCN12.PMS.L2',
    'KV1_38765_30109_00_KANOPUS_20190718_080631_080722.SCN13.PMS.L2',
    'KV1_38765_30109_00_KANOPUS_20190718_080631_080722.SCN9.PMS.L2']
path_cover = 'd:\\terratech\\covers\\102_2020_180_Samara_fullcover.json'
path_out = 'd:\\terratech\\covers\\test'
suredir(path_out)
for pms_id in ids:
    get_pms_json_from_ms(path_cover, fullpath(path_out, pms_id, 'json'), pms_id
        )
    json_fix_datetime(fullpath(path_out, pms_id, 'json'))

from geodata import *
ids = ['KV1_38765_30109_00_KANOPUS_20190718_080631_080722.SCN10.PMS.L2',
    'KV1_38765_30109_00_KANOPUS_20190718_080631_080722.SCN11.PMS.L2',
    'KV1_38765_30109_00_KANOPUS_20190718_080631_080722.SCN12.PMS.L2',
    'KV1_38765_30109_00_KANOPUS_20190718_080631_080722.SCN13.PMS.L2',
    'KV1_38765_30109_00_KANOPUS_20190718_080631_080722.SCN9.PMS.L2']
path_cover = 'd:\\terratech\\covers\\102_2020_180_Samara_fullcover.json'
path_out = 'd:\\terratech\\covers\\test'
suredir(path_out)
for pms_id in ids:
    get_pms_json_from_ms(path_cover, fullpath(path_out, pms_id, 'json'), pms_id
        )
    json_fix_datetime(fullpath(path_out, pms_id, 'json'))

from geodata import *

ids = [
    'KV1_38765_30109_00_KANOPUS_20190718_080631_080722.SCN10.PMS.L2',
    'KV1_38765_30109_00_KANOPUS_20190718_080631_080722.SCN11.PMS.L2',
    'KV1_38765_30109_00_KANOPUS_20190718_080631_080722.SCN12.PMS.L2',
    'KV1_38765_30109_00_KANOPUS_20190718_080631_080722.SCN13.PMS.L2',
    'KV1_38765_30109_00_KANOPUS_20190718_080631_080722.SCN9.PMS.L2'
]

path_cover = r'd:\terratech\covers\102_2020_180_Samara_fullcover.json'
path_out = r'd:\terratech\covers\test'

suredir(path_out)

for pms_id in ids:
    get_pms_json_from_ms(path_cover, fullpath(path_out, pms_id, 'json'), pms_id)
    json_fix_datetime(fullpath(path_out, pms_id, 'json'))