geowatch.utils package¶
Subpackages¶
- geowatch.utils.lightning_ext package
- Subpackages
- Submodules
- geowatch.utils.lightning_ext._jsonargparse_ext_ge_4_21_and_lt_4_22 module
- geowatch.utils.lightning_ext._jsonargparse_ext_ge_4_22_and_lt_4_24 module
- geowatch.utils.lightning_ext._jsonargparse_ext_ge_4_24_and_lt_4_xx module
- geowatch.utils.lightning_ext._jsonargparse_ext_ge_4_xx_and_lt_4_21 module
- geowatch.utils.lightning_ext.argparse_ext module
- geowatch.utils.lightning_ext.demo module
- geowatch.utils.lightning_ext.lightning_cli_ext module
- geowatch.utils.lightning_ext.monkeypatches module
- geowatch.utils.lightning_ext.old_parser_devices module
- geowatch.utils.lightning_ext.util_device module
- geowatch.utils.lightning_ext.util_globals module
- geowatch.utils.lightning_ext.util_model module
- Module contents
Submodules¶
- geowatch.utils.configargparse_ext module
- geowatch.utils.ext_monai module
- geowatch.utils.ijson_ext module
- geowatch.utils.kwcoco_extensions module
filter_image_ids()
populate_watch_fields()
coco_populate_geo_heuristics()
coco_populate_geo_img_heuristics2()
_populate_valid_region()
_populate_canvas_obj()
_is_writeable()
_coerce_overwrite()
coco_populate_geo_video_stats()
check_kwcoco_spatial_transforms()
check_geo_transform_consistency()
check_unique_channel_names()
_check_unique_channel_names_in_image()
coco_list_asset_infos()
check_geotiff_formats()
rewrite_geotiffs()
geotiff_format_info()
ensure_transfered_geo_data()
transfer_geo_metadata()
_search_video_for_other_geo_assets()
_find_geotiffs_without_metadata()
transfer_geo_metadata2()
_execute_transfer_task()
_make_coco_img_from_geotiff()
_sensor_channel_hueristic()
_introspect_num_bands()
_num_band_hueristic()
_recompute_auxiliary_transforms()
coco_channel_stats()
TrackidGenerator
coco_img_wld_info()
warp_annot_segmentations_from_geos()
warp_annot_segmentations_to_geos()
visualize_rois()
covered_image_geo_regions()
covered_video_geo_regions()
covered_annot_geo_regions()
category_category_colors()
associate_images()
reorder_video_frames()
pick_channels()
- geowatch.utils.process_context module
ProcessContext
ProcessContext.write_invocation()
ProcessContext._timestamp()
ProcessContext._hostinfo()
ProcessContext._osinfo()
ProcessContext._pyinfo()
ProcessContext._meminfo()
ProcessContext._cpuinfo()
ProcessContext._machine()
ProcessContext.start()
ProcessContext.flush()
ProcessContext.stop()
ProcessContext._start_emissions_tracker()
ProcessContext._flush_emissions_tracker()
ProcessContext._stop_emissions_tracker()
ProcessContext.add_device_info()
ProcessContext.add_disk_info()
jsonify_config()
Reconstruction
main()
- geowatch.utils.result_analysis module
Result
ResultTable
ResultAnalysis
ResultAnalysis.demo()
ResultAnalysis.run()
ResultAnalysis.analysis()
ResultAnalysis.table
ResultAnalysis.metric_table()
ResultAnalysis.varied
ResultAnalysis.abaltion_groups()
ResultAnalysis._objective_is_ascending()
ResultAnalysis.tune()
ResultAnalysis.ablate()
ResultAnalysis.abalation_groups()
ResultAnalysis.abalate()
ResultAnalysis.test_group()
ResultAnalysis.build()
ResultAnalysis.report()
ResultAnalysis._report_one()
ResultAnalysis.conclusions()
ResultAnalysis.plot()
SkillTracker
varied_values()
varied_value_counts()
GroupbyFutureWrapper
fix_groupby()
- geowatch.utils.reverse_hashid module
- geowatch.utils.simple_dvc module
__test_simple_dvc()
SimpleDVC
SimpleDVC.init()
SimpleDVC.cache_dir
SimpleDVC.demo_dpath()
SimpleDVC.coerce()
SimpleDVC.find_root()
SimpleDVC._ensure_root()
SimpleDVC._ensure_remote()
SimpleDVC._resolve_root_and_relative_paths()
SimpleDVC.add()
SimpleDVC.pathsremove()
SimpleDVC._dvc_path_op()
SimpleDVC.check_ignore()
SimpleDVC.git_pull()
SimpleDVC.git_push()
SimpleDVC.git_commit()
SimpleDVC.git_commitpush()
SimpleDVC._verbose_extra_args()
SimpleDVC._remote_extra_args()
SimpleDVC.push()
SimpleDVC.pull()
SimpleDVC.request()
SimpleDVC.unprotect()
SimpleDVC.is_tracked()
SimpleDVC.find_file_tracker()
SimpleDVC.find_dir_tracker()
SimpleDVC.read_dvc_sidecar()
SimpleDVC.resolve_cache_paths()
SimpleDVC.find_sidecar_paths()
SimpleDVC.resolve_sidecar()
_ensure_iterable()
SimpleDVC_CLI
_import_dvc_main()
- geowatch.utils.util_bands module
- geowatch.utils.util_codes module
- geowatch.utils.util_data module
- geowatch.utils.util_dotdict module
- geowatch.utils.util_framework module
egress_item()
ingress_item()
download_mtd_msil1c()
download_file()
download_http_file()
CacheItemOutputS3Wrapper
_default_item_selector()
_default_asset_selector()
IngressProcessEgressWrapper
download_region()
determine_region_id()
AWS_S3_Command
ta2_collate_output()
fixup_and_validate_site_and_region_models()
NodeStateDebugger
PrintLogger
_devcheck_retry()
_test_s3_hack()
- geowatch.utils.util_fsspec module
FSPath
FSPath._new_fs()
FSPath._current_fs()
FSPath.fs
FSPath.coerce()
FSPath.relative_to()
FSPath.is_remote()
FSPath.is_local()
FSPath.open()
FSPath.ls()
FSPath.touch()
FSPath.move()
FSPath.delete()
FSPath.rm()
FSPath.mkdir()
FSPath.stat()
FSPath.is_dir()
FSPath.is_file()
FSPath.is_link()
FSPath.exists()
FSPath.write_text()
FSPath.read_text()
FSPath.walk()
FSPath.parent
FSPath.name
FSPath.stem
FSPath.suffix
FSPath.suffixes
FSPath.parts
FSPath.copy()
FSPath.joinpath()
FSPath.tree()
LocalPath
RemotePath
S3Path
SSHPath
MemoryPath
- geowatch.utils.util_gdal module
- geowatch.utils.util_girder module
- geowatch.utils.util_gis module
plot_geo_background()
geopandas_pairwise_overlaps()
latlon_text()
demo_regions_geojson_text()
load_geojson()
read_geojson()
get_crs84()
_get_crs84()
_flip()
shapely_flip_xy()
project_gdf_to_local_utm()
utm_epsg_from_latlon()
UTM_TransformContext
_demo_convert_latlon_to_utm()
find_local_meter_epsg_crs()
check_latlons()
coerce_geojson_datas()
coerce_geojson_paths()
_coerce_raw_geojson()
_load_json_from_path()
load_geojson_datas()
crs_geojson_to_gdf()
coerce_crs()
- geowatch.utils.util_globals module
- geowatch.utils.util_hardware module
- geowatch.utils.util_iter module
- geowatch.utils.util_kwarray module
cartesian_product()
tukey_biweight_loss()
asymptotic()
robust_limits()
unique_rows()
find_robust_normalizers()
_custom_quantile_extreme_estimator()
_tukey_quantile_extreme_estimator()
apply_normalizer()
normalize()
balanced_number_partitioning()
torch_array_equal()
combine_mean_stds()
_no_keepdim_indexer()
_postprocess_keepdims()
apply_robust_normalizer()
biased_1d_weights()
Remedian
argsort_threshold()
- geowatch.utils.util_kwimage module
_auto_kernel_sigma()
upweight_center_mask()
perchannel_colorize()
ensure_false_color()
colorize_label_image()
local_variance()
find_lowvariance_regions()
find_samecolor_regions()
find_high_frequency_values()
polygon_distance_transform()
devcheck_frame_poly_weights()
find_low_overlap_covering_boxes()
find_low_overlap_covering_boxes_optimize()
exactly_1channel()
- geowatch.utils.util_kwplot module
phantom_legend()
cropwhite_ondisk()
dataframe_table()
humanize_dataframe()
scatterplot_highlight()
humanize_labels()
relabel_xticks()
LabelModifier
LabelModifier.copy()
LabelModifier.add_mapping()
LabelModifier.update()
LabelModifier._modify_text()
LabelModifier._modify_labels()
LabelModifier._modify_legend()
LabelModifier.relabel_yticks()
LabelModifier.relabel_xticks()
LabelModifier.relabel_axes_labels()
LabelModifier.relabel_legend()
LabelModifier.relabel()
FigureFinalizer
fix_matplotlib_dates()
fix_matplotlib_timedeltas()
extract_legend()
ArtistManager
ArtistManager._normalize_attrs()
ArtistManager.plot()
ArtistManager.add_linestring()
ArtistManager.add_ellipse()
ArtistManager.add_circle()
ArtistManager.add_ellipse_marker()
ArtistManager.add_circle_marker()
ArtistManager.build_collections()
ArtistManager.add_to_axes()
ArtistManager.bounds()
ArtistManager.setlims()
time_sample_arcplot()
Palette
PaletteManager
color_new_labels()
autompl2()
- geowatch.utils.util_logging module
setup_logging()
get_logger()
PrintLogger
PrintLogger.setLevel()
PrintLogger.debug()
PrintLogger.info()
PrintLogger.warning()
PrintLogger.error()
PrintLogger.exception()
PrintLogger.critical()
PrintLogger.log()
PrintLogger.findCaller()
PrintLogger.makeRecord()
PrintLogger.filter()
PrintLogger._log()
PrintLogger.handle()
PrintLogger.addHandler()
PrintLogger.removeHandler()
PrintLogger.hasHandlers()
PrintLogger.callHandlers()
PrintLogger.getEffectiveLevel()
PrintLogger.isEnabledFor()
PrintLogger.getChild()
- geowatch.utils.util_nesting module
- geowatch.utils.util_netharn module
- geowatch.utils.util_nvidia module
- geowatch.utils.util_pandas module
DataFrame
pandas_reorder_columns()
pandas_argmaxima()
pandas_suffix_columns()
pandas_nan_eq()
pandas_shorten_columns()
pandas_condense_paths()
pandas_truncate_items()
DotDictDataFrame
DotDictDataFrame._clear_column_caches()
DotDictDataFrame._column_prefix_trie
DotDictDataFrame._column_suffix_trie
DotDictDataFrame._column_node_groups
DotDictDataFrame.nested_columns
DotDictDataFrame.find_column()
DotDictDataFrame.query_column()
DotDictDataFrame.lookup_suffix_columns()
DotDictDataFrame.lookup_prefix_columns()
DotDictDataFrame.find_columns()
DotDictDataFrame.match_columns()
DotDictDataFrame.search_columns()
DotDictDataFrame.subframe()
pandas_add_prefix()
aggregate_columns()
_handle_const()
SpecialAggregators
NonConstantError
nan_eq()
GroupbyFutureWrapper
_fix_groupby()
pandas_fixed_groupby()
- geowatch.utils.util_param_grid module
- geowatch.utils.util_raster module
- geowatch.utils.util_regex module
- geowatch.utils.util_resolution module
- geowatch.utils.util_rgdc module
- geowatch.utils.util_s3 module
- geowatch.utils.util_stringalgo module
- geowatch.utils.util_torchmetrics module
Module contents¶
- geowatch.utils.find_dvc_dpath(name=NoParam, on_error='raise', **kwargs)[source]¶
Return the location of the GEOWATCH DVC Data path if it exists and is in a “standard” location.
NOTE: other team members can add their “standard” locations if they want.
- SeeAlso:
WATCH_DATA_DPATH=$(geowatch_dvc)
python -m geowatch.cli.find_dvc –hardware=hdd python -m geowatch.cli.find_dvc –hardware=ssd