diff --git a/python/grass/temporal/__init__.py b/python/grass/temporal/__init__.py index 2048b66ccf0..0ec8bc42395 100644 --- a/python/grass/temporal/__init__.py +++ b/python/grass/temporal/__init__.py @@ -1,33 +1,402 @@ -from .abstract_dataset import * -from .abstract_map_dataset import * -from .abstract_space_time_dataset import * -from .aggregation import * -from .base import * -from .c_libraries_interface import * -from .core import * -from .datetime_math import * -from .extract import * -from .factory import * -from .gui_support import * -from .list_stds import * -from .mapcalc import * -from .metadata import * -from .open_stds import * -from .register import * -from .sampling import * -from .space_time_datasets import * -from .spatial_extent import * -from .spatial_topology_dataset_connector import * -from .spatio_temporal_relationships import * -from .stds_export import * -from .stds_import import * -from .temporal_algebra import * -from .temporal_extent import * -from .temporal_granularity import * -from .temporal_operator import * -from .temporal_raster3d_algebra import * -from .temporal_raster_algebra import * -from .temporal_raster_base_algebra import * -from .temporal_topology_dataset_connector import * -from .temporal_vector_algebra import * -from .univar_statistics import * +from .abstract_dataset import ( + AbstractDataset, + AbstractDatasetComparisonKeyEndTime, + AbstractDatasetComparisonKeyStartTime, +) +from .abstract_map_dataset import AbstractMapDataset +from .abstract_space_time_dataset import AbstractSpaceTimeDataset +from .aggregation import aggregate_by_topology, aggregate_raster_maps, collect_map_names +from .base import ( + AbstractSTDSRegister, + DatasetBase, + DictSQLSerializer, + Raster3DBase, + Raster3DSTDSRegister, + RasterBase, + RasterSTDSRegister, + SQLDatabaseInterface, + STDSBase, + STR3DSBase, + STRDSBase, + STVDSBase, + VectorBase, + VectorSTDSRegister, +) +from .c_libraries_interface import CLibrariesInterface, RPCDefs, c_library_server +from .core import ( + DBConnection, + SQLDatabaseInterfaceConnection, + create_temporal_database, + get_available_temporal_mapsets, + get_current_gisdbase, + get_current_location, + get_current_mapset, + get_database_info_string, + get_enable_mapset_check, + get_enable_timestamp_write, + get_raise_on_error, + get_sql_template_path, + get_tgis_backend, + get_tgis_c_library_interface, + get_tgis_database, + get_tgis_database_string, + get_tgis_db_version, + get_tgis_db_version_from_metadata, + get_tgis_dbmi_paramstyle, + get_tgis_message_interface, + get_tgis_metadata, + get_tgis_version, + init, + init_dbif, + profile_function, + set_raise_on_error, + stop_subprocesses, + upgrade_temporal_database, +) +from .datetime_math import ( + adjust_datetime_to_granularity, + check_datetime_string, + compute_datetime_delta, + create_numeric_suffix, + create_suffix_from_datetime, + create_time_suffix, + datetime_to_grass_datetime_string, + decrement_datetime_by_string, + increment_datetime_by_string, + modify_datetime, + modify_datetime_by_string, + relative_time_to_time_delta, + relative_time_to_time_delta_seconds, + string_to_datetime, + time_delta_to_relative_time, + time_delta_to_relative_time_seconds, +) +from .extract import ( + extract_dataset, + run_mapcalc2d, + run_mapcalc3d, + run_vector_extraction, +) +from .factory import dataset_factory +from .gui_support import tlist, tlist_grouped +from .list_stds import get_dataset_list, list_maps_of_stds +from .mapcalc import dataset_mapcalculator +from .metadata import ( + Raster3DMetadata, + RasterMetadata, + RasterMetadataBase, + STDSMetadataBase, + STDSRasterMetadataBase, + STR3DSMetadata, + STRDSMetadata, + STVDSMetadata, + VectorMetadata, +) +from .open_stds import ( + check_new_map_dataset, + check_new_stds, + open_new_map_dataset, + open_new_stds, + open_old_stds, +) +from .register import ( + assign_valid_time_to_map, + register_map_object_list, + register_maps_in_space_time_dataset, +) +from .sampling import sample_stds_by_stds_topology +from .space_time_datasets import ( + Raster3DDataset, + RasterDataset, + SpaceTimeRaster3DDataset, + SpaceTimeRasterDataset, + SpaceTimeVectorDataset, + VectorDataset, +) +from .spatial_extent import ( + Raster3DSpatialExtent, + RasterSpatialExtent, + SpatialExtent, + STR3DSSpatialExtent, + STRDSSpatialExtent, + STVDSSpatialExtent, + VectorSpatialExtent, +) +from .spatial_topology_dataset_connector import SpatialTopologyDatasetConnector +from .spatio_temporal_relationships import ( + SpatioTemporalTopologyBuilder, + count_temporal_topology_relationships, + create_temporal_relation_sql_where_statement, + print_spatio_temporal_topology_relationships, + print_temporal_topology_relationships, + set_spatial_relationship, + set_temoral_relationship, +) +from .stds_export import export_stds +from .stds_import import import_stds +from .temporal_algebra import ( + FatalError, + GlobalTemporalVar, + TemporalAlgebraLexer, + TemporalAlgebraParser, +) +from .temporal_extent import ( + AbsoluteTemporalExtent, + Raster3DAbsoluteTime, + Raster3DRelativeTime, + RasterAbsoluteTime, + RasterRelativeTime, + RelativeTemporalExtent, + STDSAbsoluteTime, + STDSRelativeTime, + STR3DSAbsoluteTime, + STR3DSRelativeTime, + STRDSAbsoluteTime, + STRDSRelativeTime, + STVDSAbsoluteTime, + STVDSRelativeTime, + TemporalExtent, + VectorAbsoluteTime, + VectorRelativeTime, +) +from .temporal_granularity import ( + check_granularity_string, + compute_absolute_time_granularity, + compute_common_absolute_time_granularity, + compute_common_absolute_time_granularity_simple, + compute_common_relative_time_granularity, + compute_relative_time_granularity, + gcd, + gcd_list, + get_time_tuple_function, + gran_plural_unit, + gran_singular_unit, + gran_to_gran, +) + +# From temporal_operator.py +from .temporal_operator import TemporalOperatorLexer, TemporalOperatorParser + +# From temporal_raster3d_algebra.py +from .temporal_raster3d_algebra import TemporalRaster3DAlgebraParser + +# From temporal_raster_algebra.py +from .temporal_raster_algebra import TemporalRasterAlgebraParser + +# From temporal_raster_base_algebra.py +from .temporal_raster_base_algebra import ( + TemporalRasterAlgebraLexer, + TemporalRasterBaseAlgebraParser, +) +from .temporal_topology_dataset_connector import TemporalTopologyDatasetConnector +from .temporal_vector_algebra import ( + TemporalVectorAlgebraLexer, + TemporalVectorAlgebraParser, +) +from .univar_statistics import ( + compute_univar_stats, + print_gridded_dataset_univar_statistics, + print_vector_dataset_univar_statistics, +) + +__all__ = [ + "AbsoluteTemporalExtent", + # From abstract_dataset + "AbstractDataset", + "AbstractDatasetComparisonKeyEndTime", + "AbstractDatasetComparisonKeyStartTime", + # From abstract_map_dataset + "AbstractMapDataset", + "AbstractSTDSRegister", + # From abstract_space_time_dataset + "AbstractSpaceTimeDataset", + "CLibrariesInterface", + "DBConnection", + "DatasetBase", + # From base + "DictSQLSerializer", + "FatalError", + "GlobalTemporalVar", + # From c_libraries_interface + "RPCDefs", + "Raster3DAbsoluteTime", + "Raster3DBase", + "Raster3DDataset", + "Raster3DMetadata", + "Raster3DRelativeTime", + "Raster3DSTDSRegister", + "Raster3DSpatialExtent", + "RasterAbsoluteTime", + "RasterBase", + # From space_time_datasets + "RasterDataset", + "RasterMetadata", + # From metadata + "RasterMetadataBase", + "RasterRelativeTime", + "RasterSTDSRegister", + "RasterSpatialExtent", + "RelativeTemporalExtent", + "SQLDatabaseInterface", + "SQLDatabaseInterfaceConnection", + "STDSAbsoluteTime", + "STDSBase", + "STDSMetadataBase", + "STDSRasterMetadataBase", + "STDSRelativeTime", + "STR3DSAbsoluteTime", + "STR3DSBase", + "STR3DSMetadata", + "STR3DSRelativeTime", + "STR3DSSpatialExtent", + "STRDSAbsoluteTime", + "STRDSBase", + "STRDSMetadata", + "STRDSRelativeTime", + "STRDSSpatialExtent", + "STVDSAbsoluteTime", + "STVDSBase", + "STVDSMetadata", + "STVDSRelativeTime", + "STVDSSpatialExtent", + "SpaceTimeRaster3DDataset", + "SpaceTimeRasterDataset", + "SpaceTimeVectorDataset", + # From spatial_extent + "SpatialExtent", + # From spatial_topology_dataset_connector + "SpatialTopologyDatasetConnector", + # From spatio_temporal_relationships + "SpatioTemporalTopologyBuilder", + # From temporal_algebra + "TemporalAlgebraLexer", + "TemporalAlgebraParser", + # From temporal_extent + "TemporalExtent", + # From temporal_operator + "TemporalOperatorLexer", + "TemporalOperatorParser", + # From temporal_raster3d_algebra + "TemporalRaster3DAlgebraParser", + # From temporal_raster_base_algebra + "TemporalRasterAlgebraLexer", + # From temporal_raster_algebra + "TemporalRasterAlgebraParser", + "TemporalRasterBaseAlgebraParser", + # From temporal_topology_dataset_connector + "TemporalTopologyDatasetConnector", + # From temporal_vector_algebra + "TemporalVectorAlgebraLexer", + "TemporalVectorAlgebraParser", + "VectorAbsoluteTime", + "VectorBase", + "VectorDataset", + "VectorMetadata", + "VectorRelativeTime", + "VectorSTDSRegister", + "VectorSpatialExtent", + "adjust_datetime_to_granularity", + "aggregate_by_topology", + "aggregate_raster_maps", + "assign_valid_time_to_map", + "c_library_server", + "check_datetime_string", + # From temporal_granularity + "check_granularity_string", + "check_new_map_dataset", + "check_new_stds", + # From aggregation + "collect_map_names", + "compute_absolute_time_granularity", + "compute_common_absolute_time_granularity", + "compute_common_absolute_time_granularity_simple", + "compute_common_relative_time_granularity", + "compute_datetime_delta", + "compute_relative_time_granularity", + # From univar_statistics + "compute_univar_stats", + "count_temporal_topology_relationships", + "create_numeric_suffix", + "create_suffix_from_datetime", + "create_temporal_database", + "create_temporal_relation_sql_where_statement", + "create_time_suffix", + # From factory + "dataset_factory", + # From mapcalc + "dataset_mapcalculator", + "datetime_to_grass_datetime_string", + "decrement_datetime_by_string", + # From stds_export + "export_stds", + # From extract + "extract_dataset", + "gcd", + "gcd_list", + "get_available_temporal_mapsets", + "get_current_gisdbase", + "get_current_location", + "get_current_mapset", + "get_database_info_string", + # From list_stds + "get_dataset_list", + "get_enable_mapset_check", + "get_enable_timestamp_write", + "get_raise_on_error", + "get_sql_template_path", + "get_tgis_backend", + "get_tgis_c_library_interface", + "get_tgis_database", + "get_tgis_database_string", + "get_tgis_db_version", + "get_tgis_db_version_from_metadata", + "get_tgis_dbmi_paramstyle", + "get_tgis_message_interface", + "get_tgis_metadata", + "get_tgis_version", + "get_time_tuple_function", + "gran_plural_unit", + "gran_singular_unit", + "gran_to_gran", + # From stds_import + "import_stds", + "increment_datetime_by_string", + "init", + "init_dbif", + "list_maps_of_stds", + "modify_datetime", + "modify_datetime_by_string", + "open_new_map_dataset", + "open_new_stds", + # From open_stds + "open_old_stds", + "print_gridded_dataset_univar_statistics", + "print_spatio_temporal_topology_relationships", + "print_temporal_topology_relationships", + "print_vector_dataset_univar_statistics", + # From core + "profile_function", + "register_map_object_list", + # From register + "register_maps_in_space_time_dataset", + # From datetime_math + "relative_time_to_time_delta", + "relative_time_to_time_delta_seconds", + "run_mapcalc2d", + "run_mapcalc3d", + "run_vector_extraction", + # From sampling + "sample_stds_by_stds_topology", + "set_raise_on_error", + "set_spatial_relationship", + "set_temoral_relationship", + "set_temporal_relationship", + "stop_subprocesses", + "string_to_datetime", + "time_delta_to_relative_time", + "time_delta_to_relative_time_seconds", + "tlist", + # From gui_support + "tlist_grouped", + "upgrade_temporal_database", +]