Hey guys. I started to play with snappy and everything is fine. I am using the GPT - h for finding functions and it’s feasible. However, I am not quite sure how to find that some operation was successful.
Sentinel-1 processing workflow:
product = ProductIO.readProduct(f"{s1_directory_path}/{s1_list[0]}")
# Apply orbit file
parameters = HashMap()
parameters.put('Apply-Orbit-File', True)
output = GPF.createProduct('Apply-Orbit-File', parameters, product)
print(output.getName())
This seems that is okay from the changed name (Orb)
'S1A_IW_GRDH_1SDV_20220722T170016_20220722T170041_044216_0546FE_C0F3_Orb'
However…
# Thermal noise removal
parameters = HashMap()
parameters.put('borderLimit', 600)
parameters.put('trimThreshold', 0.5)
parameters.put('selectedPolarisations', 'I am Barbar Conan band')
output = GPF.createProduct('Remove-GRD-Border-Noise', parameters, source)
print(output.getName())
It will give you the same name of file and of course I am Barbar Conan band is not a valid band (Python will not raise the error). That would be something from list [‘Amplitude_VH’, ‘Intensity_VH’, ‘Amplitude_VV’, ‘Intensity_VV’]. However, with chosen parameter from the list, the result is the same. So what is the best approach to finding out that something is not working in the right way?
Thank you!