# Messages for SITS
#
.accuracy_area_assess: "validation data has more classes than labelled cube"
.apply: "invalid column name"
.as_crs: "invalid CRS value"
.apply_input_bands: "required bands not available in cube"
.band_rename: "all input bands must be provided"
.bbox_as_sf: "reprojecting to EPSG:3426 due to multiple CRS\n (use 'as_crs' to reproject to a different CRS)"
.bbox_from_tbl: "no CRS informed, assuming EPSG:4326"
.bbox_from_sf: "reprojecting to EPSG:3426 due to multiple CRS\n (use 'as_crs' to reproject to a different CRS)"
.bbox_type: "cannot extract bbox from object of class "
.by: "col parameter not found in data columns"
.cdse_stac_fix_items: "invalid band in CDSE configuration"
.check_apply: "invalid function provided to be applied"
.check_available_bands: 'requested band(s) not available in the cube'
.check_band_in_bands: "requested band(s) not available"
.check_bands_collection: "invalid bands in collection definition"
.check_bbox: "input is not a valid bbox"
.check_bw_rgb_bands: "either 'band' parameter or 'red', 'green', and 'blue' parameters should be informed"
.check_content_data_frame: "invalid input - data frame without content"
.check_content_vector: "invalid input - no content avaliable in vector"
.check_crs: "invalid crs information in image files"
.check_cube_bands: "some bands are not available in data cube - check 'bands' parameter"
.check_cube_dates_range: "some dates are not available in data cube - check 'dates' parameter"
.check_cube_tiles: "one or more requested tiles are not part of the data cube"
.check_cubes_match: "cubes do not match - need same bands, tiles, timeline, labels"
.check_cubes_same_bbox: "data cubes do not share the same bounding box"
.check_cubes_same_labels: "data cubes do not have the same labels"
.check_cubes_same_size: "data cubes do not have the same size"
.check_cubes_same_tiles: "data cubes do not have the same number of tiles"
.check_cubes_same_timeline: "data cubes do not share the same timeline"
.check_cube_is_regular: "cube is not regular - run sits_regularize() first"
.check_date_parameter: "invalid date format - dates should follow year-month-day: YYYY-MM-DD"
.check_dates_timeline: "dates are not part of tile timeline"
.check_discriminator: discriminators available are 'one_of', 'any_of', 'all_of', 'none_of', and 'exactly'
.check_dist_method: "invalid distance method for dendrogram calculation"
.check_empty_data_frame: "no intersection between roi and cube"
.check_endmembers_bands: "bands required by endmembers are not available in data cube"
.check_endmembers_frac: "fractions for all endmembers should be provided"
.check_endmembers_parameter: "invalid endmembers parameter"
.check_endmembers_tbl: "invalid endmembers parameter"
.check_error_matrix_area_dim: "invalid dimensions in error matrix"
.check_error_matrix_square: "The error matrix is not square"
.check_error_matrix_names: "row names do match colnames in error matrix"
.check_error_matrix_area: "mismatch between error matrix and area vector"
.check_error_matrix_labels: "Mismatch between names in error matrix and in area vector"
.check_expression: "invalid expression value"
.check_env_var: "invalid environmental variable"
.check_filter_fn: "invalid function - please use sits_whittaker() or sits_sgolay()"
.check_file: "invalid file name"
.check_file_extension: "unsupported file extension"
.check_file_missing: "file does not exist:"
.check_file_writable: "cannot write file to disk"
.check_find_class: "cube is not properly configured"
.check_grid_system: "requested grid system not supported"
.check_netrc_gdal: "invalid configuration file\nTo learn more, see instructions in Chapter 4 of the online book"
.check_netrc_gdal_var: "netrc environment variable configuration detected (GDAL_HTTP_NETRC_FILE)\n please, make sure it is available to all R sessions. To learn more, see the instructions in Chapter 4 of the online book"
.check_gpu_memory: "when using GPU: gpu_memory must be informed"
.check_gpu_memory_size: "not enough GPU memory - should have at least 2GB memory free to use"
.check_is_class_cube: "data should be a classified cube - check 'cube' parameter"
.check_is_probs_cube: "data should be a probability cube - check 'cube' parameter"
.check_is_raster_cube: "data should be a raster cube - check 'cube' parameter"
.check_is_results_cube: "results cube should have one band only - check 'cube' parameter"
.check_is_results_cube_probs: "'labels' parameter should be provided"
.check_is_results_cube_class: "'labels' parameter should be provided as a named vector with at least 2 classes"
.check_is_sits_accuracy: "input does not contain accuracy information\n please run sits_accuracy() first"
.check_is_sits_model: "invalid model - please run sits_train() function"
.check_is_vector_cube: "data should be a vector cube - check 'cube' parameter"
.check_is_uncert_cube: "data should be an uncertainity cube - check 'cube' parameter"
.check_is_variance_cube: "data should be a variance cube - check 'cube' parameter"
.check_labels: "missing labels in some or all of reference data"
.check_labels_class_cube: "labels do not match number of classes in cube"
.check_labels_probs_cube: "labels are not available in probs cube"
.check_labels_named: "for results cubes, a named label vector must be provided"
.check_legend: "when defined as a tibble, legend needs name and color columns"
.check_legend_position: "legend position is either inside or outside"
.check_length: "invalid length for parameter"
.check_lgl: "invalid logical value"
.check_linkage_method: "invalid linkage method for dendrogram calculation"
.check_local_items: "invalid items for local cubes"
.check_model_has_stats: "model trained with version 1.2 or earlier was detected. Please retrain it using the new sits api."
.check_names_is_named: "value should have names"
.check_names_is_unnamed: "input should be unnamed"
.check_names_unique: "names should be unique"
.check_na_null_parameter: "value cannot be NA or NULL"
.check_na_parameter: "NA value not allowed"
.check_new_band_dots: "invalid extra arguments in band"
.check_new_class_band_dots: "invalid extra arguments in class band"
.check_new_cloud_band_dots: "invalid extra arguments in cloud band"
.check_null_parameter: "NULL value not allowed"
.check_opt_hparams: "invalid hyperparameters provided in optimizer"
.check_output_dir: "invalid output_dir - check 'output_dir' exists and is writable"
.check_palette: "palette not available - please run cols4all::c4a_palettes() to find a palette"
.check_period: "invalid period format - valid examples are P16D, P1M, P1Y"
.check_point: "input should be a 2D point"
.check_probs_cube_lst: "invalid list of probability cubes - check 'cubes' parameter"
.check_predicted: "input data without predicted values\n have the samples been classified?"
.check_predictors: "invalid predictors data - check training samples for consistency"
.check_pred_ref_match: "predicted and reference labels do not match\n error when retrieving values from classified cube"
.check_pred_ref_match_bands: "some bands of training samples are not in the data cube\n run sits_select() before building the model"
.check_pred_ref_match_timeline: "mismatch btw timelines of training samples and data cube - check training samples"
.check_processed_values: "size of processed matrix is different from number of input pixels"
.check_processed_labels: "number of columns of result is different from the number of cube labels"
.check_progress: "progress must be either TRUE or FALSE"
.check_raster_block: "invalid block"
.check_raster_bbox: "invalid bounding box"
.check_raster_bbox_tolerance: "bounding box is invalid according to tolerance"
.check_raster_cube_files: "Invalid data cube - missing files"
.check_recovery: "recovery mode: data already exists. To produce new data, change output_dir or version"
.check_roi: "invalid specification of ROI - check function documentation"
.check_roi_tiles: "either roi or tiles must be provided, but both are not allowed"
.check_samples: "invalid samples - missing columns and/or data rows"
.check_samples_cluster: "cluster id missing in samples - run sits_cluster() first"
.check_samples_default: "data cannot be converted to tibble"
.check_samples_tile_match_bands: "tile bands do not match samples bands"
.check_samples_tile_match_timeline: "tile timeline does not match samples timeline"
.check_samples_timeline: "samples contain timelines with different lengths"
.check_samples_train: "missing or NA labels in samples data - verify 'label' column"
.check_samples_ts: "missing time series column in data"
.check_samples_ts_index: "missing time Index in time series data"
.check_samples_ts_bands: "all time series should have the same bands"
.check_samples_validation: "invalid validation samples"
.check_smoothness: "smoothness must be either one value or a named vector with a value for each label"
.check_snic_grid: "grid definition not supported by the SNIC algorithm"
.check_source: "data provider is not available or sits is not configured to access it"
.check_source_collection: "collection is not available in data provider or sits is not configured to access it"
.check_source_collection_token: "missing access token for collection"
.check_stac_items: "collection search returned no items\n check 'roi', 'start_date', 'end_date', and 'tile' parameters"
.check_shp_attribute: "attribute missing in shapefile - check 'shp_attr' parameter"
.check_samples_bands: "provided band(s) is/are not available in samples"
.check_samples_dates_range: "provided dates(s) is/are out of range in samples"
.check_samples_dates: "provided dates(s) is/are not in samples"
.check_tiles: "no tiles found in directory for local cube files - check 'data_dir' parameter"
.check_tiles_source_collection: "tiles need to be defined when using this collection"
.check_uncert_cube_lst: "invalid list of uncertainty cubes - check 'uncert_cubes' parameter"
.check_unique_period: "invalid period in data cube"
.check_window_size: "window_size must be an odd number"
.check_validation_file: "invalid or missing CSV validation file for accuracy assessment"
.check_vector_object: "segmentation did not produce a valid vector object"
.check_version: "version should be a lower case character vector with no underlines"
.cluster_rand_index: "input should be a 2-dimensional table."
.colors_get: "invalid color values"
.colors_get_missing: "missing colors for labels"
.colors_get_missing_palette: "palette for missing colors is"
.conf_add_color_table: "invalid color table - missing either name or hex columns"
.conf_internals_file: "unable to find config_internals file"
.conf_merge_legends: "user defined legends already exist in sits - see sits_colors_show()"
.conf_merge_legends_colors: "invalid color names in user legends"
.conf_merge_legends_user: "invalid user legends"
.conf_messages_file: "unable to find config_messages file"
.conf_new_band: "unable to configure parameters for new band"
.conf_new_cloud_band: "unable to configure parameters for new cloud band"
.conf_new_class_band: "unable to configure parameters for new class band"
.conf_new_collection: "invalid collection value"
.conf_new_collection_bands: "invalid value for bands"
.conf_new_collection_metadata: "invalid value for metadata_search"
.conf_new_collection_metadata_args: "invalid arguments for collection"
.conf_new_collection_satellite: "invalid value for satellite"
.conf_new_collection_sensor: "invalid value for sensor"
.conf_new_source: "unable to include new source information"
.conf_new_source_collections: "invalid collections parameter"
.conf_new_source_collections_args: "invalid extra args in collections"
.conf_new_source_s3class: "invalid s3_class parameter"
.conf_new_source_service: "invalid service parameter"
.conf_new_source_url: "invalid url parameter"
.conf_parse_info: "parse_info must include tile, date, and band"
.conf_parse_info_results: "parse_info must include tile, start_date, end_date, and band"
.conf_set_options: "error when setting configuration options"
.conf_set_options_gdal_creation: "invalid 'gdal_creation_options' parameter"
.conf_set_options_source: "invalid source - see sits_list_collections()"
.conf_set_user_file: "invalid user configuration file"
.conf_source_files: "unable to find config_sources files"
.conf_user_env_var: "invalid configuration file informed in SITS_CONFIG_USER_FILE"
.crop: "unable to crop cube to ROI - please ensure input is a raster cube and ROI is set correctly"
.cube_bands: "input is not a valid data cube"
.cube_collection: "input is not a valid data cube"
.cube_find_class: "input is not a valid data cube"
.cube_filter_spatial: "spatial region does not intersect cube"
.cube_filter_interval: "informed interval does not interesect cube"
.cube_filter_dates: "provided dates do not match the cube timeline"
.cube_labels: "input is not a valid data cube"
.cube_source: "cube has different sources"
.cube_token_flush_terrascope: "it was not possible to remove terrascope token"
.cube_token_generator: "invalid token to access data provider"
.cube_token_generator_terrascope: "invalid terrascope credentials"
.data_get_ts: "unable to retrieve time series from data cube"
.data_by_chunks: "no time series were extracted\n check samples and data cube"
.data_by_tile: "no time series were extracted\n check samples and data cube"
.debug: "invalid flag when entering debug mode"
.endmembers_type: "invalid endmembers parameter type - should be a tibble or a CSV file"
.fi_eo_from_files: "number of files does not match number of bands"
.fi_filter_interval: "no dates found in interval "
.fi_rename_bands: "invalid renaming parameter"
.fi_type: "invalid file info"
.function_not_available: "function not available in sits"
.gc_create_cube_view: "function accepts only one tile at a time"
.gc_get_valid_timeline: "timelines of cube tiles do not intersect"
.gc_save_raster_cube: "no image was created - please check parameters"
.gc_regularize: "invalid tile"
.gdal_params: "GDAL parameters should be named"
.invalid_discriminator: "invalid condition"
.is_eq: "tolerance parameter should be >= 0"
.is_lt: "tolerance parameter should be >= 0"
.is_gt: "tolerance parameter should be >= 0"
.jobs_max_multicores: "please increase 'memsize' parameter"
.kohonen_map: "Mapping new data using data layers not involved in training"
.kohonen_map_user_weights: "All user weights must be positive"
.kohonen_supersom: "All user weights must be positive"
.local_cube_items_bands: "wrong bands requested - please review input parameters"
.local_cube_items_version: "wrong version requested - please review input parameters"
.local_cube_items_raster_new: "could not find files in local directory - check parse_info and data_dir parameters"
.local_cube_items_tiles_select: "unable to recover requested tiles - check input parameters"
.local_cube_items_vector_new: "could not find files in local directories - check parse_info, vector_dir, and data_dir parameters"
.local_cube_file_info: "missing image files for local cube - check parse_info and data_dir parameters"
.local_cube_handle_class_cube: "could not handle class cube specified"
.local_cube_file_info_error: "error in reading files"
.local_results_cube_file_info: "missing classified image files for local cube - check parse_info and data_dir parameters"
.merge_irregular_bands: "it is not possible to merge irregular cubes with different bands in multiple tiles"
.merge_regular_tiles: "the provided data cubes must have the same tiles "
.merge_regular_bands: "it is not possible to merge regular cubes with the same bands "
.merge_type: "cannot merge the provided data cubes "
.ml_model: "invalid model object"
.opensearch_cdse_client: "unable to retrieve data from CDSE service"
.opensearch_cdse_search_rtc: "invalid orbit parameter"
.parallel_map: "Some parallel nodes failed"
.parallel_recv_one_data: "Error has occurred in a node; recovery will be attempted"
.plot_band_best_guess: "no bands provided - using a best guess color composite"
.plot_class_cube: "wrong input parameters - see example in documentation"
.plot_class_vector_cube: "wrong input parameters - see example in documentation"
.plot_class_vector: "segments have not been classified - run sits_classify()"
.plot_least_cloud_cover: "no date provided - using date with least cloud cover"
.plot_geo_distances: "invalid distances object - use sits_geo_dist to create it."
.plot_palette: "please use palette in place of color_palette"
.plot_patterns: "wrong input parameters - see example in documentation"
.plot_predicted: "wrong input parameters - see example in documentation"
.plot_probs: "some requested labels are not present in cube"
.plot_probs_cube: "please check parameters - error"
.plot_probs_vector: "some requested labels are not present in cube"
.plot_raster_cube: "wrong input parameters - see example in documentation"
.plot_raster_cube_tile: "tile is not included in the cube"
.plot_raster_cube_single_date: "plotting only the first requested date"
.plot_raster_cube_date: "date is not part of the cube timeline"
.plot_raster_false_color: "plotting false color image"
.plot_sits: "wrong input parameters - see example in documentation"
.plot_sits_accuracy: "unable to plot - please run sits_accuracy"
.plot_sits_cluster: "missing cluster object - run 'sits_cluster' and use result as input\n check examples in documentation"
.plot_som_clean_samples: "please re-run sits_som_clean_samples with keep parameter \n equal to c('clean', 'analyze', 'remove') before ploting the result"
.plot_som_evaluate_cluster: "unable to plot - please run sits_som_evaluate_cluster"
.plot_som_map: "wrong input data; please run sits_som_map first"
.plot_torch_model: "invalid model - please run sits_train() using a torch model"
.plot_uncertainty_cube: "wrong input parameters - see example in documentation"
.plot_uncertainty_vector_cube: "wrong input parameters - see example in documentation"
.plot_variance_cube: "plot variance type should be either map or hist"
.plot_vector_cube: "wrong input parameters - see example in documentation"
.raster_crop_metadata: "only one of 'block' or 'bbox' should be informed"
.raster_gdal_datatype: "invalid 'data_type' parameter for GDAL access"
.raster_open_rast: "unable to open image files"
.raster_merge_blocks: "unable to merge blocks to write to output file"
.raster_params_file: "image files do not exist or are not accessible"
.raster_sub_image: "one tile processed at a time"
.raster_sub_image_from_bbox: "unable to extract subimage from tile"
.raster_template: "template file does not exist"
.raster_write_block: "unable to write block to outout file"
.raster_write_rast_terra: "unable to write raster object"
.raster_write_block_mismatch: "number of output files does not match number of layers"
.reclassify_fn_expr: "reclassification rules should be named"
.reclassify_fn_cube_mask: "cube and mask values have different sizes"
.reclassify_label_as_int: "invalid label(s) %s"
.reclassify_label_invalid: "all provided label(s) is(are) invalid"
.reclassify_rule_as_int_eq_op: "== operator requires an mask or cube operand"
.reclassify_rule_as_int_neq_op: "!= operator requires an mask or cube operand"
.reclassify_rule_as_int_in_op_lhs: "%in% operator requires a mask or cube as lhs operand"
.reclassify_rule_as_int_in_op_rhs: "%in% operator requires a label vector as rhs operand"
.reclassify_rule_as_int_c_fn: "only label vectors are accepted"
.reclassify_fn_result: "expression should evaluate to logical values"
.reduce_samples: "invalid samples file"
.roi_sf_to_geojson: "invalid roi_sf (should have only one row)"
.roi_type: "invalid roi parameter"
.s2_mgrs_to_roi: "invalid MGRS tiles"
.samples_prune: "time series length is smaller than the lenght of the first sample"
.samples_ts: "time_series column not found in samples"
.sf_clean: "invalid geometries detected - these geometries have been removed"
.sf_get_samples: "invalid sf object - only POINT, POLYGON and MULTIPOLYGON objects are supported"
.sf_polygon_to_tibble: "unable to extract data from polygon - check 'label_attr' parameter"
.shp_transform_to_sf: "invalid shapefile - missing data or invalid geometry types"
.shp_get_samples: "either a label or shape attribute should be provided to read shapefiles"
.signal_odd_filter_length: "sgolay needs an odd filter length n"
.signal_filter_length: "sgolay needs filter length n larger than polynomial order p"
.slice_dfr_numeric: "invalid index when combining tiles"
.sources: "invalid 'sources' in config file"
.source_bands: "requested bands not available in the selected collection"
.source_bands_band_name: "inconsistent values for band names"
.source_bands_reap: "requested bands not available in the selected collection"
.source_bands_resolution: "invalid band resolution in collection configuration"
.source_bands_to_source: "invalid bands parameter in collection configuration"
.source_cloud_bit_mask: "unable to set bit mask for cloud band"
.source_cloud_interp_vales: "invalid cloud interpolation values in collection configuration"
.source_cloud_values: "invalid cloud values in collection configuration"
.source_collection_open_data: "unable to find if collection is open data or not"
.source_collection_class_labels: "invalid bands for collection"
.source_collection_class_tile_dates: "invalid dates for collection"
.source_collection_class_tile_band: "invalid band for collection"
.source_collection_name: "invalid name for collection"
.source_collection_grid_system: "invalid grid system for collection"
.source_collection_satellite: "invalid satellite for collection"
.source_collection_sensor: "invalid sensor for collection"
.source_configure_access: "unable to access collection - service is unavailable"
.source_configure_access_aws_cube: "a valid AWS_SECRET_ACCESS_KEY is required to access this collection\n if you have one, include it as an enviromental variable"
.source_configure_access_usgs_cube: "a valid AWS_SECRET_ACCESS_KEY is required to access USGS collection\n if you have one, include it as an enviromental variable"
.source_collection_access_test: "enable to access data from the collection"
.source_collection_access_var_set: "invalid access vars for collection"
.source_collection_metadata_search: "cannot find description for collection - check 'source' and 'collection' params"
.source_items_get_hrefs_stac_cube: "error when retrieving hrefs from stac query"
.source_items_bands_select: "unable to retrieve selected bands from chosen collection - check input parameters"
.source_items_cube: "error when retrieving items using stac query - check selection parameters"
.source_items_cube_stac_cube: "error when opening files"
.source_items_fid_stac_cube: "invalid feature id value"
.source_items_new: "search returned no items - check selection parameters."
.source_items_new_cdse_cube: "search returned no items - check selection parameters."
.source_items_new_hls_cube: "search returned no items - check selection parameters."
.source_items_new_mpc_cube: "search returned no items - check selection parameters."
.source_items_new_mpc_cube_landsat_c2_l2: "when retrieving Landsat collection in MPC searching by tiles is not allowed, use roi"
.source_items_new_mpc_s1_grd: "invalid orbit parameter for MPC S1 GRD collection"
.source_items_new_mpc_cube_hls: "search returned no items - check selection parameters."
.source_items_new_terrascope_cube: "search returned no items - check selection parameters."
.source_filter_tiles_stac_cube: "requested tiles not available in the cube"
.source_roi_tiles_mpc_cube_landsat_c2_l2: "error when retrieving Landsat MPC collection\n searching by tiles not allowed, use roi"
.source_roi_tiles_sdc_cube: "SDC cubes do not support searching for tiles, use roi"
.source_s3class: "invalid s3class for requested source provider"
.source_service: "invalid service for requested source provider"
.source_url: "invalid URL for requested source provider"
.source_tile_get_bbox: "unable to retrieve images given a bounding box"
.source_tile_get_bbox_cdse_s1_rtc: "unable to retrieve file information for S1 RTC cubes"
.source_tile_get_bbox_mpc_dem_30: "unable to retrieve file information for COP DEM GLO 30m"
.source_tile_get_bbox_mpc_s1_grd: "unable to retrieve file information for S1 GRD cubes"
.stac_format_platform: "platform name should be unique (e.g. Landsat-8 or Sentinel-1A)"
.stac_select_bands: "some bands for this product are not pre-configured in sits\n please include them in you user configuration file."
.summary_check_tile:  "tile is not included in the cube"
.terrascope_get_token: "to use terrascope, it is required to setup your credentials\n please, define them using the variables TERRASCOPE_USER and TERRASCOPE_PASSWORD"
.test_check: "expected error during testing"
.tibble_prune_yes: "Success!! All samples have the same number of time indices"
.tibble_prune_no: "Some samples of time series do not have the same time indices \n as the majority of the data"
.tile_area_freq_raster_cube: "cube is not a labelled cube"
.tile_bands_assign: "number of input values different for current number of bands in tile"
.tile_band_conf_eo_cube: "unable to obtain band configuration"
.tile_derived_from_file: "number of image layers does not match number of labels"
.tile_derived_merge_blocks: "number of image layers does not match number of labels"
.tile_extract: "number of extracted points differs from number of requested points"
.tile_update_label_default: "tile is not a labelled cube"
.timeline_class_info: "invalid timeline for classification"
.timeline_match: "start_date and/or end_date do no match cube timeline"
.timeline_during: "no valid data between selected start_date and end_date"
.timeline_format: "unable to decode start and end dates provided - please use YYYY-MM-DD"
.ts: "no time_series available in input"
.ts_assign: "invalid time series value"
.ts_get_raster_class: "input data is not a classified data cube with all required attributes"
.ts_select_bands: "some or all requested bands are not available in the cube"
.ts_values: "some or all requested bands are not available in the cube"
.usgs_format_tiles: "requested tiles do not match Landsat-8 WRS grid"
.values_ts: "valid format parameter are 'cases_dates_bands', 'bands_cases_dates' or 'bands_dates_cases'"
.verbose_block_size: "using blocks of size "
.verbose_task_end: "task finished at "
.verbose_task_elapsed: "elapsed time for task "
.view_class_cube: "invalid classified cube cannot be visualized - check 'class_cube' parameter"
.view_add_overlay_grps_raster_cube: "raster cube must have associated dates"
.view_filter_tiles: "requested tiles are not part of cube"
.view_samples: "some labels are missing from the legend"
.view_set_max_mb: "view_max_mb should be between"
sits_add_base_cube: "unable to add cube - check if cube2 contains base maps"
sits_accuracy: "unable to extract values to measure accuracy - check input"
sits_accuracy_sits: "unable to extract predicted and reference data from samples\n have the samples been classified?"
sits_accuracy_class_cube: "invalid validation data"
sits_accuracy_class_cube_no_validation_points: "No validation points were extracted from the classified data cube - ensure they intersect"
sits_accuracy_raster_cube: "input should be a classified cube"
sits_accuracy_class_vector_cube: "attributes for predicted and reference values should be contained in the segments object"
sits_accuracy_tbl_df: "input should be a classified sits tibble or a classified data cube"
sits_as_sf: "input should be a valid set of training samples or a non-classified data cube"
sits_as_stars: "invalid parameters in sits_as_stars"
sits_as_stars_tile: "tile is not part of the cube"
sits_as_stars_bands: "bands are not included in the cube"
sits_as_stars_dates: "dates are not included in the cube"
sits_as_terra: "invalid parameters"
sits_as_terra_tile: "tile is not part of the cube"
sits_apply: "invalid input data and/or function to be applied"
sits_apply_out_band: "output band already exists in data cube and will be replaced"
sits_apply_derived_cube: "input data should be a non-classified cube"
sits_apply_default: "input should be a valid set of training samples or a non-classified data cube"
sits_bands: "tiles have different bands - cube is inconsistent"
sits_bands_default: "input should be an object of class sits, raster_cube, or ml_model"
sits_bands_assign: "number of input values different for current number of bands in cube"
sits_bands_assign_default: "input should be an object of class sits, raster_cube, or ml_model"
sits_bbox: "invalid bounding box - check input data"
sits_bbox_default: "input should be an object of class sits or raster_cube"
sits_classify_default: "input should be a valid set of training samples or a non-classified data cube"
sits_classify_derived_cube: "input data cube has already been classified"
sits_classify_mps: "using MPS - please check parameters memsize and gpu_memory \n MPS shares memory with gpu \n sum of memsize with gpu_memory must be less than total available RAM"
sits_classify_tbl_df: "input should be a sits tibble or a regular non-classified data cube"
sits_classify_sits: "wrong input parameters - see example in documentation"
sits_classify_raster: "wrong input parameters - see example in documentation"
sits_classify_segs: "wrong input parameters - see example in documentation"
sits_clean: "unable to apply function - please check that input is a classified data cube"
sits_cluster_dendro: "wrong input parameters - see example in documentation"
sits_cluster_dendro_best_number: "best number of clusters ="
sits_cluster_dendro_best_height: "best height for cutting the dendrogram = "
sits_cluster_dendro_best_cut: "desired number of clusters overrides best value"
sits_cluster_dendro_default: "input should be a valid training set"
sits_colors_legend_not_available: "legend not available in sits colors set"
sits_colors_legends: "available legends are"
sits_colors_not_legend: "no legend provided, returning all available colors"
sits_colors_qgis_raster: "some labels are not in the color table"
sits_colors_set: "wrong input parameters - see example in documentation"
sits_combine_predictions: "wrong input parameters - input should be a list of probs cube - see example in documentation"
sits_combine_predictions_uncert_cubes: "uncertainty cubes must have same length of prob cubes"
sits_combine_predictions_weights: "number of weights does not match number of inputs"
sits_combine_predictions_sum_weights: "weigths should add up to 1.0"
sits_confidence_sampling: "wrong input parameters - input should be a probs cube - see example in documentation"
sits_confidence_sampling_window: "unable to suggest %s samples for label(s) %s; reduce 'sampling_window' or 'min_margin'"
sits_config_user_file_no_update: "user configuration file exists - use overwrite = TRUE to replace it"
sits_config_user_file_updated: "updated file pointed by your SITS_CONFIG_USER_FILE environmental variable"
sits_config_user_file_new_file: "save default user configuratiin\n - please update your SITS_CONFIG_USER_FILE environmental variable \n to point to the chosen file"
sits_cube: "wrong input parameters - see examples in documentation"
sits_cube_default: "requested source has not been registered in sits\n - if possible, define an appropriate user configuration file"
sits_cube_copy: "wrong input parameters - see example in documentation"
sits_cube_copy_different_resolutions: "Cube has multiple resolutions. Please, provide a valid resolution in 'res' parameter."
sits_cube_local_cube:  "wrong input parameters - see example in documentation"
sits_cube_local_cube_vector_band: "one vector_band must be provided (either segments, class, or probs)"
sits_cube_results_cube: "one results band must be provided (either class or probs)"
sits_cube_results_cube_label: "for results cubes, a named label vector must be provided"
sits_detect_change_method: "wrong input parameters - see example in documentation"
sits_detect_change_method_model: "dc_method is not a valid function"
sits_detect_change_method_timeline: "samples have different timeline lengths"
sits_detect_change_sits: "wrong input parameters - see example in documentation"
sits_detect_change_default: "Input should be a sits tibble or a data cube"
sits_dtw: "wrong input parameters - see example in documentation"
sits_filter: "input should be a valid set of training samples or a non-classified data cube"
sits_formula_linear: "invalid input data"
sits_formula_logref: "invalid input data"
sits_get_class: "unable to retrieve data from classified cube - check input parameters"
sits_get_class_default: "invalid samples - check documentation"
sits_get_class_not_point: "samples should have POINT geometry type"
sits_get_data: "unable to retrieve data - check input parameters"
sits_get_data_default: "invalid samples - check documentation"
sits_get_data_data_frame: "missing lat/long information in data frame"
sits_get_data_sf: "unable to retrieve points - please check parameters"
sits_get_data_shp: "unable to retrieve points - please check parameters"
sits_get_probs: "unable to retrieve data from probability cube - check input parameters"
sits_get_probs_default: "unable to retrieve data from probability cube - check input parameters"
sits_get_probs_not_point: "samples should have POINT geometry type"
sits_hist_raster_cube: "invalid input data to compute histogram"
sits_hist_tile: "tile is not part of the cube"
sits_hist_label: "labels is not one of cube labels"
sits_hist_date: "date is not part of cube timeline"
sits_hist_band: "band not available in the cube"
sits_hist_sits: "histogram of time series not available"
sits_impute: "This function is deprecated and will be removed in future versions of sits."
sits_kfold_validate: "ml_method is not a valid sits method"
sits_kfold_validate_samples: "sits_kfold_validate() requires labelled set of time series"
sits_kfold_validate_windows: "sits_kfold_validate() works only with 1 core in Windows"
sits_label_classification: "input should be a cube with probabilities\n  - run sits_classify() before applying this function"
sits_labels_assign_default: "invalid input data - should be a valid set of samples or a classified data cube"
sits_labels_default: "invalid input data - should be a valid set of samples or a probs or classified data cube"
sits_labels_assign_class_cube: "not enough new labels to replace current ones"
sits_labels_assign_probs_cube: "number of new labels dos not match current labels"
sits_labels_raster_cube:  "input should be a set of time series or probs, class or variance cube"
sits_labels_summary: "this function is deprecated; please use summary()"
sits_lighttae: "wrong input parameters - see example in documentation"
sits_list_collections: "invalid source parameter as data provider"
sits_merge_default: "input should be objects of class sits or class raster_cube"
sits_merge_raster_cube: "merge cubes requires same tiles and same timeline length in both cubes"
sits_merge_raster_cube_irregular: "input cubes are irregular, to merge them use 'irregular = TRUE'"
sits_merge_raster_cube_tolerance: "cubes timeline are different; using tolerance to merge them"
sits_merge_raster_cube_error: "temporal tolerance is smaller than difference between cube timelines"
sits_merge_sar_cube: "merge cubes requires same tiles and same timeline length in both cubes"
sits_merge_sar_cube_irregular: "input cubes are irregular, to merge them use 'irregular = TRUE'"
sits_merge_sits: "input data is NULL or has different number of rows"
sits_merge_sits_bands: "duplicated band names - merge only works if bands in inputs are different"
sits_mgrs_to_roi: "this function is deprecated; please use 'sits_tiles_to_roi()'."
sits_mixture_model: "wrong input parameters - see example in documentation"
sits_mixture_model_derived_cube: "input should not be a cube that has been classified"
sits_mixture_model_default: "input should be objects of class sits or class raster_cube"
sits_mlp: "wrong input parameters - see example in documentation"
sits_mlp_layers_dropout: "number of layers does not match number of dropout rates"
sits_mosaic: "wrong input parameters - see example in documentation"
sits_patterns: "invalid samples data set"
sits_predictors: "invalid samples data set"
sits_pred_normalize: "invalid input - use results of 'sits_stats' and 'sits_predictors' as input"
sits_probs_vector_cube: "smoothing not required for vector probability cube \n run sits_label_classification directly"
sits_reclassify: "check that cube and mask are valid classified data cubes"
sits_reclassify_mask_intersect: "mask roi does not intersect cube"
sits_regularize: "check input parameters include a valid cube, resolution, period and output_dir"
sits_regularize_cloud: "cloud band not found in provided cube\n 'sits_regularize()' will just fill nodata values."
sits_regularize_crs: "multiple CRS values found in provided cube\n using the CRS of the first tile to create ROI"
sits_regularize_local: "regularization is faster when data is stored locally\n use 'sits_cube_copy()' to copy data locally before regularization"
sits_regularize_grid_system: "requested grid system not supported"
sits_regularize_roi: "requested roi does not intersect cube"
sits_regularize_default: "sits_regularize only works with non-processed raster cubes"
sits_reduce: "input should be a valid set of training samples or a non-classified data cube"
sits_reduce_bands: "the desired output band already exists in samples\n please choose a different name"
sits_reduce_imbalance: "input should be a valid set of training samples"
sits_reduce_imbalance_samples: "number of samples to undersample for large classes should be higher or equal to number of samples to oversample for small classes"
sits_resnet: "wrong input parameters - see example in documentation"
sits_rfor: "wrong input parameters - see example in documentation"
sits_roi_to_mgrs: "this function is deprecated; please use 'sits_roi_to_tiles()'."
sits_sample: "invalid frac parameter - values should be btw 0.0 and 2.0"
sits_sampling_design: "sampling design only runs in classified cubes"
sits_sampling_design_labels: "names of classes in cube do not match labels in expected_ua"
sits_sampling_design_alloc: "some selected allocation options are not feasible"
sits_sampling_design_available_labels: "some selected labels are not available in the cube"
sits_select: "input should be a valid set of training samples or a non-classified data cube"
sits_select_default: "input should be a valid set of training samples or a non-classified data cube"
sits_segment: "wrong input parameters - see example in documentation"
sits_slic: "wrong input parameters - see example in documentation"
sits_slic_deprec: "this function is deprecated and will be removed in future versions of sits."
sits_snic: "wrong input parameters - see example in documentation"
sits_smooth: "wrong input parameters - see example in documentation"
sits_smooth_default: "input should be a probability cube"
sits_som_clean_samples: "wrong input data; please run sits_som_map first"
sits_som_clean_samples_keep: "invalid keep parameter"
sits_som_evaluate_cluster: "wrong input data; please run sits_som_map first"
sits_som_map: "number of samples should be greater than number of neurons"
sits_som_map_grid_size: "recommended values for grid_xdim and grid_ydim are "
sits_stratified_sampling: "labels in sampling design do not match labels in cube"
sits_stratified_sampling_alloc: "allocation method is not included in sampling design"
sits_stratified_sampling_samples: "number of samples per allocation method should be integer"
sits_stratified_sampling_shp: "invalid shapefile name"
sits_stratified_sampling_shp_save: "saved allocation in shapefile"
sits_svm: "wrong input parameters - see example in documentation"
sits_tae: "wrong input parameters - see example in documentation"
sits_tempcnn: "wrong input parameters - see example in documentation"
sits_texture_out_band: "output band already exists in data cube and will be replaced"
sits_texture_derived_cube: "input data should be a non-classified cube"
sits_texture_default: "input should be a valid set of training samples or a non-classified data cube"

