I'm trying to convert Sentinel2 jp2 image to tiff using gdal_translate. When running the code:
Miguel$ gdalinfo /Users/Miguel/Desktop/S2_b1.jp2
Driver: JP2ECW/ERDAS JPEG2000 (SDK 5.2)
Files: /Users/Miguel/Desktop/S2_b1.jp2
Size is 1830, 1830
Coordinate System is:
PROJCS["WGS 84 / UTM zone 33N",
GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563,
AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]],
UNIT["degree",0.0174532925199433,
AUTHORITY["EPSG","9122"]],
AXIS["Latitude",NORTH],
AXIS["Longitude",EAST],
AUTHORITY["EPSG","4326"]],
PROJECTION["Transverse_Mercator"],
PARAMETER["latitude_of_origin",0],
PARAMETER["central_meridian",15],
PARAMETER["scale_factor",0.9996],
PARAMETER["false_easting",500000],
PARAMETER["false_northing",0],
UNIT["metre",1,
AUTHORITY["EPSG","9001"]],
AXIS["Easting",EAST],
AXIS["Northing",NORTH],
AUTHORITY["EPSG","32633"]]
Origin = (600000.000000000000000,7000020.000000000000000)
Pixel Size = (60.000000000000000,-60.000000000000000)
Metadata:
ALL_COMMENTS=Kakadu-v7.4
Kdu-Layer-Info: log_2{Delta-D(squared-error)/Delta-L(bytes)}, L(bytes)
-192.0, 3.8e+06
COLORSPACE=GREYSCALE
COMPRESSION_RATE_TARGET=3
Corner Coordinates:
Upper Left ( 600000.000, 7000020.000) ( 16d58'56.33"E, 63d 6'56.41"N)
Lower Left ( 600000.000, 6890220.000) ( 16d55' 3.52"E, 62d 7'50.52"N)
Upper Right ( 709800.000, 7000020.000) ( 19d 9'13.82"E, 63d 4' 7.06"N)
Lower Right ( 709800.000, 6890220.000) ( 19d 1' 7.24"E, 62d 5' 8.11"N)
Center ( 654900.000, 6945120.000) ( 18d 1' 5.23"E, 62d36'15.28"N)
Band 1 Block=256x256 Type=UInt16, ColorInterp=Gray
Description = Grayscale
Overviews: 915x915, 457x457, 228x228
Image Structure Metadata:
NBITS=15
ns27:~ Miguel$ gdal_translate /Users/Miguel/Desktop/S2_b1.jp2 /Users/Miguel/Desktop/S2_b1tif.tif
Input file size is 1830, 1830
0
The file is created but can´t be opened.
Any suggestion about how to proceed?
gdalinfo --version
?