When a MODIS two-band reflectance product is inserted into a Notebook, the insertion code is automatically run. This calls plot() as the final command, but this causes an error because GBDXtools thinks the RGB bands for the 6-band product apply here.
Solutions:
have the rgb_bands only return for 6-band product
split ModisImage into different objects for each product
When a MODIS two-band reflectance product is inserted into a Notebook, the insertion code is automatically run. This calls
plot()
as the final command, but this causes an error because GBDXtools thinks the RGB bands for the 6-band product apply here.Solutions:
rgb_bands
only return for 6-band product