USF-IMARS / wv-land-cover

:earth_americas: Processing scripts for decision-tree land use classification on worldview 2 imagery
5 stars 5 forks source link

Spectra WV2 images in RB change abruptly in 2018 #49

Open 7yl4r opened 10 months ago

7yl4r commented 10 months ago

Looking at a time-series extraction of some land-cover points, some temporal features can be easily seen:

image

Looking specifically at the "mud flats" (lower time-series plot), we can inspect the two images nearest to the sudden decrease in multiple bands seen around the 2018 mark:

image

image

In these screenshots:

The difference between these true-color views is huge. The max shown on each histogram x-axis is approximately the same (around .06). I cannot explain the difference.

Scaling?

Associated with each image is a set of ABSCALFACTOR_BAND_* properties for each band. These images should have been scaled prior to the upload by processing done on CIRCE, however, we can try applying the scale factor in GEE to check. The following is a mapping between band layer names in the images and ABSCALFACTOR names:

  var bandNameMap = {
    b1: "ABSCALFACTOR_BAND_C",  // CA
    b2: "ABSCALFACTOR_BAND_B",  // Blue
    b3: "ABSCALFACTOR_BAND_G",  // Green
    b4: "ABSCALFACTOR_BAND_Y",  // Yellow
    b5: "ABSCALFACTOR_BAND_R",  // Red
    b6: "ABSCALFACTOR_BAND_RE", // Red Edge
    b7: "ABSCALFACTOR_BAND_N",  // NIR
    b8: "ABSCALFACTOR_BAND_N2", // NIR2
  };
  var bandNameMap = {
    b8: "ABSCALFACTOR_BAND_C",  // CA
    b7: "ABSCALFACTOR_BAND_B",  // Blue
    b6: "ABSCALFACTOR_BAND_G",  // Green
    b5: "ABSCALFACTOR_BAND_Y",  // Yellow
    b4: "ABSCALFACTOR_BAND_R",  // Red
    b3: "ABSCALFACTOR_BAND_RE", // Red Edge
    b2: "ABSCALFACTOR_BAND_N",  // NIR
    b1: "ABSCALFACTOR_BAND_N2", // NIR2
  };

After trying either scaling map above on the images major differences between the images remain, and the color get all messed up. This implies that the scaling has already been done as expected.

Code being used to generate these views is here.