remicres/sr4rs

Broken red band after SR

irkjero opened this issue · 0 comments

Hello!
Super resolution image has negative values in red channel. Please help with this.

Here is info about input image:

Driver: GTiff/GeoTIFF
Files: otbConcatenateImages.tif
Size is 10980, 10980
Coordinate System is:
PROJCRS["WGS 84 / UTM zone 37N",
BASEGEOGCRS["WGS 84",
DATUM["World Geodetic System 1984",
ELLIPSOID["WGS 84",6378137,298.257223563,
LENGTHUNIT["metre",1]]],
PRIMEM["Greenwich",0,
ANGLEUNIT["degree",0.0174532925199433]],
ID["EPSG",4326]],
CONVERSION["UTM zone 37N",
METHOD["Transverse Mercator",
ID["EPSG",9807]],
PARAMETER["Latitude of natural origin",0,
ANGLEUNIT["degree",0.0174532925199433],
ID["EPSG",8801]],
PARAMETER["Longitude of natural origin",39,
ANGLEUNIT["degree",0.0174532925199433],
ID["EPSG",8802]],
PARAMETER["Scale factor at natural origin",0.9996,
SCALEUNIT["unity",1],
ID["EPSG",8805]],
PARAMETER["False easting",500000,
LENGTHUNIT["metre",1],
ID["EPSG",8806]],
PARAMETER["False northing",0,
LENGTHUNIT["metre",1],
ID["EPSG",8807]]],
CS[Cartesian,2],
AXIS["(E)",east,
ORDER[1],
LENGTHUNIT["metre",1]],
AXIS["(N)",north,
ORDER[2],
LENGTHUNIT["metre",1]],
USAGE[
SCOPE["unknown"],
AREA["World - N hemisphere - 36°E to 42°E - by country"],
BBOX[0,36,84,42]],
ID["EPSG",32637]]
Data axis to CRS axis mapping: 1,2
Origin = (300000.000000000000000,6200040.000000000000000)
Pixel Size = (10.000000000000000,-10.000000000000000)
Metadata:
AREA_OR_POINT=Area
gml.root-instance=
<gml:FeatureCollection xmlns:gml="http://www.opengis.net/gml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengeospatial.net/gml http://schemas.opengis.net/gml/3.1.1/profiles/gmlJP2Profile/1.0.0/gmlJP2Profile.xsd">

gml:boundedBy
gml:Nullwithheld</gml:Null>
</gml:boundedBy>

gml:featureMember
gml:FeatureCollection
gml:featureMember
<gml:RectifiedGridCoverage dimension="2" gml:id="RGC0001">
gml:rectifiedGridDomain
<gml:RectifiedGrid dimension="2">
gml:limits
gml:GridEnvelope
gml:low1 1</gml:low>
gml:high10980 10980</gml:high>
</gml:GridEnvelope>
</gml:limits>
gml:axisNamex</gml:axisName>
gml:axisNamey</gml:axisName>
gml:origin
<gml:Point gml:id="P0001" srsName="urn:ogc:def:crs:EPSG::32637">
gml:pos300005 6200035</gml:pos>
</gml:Point>
</gml:origin>
<gml:offsetVector srsName="urn:ogc:def:crs:EPSG::32637">10 0</gml:offsetVector>
<gml:offsetVector srsName="urn:ogc:def:crs:EPSG::32637">0 -10</gml:offsetVector>
</gml:RectifiedGrid>
</gml:rectifiedGridDomain>
gml:rangeSet
gml:File
gml:rangeParameters
<gml:QuantityExtent uom="urn:ogc:def:crs:EPSG::32637">inapplicable inapplicable</gml:QuantityExtent>
</gml:rangeParameters>
gml:fileNamegmljp2://codestream/0</gml:fileName>
gml:fileStructureRecord Interleaved</gml:fileStructure>
</gml:File>
</gml:rangeSet>
gml:coverageFunction
gml:GridFunction
<gml:sequenceRule order="+x-y">Linear</gml:sequenceRule>
gml:startPoint1 10980</gml:startPoint>
</gml:GridFunction>
</gml:coverageFunction>
</gml:RectifiedGridCoverage>
</gml:featureMember>
</gml:FeatureCollection>
</gml:featureMember>

</gml:FeatureCollection>
Image Structure Metadata:
INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left ( 300000.000, 6200040.000) ( 35d48' 1.84"E, 55d54'15.00"N)
Lower Left ( 300000.000, 6090240.000) ( 35d52'45.19"E, 54d55' 8.50"N)
Upper Right ( 409800.000, 6200040.000) ( 37d33'21.68"E, 55d56'14.18"N)
Lower Right ( 409800.000, 6090240.000) ( 37d35'29.76"E, 54d57' 3.39"N)
Center ( 354900.000, 6145140.000) ( 36d42'24.62"E, 55d25'51.41"N)
Band 1 Block=10980x1 Type=Float32, ColorInterp=Gray
Minimum=0.000, Maximum=255.000, Mean=51.980, StdDev=38.655
Metadata:
STATISTICS_MAXIMUM=255
STATISTICS_MEAN=51.98039259158
STATISTICS_MINIMUM=0
STATISTICS_STDDEV=38.654537927522
STATISTICS_VALID_PERCENT=100
Band 2 Block=10980x1 Type=Float32, ColorInterp=Undefined
Minimum=0.000, Maximum=255.000, Mean=62.105, StdDev=31.433
Metadata:
STATISTICS_MAXIMUM=255
STATISTICS_MEAN=62.104855781829
STATISTICS_MINIMUM=0
STATISTICS_STDDEV=31.432773072425
STATISTICS_VALID_PERCENT=100
Band 3 Block=10980x1 Type=Float32, ColorInterp=Undefined
Minimum=0.000, Maximum=255.000, Mean=47.640, StdDev=29.196
Metadata:
STATISTICS_MAXIMUM=255
STATISTICS_MEAN=47.640330249395
STATISTICS_MINIMUM=0
STATISTICS_STDDEV=29.196471980448
STATISTICS_VALID_PERCENT=100
Band 4 Block=10980x1 Type=Float32, ColorInterp=Undefined
Minimum=640.000, Maximum=17218.000, Mean=3598.663, StdDev=669.163
Metadata:
STATISTICS_MAXIMUM=17218
STATISTICS_MEAN=3598.6628902023
STATISTICS_MINIMUM=640
STATISTICS_STDDEV=669.16262147957
STATISTICS_VALID_PERCENT=100