Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [jpeg-2000]

JPEG 2000 (JP2) is an image compression standard and coding system.

1
vote
1answer
17 views

Correcting ColorInterp on Jpeg2000 NAIP imagery using .aux.xml

Using GDAL 2.4.0 with OpenJPEG 2000 v2.3.0. gdalinfo reports all four bands of NAIP imagery as "Unknown" colorinterp. Sample image here: https://prd-tnm.s3.amazonaws.com/StagedProducts/NAIP/id_2015/...
2
votes
1answer
31 views

gdalwarp - correct for a slight spatial misregistration?

Some Sentinel-2B band images have slight spatial misalignments as I explained on the step forum. https://forum.step.esa.int/t/sentinel-2-tci-10m-level-2-images-slight-spatial-misregistrations/14235 ...
1
vote
0answers
32 views

Configure GDAL to use Open JPEG 2000 library

gdalinfo --formats shows one entry for the JPEG 2000: JPEG2000 -raster,vector- (rwv): JPEG-2000 part 1 (ISO/IEC 15444-1), based on Jasper library I don't want to use the Jasper library. I want to ...
3
votes
2answers
83 views

GeoServer not rendering GeoTIFFs after JPEG compression

I previously asked about some problems I was having converting JP2/MrSid data to GeoTIFF for use in GeoServer. It was suggested that I needed to add overview data to the 4 GB-sized GeoTIFF -- and that ...
0
votes
0answers
14 views

Use GDAL 2.4 in Geoserver ImageI/O-Ext extension on Windows

Is it possible to use any version of GDAL newer than 1.9.2 in Geoserver on Windows (64bit) to support the ImageI/O-Ext for serving JP2 images? In 2 days of test I could have the 1.9.2 version running....
1
vote
0answers
94 views

Converting JPEG2000/MrSid files to GeoTIFF using GDAL [closed]

This question is related to one previously asked: Batch convert jpeg2000 to GeoTIFF? We certainly need to batch convert some JPEG2000 files to GeoTIFF; the problem is, it doesn't seem to work. We don'...
3
votes
1answer
312 views

Does JPEG 2000 (JP2) support transparency when created?

I haven't been able to find any resources that can provide if in JPEG 2000 (JP2) transparency can be "built-in".
0
votes
0answers
51 views

Multiple memory transfers Python Script using Gdal (gdalwarp) w/ GPU on JPEG2000 Datasources

I'm looking at writing a python script that will open a jpeg2000 datasource and decompress it on the GPU, then warp that data using gdalwarp with opencl (also on the GPU) My question is, will the ...
2
votes
1answer
663 views

Performing gdal translate to png/jpeg?

I tried gdal translate to png: gdal_translate image.bsq image.jpg -of JPEG -outsize 10% 10% -scale and jpeg: gdal_translate image.bsq image.png -of PNG -outsize 10% 10% -scale jpeg looks better ...
2
votes
1answer
94 views

Elevation contours from .JP2 / .J2W files?

Is there a way in ArcGIS, Global Mapper, or CAD to generate elevation contours or any sort of surface data from a .JP2 file? I've never been provided this format before and our client is telling us ...
5
votes
1answer
468 views

Should i use jp2 or cloud optimized geotiffs to efficiently access small windows from Rasters on S3

I am building a system where we have a lot of large rasters (Sentinel-2 bands) stored in S3. A lot of this data is stored in our own buckets so we can store whatever format we find most usable. I ...
0
votes
1answer
61 views

Writing no_data_value within jpeg2000[kdu] with gdal_translate

I would like to specify a NO_DATA_VALUE within a JPEG2000 file (I use the JP2KAK driver). When I call gdal_translate -of JP2KAK -co QUALITY=100 input.vrt ouptut.jp2 , I get an aux.xml file alongside, ...
0
votes
0answers
144 views

gdal_translate consuming too much memory when writing big JPEG2000 file

I am converting a 30.000 x 30.000 vrt image (made of JPEG2000 subimages) into a single (big) JPEG2000 image, using the KDU plugin. gdal_translate -of JP2KAK -co QUALITY=100 my30000_3000.vrt myOutput....
0
votes
2answers
826 views

Use OSGeo4W shell command from python 2.7 script

I would like to convert jp2 files (sentinel-2) to geotiff format using python 2.7 on win 10. I saw some solutions using python and GDAL but they did not work for me. The only thing that did work was ...
1
vote
4answers
419 views

proper use of python subprocess for GDAL

