0

I recently downloaded the SpaceNet Off Nadir dataset for work but found that the Pan-Sharpened images can't be opened in Python.

I think it's probably due to the colour bands being undefined but I'm not sure how to fix that.

How would I go about opening such a satellite image in Python? Is there a preprocessing step that I have to do before opening it?

I've attached the results of running the gdalinfo command on one of the Pan-sharpened images.

Pan-sharpened Image

Driver: GTiff/GeoTIFF
Files: Pan-Sharpen_Atlanta_nadir44_catid_1030010003CCD700_732701_3722439.tif
Size is 900, 900
Coordinate System is:
PROJCS["WGS 84 / UTM zone 16N",
    GEOGCS["WGS 84",
        DATUM["WGS_1984",
            SPHEROID["WGS 84",6378137,298.257223563,
                AUTHORITY["EPSG","7030"]],
            AUTHORITY["EPSG","6326"]],
        PRIMEM["Greenwich",0],
        UNIT["degree",0.0174532925199433],
        AUTHORITY["EPSG","4326"]],
    PROJECTION["Transverse_Mercator"],
    PARAMETER["latitude_of_origin",0],
    PARAMETER["central_meridian",-87],
    PARAMETER["scale_factor",0.9996],
    PARAMETER["false_easting",500000],
    PARAMETER["false_northing",0],
    UNIT["metre",1,
        AUTHORITY["EPSG","9001"]],
    AUTHORITY["EPSG","32616"]]
Origin = (732701.000000000000000,3722889.000000000000000)
Pixel Size = (0.500000000000000,-0.500000000000000)
Metadata:
  AREA_OR_POINT=Area
Image Structure Metadata:
  INTERLEAVE=BAND
Corner Coordinates:
Upper Left  (  732701.000, 3722889.000) ( 84d29'29.71"W, 33d37'13.42"N)
Lower Left  (  732701.000, 3722439.000) ( 84d29'30.13"W, 33d36'58.83"N)
Upper Right (  733151.000, 3722889.000) ( 84d29'12.26"W, 33d37'13.07"N)
Lower Right (  733151.000, 3722439.000) ( 84d29'12.68"W, 33d36'58.47"N)
Center      (  732926.000, 3722664.000) ( 84d29'21.19"W, 33d37' 5.95"N)
Band 1 Block=900x4 Type=UInt16, ColorInterp=Gray
  NoData Value=0
Band 2 Block=900x4 Type=UInt16, ColorInterp=Undefined
  NoData Value=0
Band 3 Block=900x4 Type=UInt16, ColorInterp=Undefined
  NoData Value=0
Band 4 Block=900x4 Type=UInt16, ColorInterp=Undefined
  NoData Value=0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.