In the starter notebook, there are mapping Constants to get the corresponding pixels for Planet images (84 by 84). How were these constants derived?
And what would those constants be if one needs to map onto Sentinel-2 (41 by 41) instead?
Kindly help clarify this.
The constants are the normalized scaling factors of the Longitude & Latitude of the original bounding box on the map.
Therefore they can be used for both the RGB and the Sentinel images, while adjusting the image size accordingly.
In the starter notebook the conversion from raw (x,y) to coordinates for the RBG is:
x1 = x0 - np.round(row.x.values / CONST_X * img_jun17.shape)
y1 = y0 + np.round(row.y.values / CONST_Y * img_jun17.shape)
Where img_jun17 size is usually 84 * 84.
For the Sentinel-2, the conversion would be:
x1 = x0 - np.round(row.x.values / CONST_X * img_sentinel.shape)
y1 = y0 + np.round(row.y.values / CONST_Y * img_sentinel.shape)
Where img_sentinel size is usually 41 * 41, using the same CONST_X & CONST_Y.
I hope this answers your question.
Yes, it does. Thank you very much