Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- output = path + folder + "\"
- timestamp = folder.split("_")[4]
- date = timestamp[:8]
- sentinel_1 = ProductIO.readProduct(output)
- print sentinel_1
- pols = ['VH','VV']
- for p in pols:
- polarization = p
- wkt = 'POLYGON((17.06138 98.4766, 17.07500 98.55027, 17.10500 98.46833, 17.11833 98.54166))'
- geom = WKTReader().read(wkt)
- parameters = HashMap()
- parameters.put('geoRegion', geom)
- parameters.put('outputImageScaleInDb', False)
- subset = output+date+"_subset_" + polarization
- target_1 = GPF.createProduct("Subset", parameters, sentinel_1)
- ProductIO.writeProduct(target_1, subset, 'BEAM-DIMAP')
- geom = WKTReader().read(wkt)
Add Comment
Please, Sign In to add comment