La forge institutionnelle d'INRAE étant en production depuis le 10 juin 2025, nous vous invitons à y créer vos nouveaux projets.
Open in Web IDE
Quickly and easily edit multiple files in your project.
Edit
Edit this file only.
1 2 3 4 5 6 7 8 9 10 11 12 import pyotb xs_path = 'xs.tif' pan_path = 'pan.vrt' cloud_path = 'cloud_mask.GML' # Pansharpening pxs = pyotb.BundleToPerfectSensor(inp=pan_path, inxs=xs_path, method='rcs') pxs.write('pxs.tif') cloud_mask = pyotb.Rasterization(cloud_path, im=pan_path)
import pyotb xs_path = 'xs.tif' pan_path = 'pan.vrt' cloud_path = 'cloud_mask.GML' # Pansharpening pxs = pyotb.BundleToPerfectSensor(inp=pan_path, inxs=xs_path, method='rcs') pxs.write('pxs.tif') cloud_mask = pyotb.Rasterization(cloud_path, im=pan_path)