<div dir="ltr"><div>Hi devs<br><br>I'm testing Martin's new add-on, r.sentinel.import. I created an UTM21S location for my data and imported them with:<br><br>r.sentinel.import input=Downloads/S2B_MSIL1C_20171212T134159_N0206_R124_T21KZP_20171212T201017.SAFE/GRANULE/L1C_T21KZP_A004011_20171212T134158/IMG_DATA/<br><br>The problem arose when I tried to use i.color.enhance to display an RGB: I got blank screens, so I thought there must be something with the range of values.<br><br>r.univar map=T21KZP_20171212T134159_B02@PERMANENT                               <br>total null and non-null cells: 120560400<br>total null cells: 0<br>Of the non-null cells:<br>----------------------<br>n: 120560400<br>minimum: 15<br>maximum: 17547<br>range: 17532<br>mean: 913.778<br>mean of absolute values: 913.778<br>standard deviation: 134.322<br>variance: 18042.4<br>variation coefficient: 14.6996 %<br>sum: 110165471238<br><br></div>that already seemed odd... <br>I checked the original band2 jp2 file... Values are different...<br><div><br>gdalinfo T21KZP_20171212T134159_B02.jp2<br>Driver: JP2OpenJPEG/JPEG-2000 driver based on OpenJPEG library<br>Files: T21KZP_20171212T134159_B02.jp2<br>...<br>Band 1 Block=1024x1024 Type=UInt16, ColorInterp=Gray<br>  Min=602.000 Max=1576.000 <br>  Minimum=602.000, Maximum=1576.000, Mean=916.799, StdDev=123.509<br>  Overviews: 5490x5490, 2745x2745, 1372x1372, 686x686<br>  Overviews: arbitrary<br>  Metadata:<br>    STATISTICS_MAXIMUM=1576<br>    STATISTICS_MEAN=916.7992<br>    STATISTICS_MINIMUM=602<br>    STATISTICS_STDDEV=123.50943477872<br>  Image Structure Metadata:<br>    COMPRESSION=JPEG2000<br>    NBITS=15<br><br></div><div>Just to check, I imported with r.in.gdal and I'm getting exactly the same as with r.sentinel.import. <br><br></div><div>What am I doing wrong here? Why would r.in.gdal change values like that? What else needs to be set? I don't remember to have this problem before and it happens in all bands as far as I've checked.<br> <br></div><div>Ah, I'm using trunk r72203<br></div><div><br></div><div>Thanks in advance for any help :)<br><br></div><div>Cheers, <br></div><div>Vero<br></div><div><br><br><br></div></div>