Calibrate SAR image with S1TB from command line

Dear all,

I need to calibrate a Sentinel image from command line by using the S1TB. My final aim is that of putting the command line in a python script. Can anyone suggest me how to do or any available documentation in order to solve this problem?

Thanks

To get a list of the operators type gpt -h
to get help on a particular operator type gpt -h operatorname

In this case,
gpt -h Calibration

Hi Iveci,

thanks for you reply. I just tried but the answer is the following:

gpt: illegal option – h

usage: gpt [-rv] [-p nparts] command [options] device …

I am on a mac. Is it different? Should I type gpt in a specific directory?

Thanks,

Giuseppe

That’s a different program. Try calling the snap gpt using the full path.

Ok. I did. Now, the anwer that I receive is the following:

Error: Calibration: Mission GeoTIFF is currently not supported for

calibration

The online command is the following:

/Applications/snap/bin/gpt Calibration
-Ssource=S1A_S3_SLC__1SDV_20150916T173102_20150916T173130_007743_00AC2C_E08D.SAFE/measurement/s1a-s3-slc-vv-20150916t173102-20150916t173130-007743-00ac2c-002.tiff

Is there the possibility to calibrate just a subset of the image?

Thanks

You cannot just use the tiff image as your input. It needs to be the whole product which is read by either using the manifest.safe as input or the product in a zip file S1A_S3_SLC__1SDV_20150916T173102_20150916T173130_007743_00AC2C_E08D.zip

If you want to create a subset or only process a single swath or polarization, you will need to create a graph.

1 Like

Now, this is the error message

Error: No product reader found for

‘/Applications/snap/S1A_S3_SLC__1SDV_20150916T173102_20150916T173130_007743_00AC2C_E08D.zip’

My command line is:

/Applications/snap/bin/gpt Calibrate

-Ssource=S1A_S3_SLC__1SDV_20150916T173102_20150916T173130_007743_00AC2C_E08D.zip

It seems that it’s looking for something in the snap directory.