sits_train_base_data: "training samples with DEM or other base data is only supported by random forest and xgboost methods"
sits_timeline_raster_cube: "cube is not regular, returning all timelines"
sits_timeline_default: "input should be a set of training samples or a data cube"
sits_to_csv: "invalid CSV file to be written to"
sits_to_csv_default: "input should be a valid set of training samples"
sits_to_xlsx: "missing accuracy information - check 'acc' parameter"
sits_to_xlsx_save: "saved excel spreadsheet in "
sits_train_method: "ml_method is not a valid function"
sits_train_timeline: "samples have different timeline lengths"
sits_tuning: "wrong input parameters - see example in documentation"
sits_tuning_samples: "cannot pass 'samples' via hyper-parameters"
sits_uncertainty_default: "invalid method for uncertainty estimation"
sits_uncertainty_sampling: "check that input cube is a valid uncertainty cube - see example in documentation"
sits_uncertainty_sampling_window: "unable to obtain desidered number of samples\n try a smaller 'sampling_window' parameter"
sits_variance: "wrong input parameters - see example in documentation"
sits_variance_default: "input should be a probability cube"
sits_variance_raster_cube: "input should be a probability cube"
sits_validate: "ml_method is not a valid sits method"
sits_view_probs_label: "wrong label parameter in sits_view for probs cube"
sits_view_tiles: "requested tile is not available in cube"
sits_view_default: "sits_view is only available for ARD cubes and labelled cubes"
sits_view_sits: "input is an invalid set of training samples"
sits_view_class_cube: "invalid parameters for visualization of classified cube"
sits_view_class_vector_cube: "invalid parameters for visualization of classified cube"
sits_view_probs_cube: "invalid parameters - did you provide a single label?"
sits_view_raster_cube: "invalid parameters - check if bands are provided"
sits_view_vector_cube: "invalid parameters for vector cube visualisation"
sits_view_uncertainty_cube: "invalid parameters"
sits_view_som_map: "function requires a SOM map and a set of neuron ids as inputs"
sits_xgboost: "wrong input parameters - see example in documentation"
summary_raster_cube: "check that input is regular data cube"
summary_derived_cube: "check that input is probability data cube"
summary_class_cube: "check that input is classified data cube"
summary_class_cube_slow_area: "we detected that your cube uses a non-metre Coordinate Reference System (CRS) - this may use more processing time since additional unit transformations will be required."
summary_class_cube_area: "some classes have no area: "
expect_error: "called from expect_error"
