sentinel2

Loading JPEG2000 Images using JAI

微笑、不失礼 提交于 2020-08-10 22:12:53
问题 I want to load a jpeg2000 image (.jp2) using Java JAI. I'm already using an older JAI version which still supports the jpeg2000. I downloaded these images from scihub.copernicus.eu. These files are rather big (up to 100 MB). I tried several different approaches: With java the standard way works like that: public class Main { public static void main(String[] args) throws IOException { String path = "C:\\temp\\B2.jp2"; File inputFile = new File(path); Image result = ImageIO.read(inputFile); } }

Converting pixel position to geographical coordinates (lat, long) for a Sentinel-1 SAR image

我的未来我决定 提交于 2019-12-06 13:27:42
问题 How can i get the geographical coordinates from x,y position in a Sentinel-1 Synthetic Aperture Radar (SAR) satellite image? For example, I can access a downloaded image info sg as from snappy import ProductIO from snappy import PixelPos path='path_name' product = ProductIO.readProduct(path) sg = product.getSceneGeoCoding() But how can I get latitude and longitude for a desired point (x, y) in sg using ESA's snap engine within Python? 回答1: Using the custom function below, we can easily

Converting pixel position to geographical coordinates (lat, long) for a Sentinel-1 SAR image

此生再无相见时 提交于 2019-12-04 19:32:16
How can i get the geographical coordinates from x,y position in a Sentinel-1 Synthetic Aperture Radar (SAR) satellite image? For example, I can access a downloaded image info sg as from snappy import ProductIO from snappy import PixelPos path='path_name' product = ProductIO.readProduct(path) sg = product.getSceneGeoCoding() But how can I get latitude and longitude for a desired point (x, y) in sg using ESA's snap engine within Python ? Using the custom function below, we can easily convert any point inside our image sg to its coordinates (latitude,longitude): def LatLon_from_XY