I need to process some sentinel-2 files which are in jp2 format using python. I first want to clip the jp2 files and save the result as geotiff with the same CRS. But some of the modules I use (e.g., ...
0
votes
1answer
739 views

Creating JP2 with gdal in python

I'm using jp2 with no problem for reading and can create a copy with createcopy, but when I try to create jp2, it fails. driver = gdal.GetDriverByName("JP2OpenJPEG") dst_ds = driver.Create("test.jp2",...
4
votes
0answers
278 views

gdal_translate slightly changes output pixel values

I have used this batch script for /r %%g in (*.jp2) do gdal_translate -co COMPRESS=LZW -co NUM_THREADS=ALL_CPUS %%g %%~dpng.tif to recursively convert all my .jp2 files in .tif files. However, the ...
10
votes
3answers
2k views

Raw Sentinel 2 jp2 to RGB geotiff

I'm looking for a way to merge Sentinel 2 jp2 band files(B02, B03, B04) and fix RGB colors. All should be done with bash or python script. For my example I work on these images. Ideally the solution ...
0
votes
0answers
1k views

GDAL and JP2: Python3 installation through PIP

I have JP2 files, which I have procured from ESA Sentinel 2 website. I am interested in processing them through GDAL and Python3. I have manageed to install Python3 and GDAL. GDAL was installed ...
3
votes
1answer
419 views

gdal missing jp2 driver files how to install them

Am operating on OSX(latest) have gdal installed and rasterio (both from conda versions 2.1.3 and 1.0xxx. I can read tiff perfectly but jp2 files (aka from Sentinel-2 sat). When I search for ...
1
vote
0answers
119 views

Combine XY Coordinates with JPEG to make GEOTIFF

I have a collection of 750 high-res jpeg images that are not geo-referenced, but for each of these images I have the center point coordinate as a shapefile. How can I merge these two so that I make a ...
3
votes
1answer
1k views

How to open jp2 JPEG2000 files in R

I'm re-opening this question (Open JPEG2000 (Sentinel 2) in R). I'm working on a Mac OS X Yosemite 10.10.5. I would like to be able to read jp2 format images with R without translating it to .tif ...
3
votes
2answers
608 views

Reading JPEG2000 in R using gdal (installing gdal driver)

I currently write a code for automatic reading sentinel 2 data (JPEG2000 format), clipping it and save it a .tif. I use the language R and my system is Windows 10. My problem is to install properly a ...
1
vote
2answers
755 views

using GDAL installed using homebrew from python on OSX

I would like to work with jpeg2000 files in python but when I install GDAL using pip or conda it can't read jpeg2000s. GDAL's version is: 2.1.0 module 'osgeo.gdal' from '/Applications/anaconda/lib/...
0
votes
0answers
260 views

What's in the alpha channel in jp2 imagery file downloaded from usgs?

I'd like to know what's in the 4th channel in jp2, imagery files downloaded from USGS. In Photoshop those files open in grayscale mode, so to fix it I change them to multichannel and then RGB. But I ...
1
vote
0answers
82 views

Jpeg Image Classification

I want to perform Image Classification(JPEG Image). I loaded the image in QGIS. Everytime i perform an action, i get a screen pop-up of Co-ordinate Reference System(CRS). How should that be handled? ...
4
votes
1answer
900 views

bad results NDVI in rasterio with jp2 sentinel-2 bands

I am using 2 Sentinel-2A bands to compute the NDVI. Here is my code: import os, rasterio outfile = r'some\path\ndvi.tif' #url to the bands b4 = 'http://sentinel-s2-l1c.s3.amazonaws.com/tiles/30/T/TK/...
2
votes
0answers
159 views

Read JPEG2000 in R for subsequent random forest classification

I want to use random forests in R to classify an image. My image is in jp2 format. I read Open JPEG2000 (Sentinel 2) in R and updated my rdal: rgdal: version: 1.2-5, (SVN revision 648) Geospatial ...
1
vote
0answers
195 views

QGIS/GDAL Georeference image by CRS and corner coordinates

I have several images in JP2 format, but for whatever reason the 'geo-information' is in a different file in a bit strange format. It is the CRS (4326) and the Lat-Long coordinates of the pixels in ...
2
votes
0answers
248 views

JPEG2000 Image Mosaic with GeoServer

Using GeoServer 2.8.4, I have been successful at creating JPEG2000 image mosaics with OpenJDK 1.7.0. I use the gdal plugin and jp2k plugin and JPEG2000 images are loaded with Kakadu. I explicitly set ...
3
votes
1answer
613 views

jp2 crashes QGIS

I am trying to open a jp2 image in QGIS, running on an Ubuntu laptop. The file is only 144 mb, but when I attempt to open it my memory usage spikes (16gb) and then my entire swap partition fills up ...
5
votes
1answer
3k views

Installing jp2 driver for GDAL

I cannot open jp2-files with gdal: This works fine (the Sentinel2 metadata): ~/copernicus/S2A_MSIL2A_20170111T100351_N0204_R122_T33UWP_20170111T100351.SAFE$ gdalinfo MTD_MSIL2A.xml Driver: ...
3
votes
1answer
262 views

Convert 32 bit float raster file to JP2000?

Currently, i have a 32 bit float raster (.TIFF) and would like to convert it to JP2000 format. Is there a way to do this? I have tried Copy Raster tool and Raster to Other format tool but both ...
2
votes
2answers
3k views

gdal_translate SENTINEL jp2 to tiff

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/...
1
vote
0answers
56 views

Import Sentinel2 (jpeg2000) in R [duplicate]

I'm trying to import a Sentienl 2 image into RStudio (Version 1.0.136) using rgdal (v. 1.2-5) package. However, it seems something is wrong. My OS is macOS Sierra v. 10.12.1 S2<- readGDAL("...
-2
votes
1answer
946 views

Combining JP2 images into a single image

I'm trying to merge multiple JP2 files into a single image to manipulate. How do I do this? There images are overlapping and next to each other, the data is HiRISE observations from Mars. I've ...
10
votes
3answers
1k views

Carrying out atmospheric correction on Sentinel-2 data from Amazon Web Services?

I'm wondering what the best method is for correcting Sentinel-2 images downloaded in JP2 format (from Amazon Web Services - AWS) to BOA reflectance? As the files downloaded from the sentinel scihub in ...
2
votes
3answers
7k views

Handle .JP2 Sentinel data

I have downloaded several Sentinel 2 granules, with single bands raster data in .jp2 format, and I want to create true and false color composite images out of them. Using ArcGIS I could not open any ...
3
votes
2answers
363 views

Is Sentinel-2's JPEG2000 data using signed 15bit or unsigned 15bit pixels?

I have been working with Sentinel-2 JPEG2000 data and need to extract individual pixels for processing. One issue I have not been able to find an answer to is how the pixels are stored. I was able to ...
2
votes
1answer
156 views

Convert/Project/Mosaic JP2 to JPEG using FME?

I have hundreds of images in JPEG2000 format. I need to (in which ever order is best) mosaic, reproject and have my final file in JPG format. Dealing with 10-50GB of data per imagery files that need ...
7
votes
2answers
4k views

Open JPEG2000 (Sentinel 2) in R

Is there any way I can open Sentinel 2 JPEG2000 file (.jp2) using R? Or more specifically with the {raster} package in R? I keep getting the Error message that .jp2 is: not recognised as a ...
1
vote
0answers
253 views

How to save a georeferenced image in jpeg2000 in qgis?

I'm georeferencing an jpeg2000 image in qgis, but qgis is only capable to save it in geotif, but gdal would be able to save it in jpeg2000. How should i modify this script: "gdal_translate -of GTiff -...
2
votes
2answers
444 views

Problem opening JP2 image using GDAL (interaction of -stats and -hist flags)

I came across unexpected GDAL behaviour while working with Sentinel-2 data granules. The Sentinel data should have values between 0 and 10000 when opened correctly. However, I have noticed that when ...
4
votes
1answer
400 views

PostGIS Out of db VRT containing JPEG2000 GDAL 2.1 OpenJPEG

Build GDAL 2.1 with OpenJPEG Build PostGIS with above GDAL build Created VRT file with SENTINEL2 Driver / JP2 files. gdal_translate SENTINEL2_L2A:...
3
votes
0answers
99 views

Reading Jp2 compression level using ArcPy? [closed]

Is the compression quality level used to create a JPEG2000 image stored somewhere inside the file, and how to read it? I would like to know if my images where generated using a lossless compression ...
3
votes
1answer
78 views

QGIS Has Rendering Error on JP2000 Raster. Works in ArcGIS

I've got a large .jp2 raster file that was created using 'Mosaic to New Raster' in ArcGIS. I'm trying to open it in QGIS 2.8.6 (I've tried 2.8.14 as well) and am getting a vertical line that won't ...
1
vote
0answers
71 views

Raster Imagery Performance

I'm currently building a project that will involve using raster imagery in the field on a Windows tablet with QGIS/Intramaps Roam and haven't been able to get a satisfactory understanding of a few ...
1
vote
1answer
642 views

Make Image Pyramid from JP2 Raster

I have ~1.7 GB JP2 Buckeye that I want to serve out from Geoserver; I'd like to have it tiled so that the client won't have to redraw everytime they zoom into the map. My current understanding is that ...
0
votes
1answer
56 views

Importing non-geocoded jpeg into active window of ArcMap Data frame?

Currently when we draw a new subdivision into our GIS, we snip a .jpeg of the platted subdivision and add it to ArcMap. The un-referenced jpeg is simply dropped out in the middle of nowhere and we ...
2
votes
1answer
208 views

Setting particular program for opening hyperlink in ArcGIS for Desktop?

I have some hyperlinks set up in ArcGIS for Desktop which, when accessed, open a small mobile mapping JPEG file. Currently the images open in the default windows photo viewer but I would like for ...