Without that argument, the function does nothing.
|
def add_layer( |
|
self, |
|
variable_name: str, |
|
image: Raster, |
|
cmap: Union[Colormap, str] = None, |
|
include_COG: bool = True, |
|
include_geojpeg: bool = True) -> str: |
|
if include_COG: |
|
image.to_COG( |
|
filename=filename, |
|
compress=self.compression, |
|
preview_filename=preview_filename, |
|
preview_quality=self.layer_preview_quality, |
|
cmap=cmap |
|
) |
Without include_COG being true, no output layers are generated. This appears to have been intended as a switch to allow you to either generate COG, geoJPG, or both, at one point in time. Since then, the functionality to generate only a geoJPG was removed, and as a result the input flag should be removed as well.
Link to the original change for those with access to the historical repositories:
https://github.jpl.nasa.gov/gregory-repositories/ECOSTRESS-ROSES/commit/7cc4340331ec1f7871e8c4b05dff0afb477cd438#diff-65cf83642642d79b15a00c126c8af28da66b0ebdc5277aa0e7b4ddb02ca03b26
Without that argument, the function does nothing.
ECOv003-granules/ECOv003_granules/tiled_granule.py
Lines 215 to 221 in 0d557ed
ECOv003-granules/ECOv003_granules/tiled_granule.py
Lines 236 to 243 in 0d557ed
Without
include_COGbeing true, no output layers are generated. This appears to have been intended as a switch to allow you to either generate COG, geoJPG, or both, at one point in time. Since then, the functionality to generate only a geoJPG was removed, and as a result the input flag should be removed as well.Link to the original change for those with access to the historical repositories:
https://github.jpl.nasa.gov/gregory-repositories/ECOSTRESS-ROSES/commit/7cc4340331ec1f7871e8c4b05dff0afb477cd438#diff-65cf83642642d79b15a00c126c8af28da66b0ebdc5277aa0e7b4ddb02ca03b26