Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix band references assignment #132

Merged
merged 3 commits into from
Nov 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions lib/python/temporal/abstract_map_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -1054,6 +1054,25 @@ def remove_stds_from_register(self, stds_id, dbif=None, execute=True):

return statement

def read_band_reference_from_grass(self):
"""Read the band identifier of this map from the map metadata
in the GRASS file system based spatial database and
set the internal band identifier that should be insert/updated
in the temporal database.

Currently only implemented in RasterDataset. Otherwise
silently pass.
"""
pass

def set_band_reference(self, band_reference):
"""Set band reference identifier

Currently only implemented in RasterDataset. Otherwise
report a warning.
"""
self.msgr.warning(_("Band references can only be assigned to raster maps"))

###############################################################################

if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion lib/python/temporal/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def register_maps_in_space_time_dataset(
increment=increment, mult=count,
interval=interval)

# Set the band reference
# Set the band reference (only raster type supported)
if band_reference:
# Band reference defined in input file
# -> update raster metadata
Expand Down