Skip to content

Commit b561920

Browse files
committed
fixed mistake in geoprocessing routine
1 parent 3f3470e commit b561920

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rs_tools/_src/geoprocessing/modis/geoprocessor_modis.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ def preprocess_fn_radiances(self, file: List[str]) -> xr.Dataset:
9898
filenames=file
9999
)
100100
# Load radiance bands
101-
channels = get_modis_channel_numbers()
101+
# channels = get_modis_channel_numbers() # This assigns the wrong order of bands
102+
channels = list(MODIS_WAVELENGTHS.keys())
102103
scn.load(channels, generate=False, calibration='radiance')
103104

104105
# change to xarray data

0 commit comments

Comments
 (0)