Subset of S1A GRDH Product

I am performing subset of S1A GRDH but I am unable to write the Image as GeoTIFF output. My code and error are pasted below

Link used for the processing: Sentinel-1-preprocessing-using-Snappy/s1_preprocessing.py at master · wajuqi/Sentinel-1-preprocessing-using-Snappy · GitHub

Error

Code

Any help will be appreciated. Thankyou

Java says “type is not supported”, but is annoyingly vague about the object with the unsupported type. If you code works for the non-undersampled image I would expect the problem is with your down_subset.

Thankyou for your answer. I will tweak the code and try again.