eodal.utils.decorators module

Function and method decorators used to validate passed arguments.

Copyright (C) 2022 Lukas Valentin Graf

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

eodal.utils.decorators.check_band_names(f)[source]

checks if passed band name(s) are available

eodal.utils.decorators.check_metadata(f)[source]

validates if passed image metadata items are valid

eodal.utils.decorators.check_processing_level(f)[source]
eodal.utils.decorators.prepare_bbox(f)[source]

prepares a bounding box from 1:N vector features for STAC queries

eodal.utils.decorators.prepare_point_features(f)[source]

casts MultiPoint geometries to single parts before calling pixel extraction methods