MCPcopy Create free account

hub / github.com/EL-BID/URSA / functions

Functions204 in github.com/EL-BID/URSA

↓ 10 callersFunctionnavIcon
(icon_path)
components/navbar.py:14
↓ 9 callersFunctionfigureWithDescription_translation
(fig, text_id, title_id)
components/text.py:40
↓ 5 callersFunctionnavIcon
(icon_path)
src/components/navbar.py:14
↓ 4 callersFunctionclamp
(x: float, offset: float, scale: float)
documentation/GEE_dependency/example.py:19
↓ 4 callersFunctiongeometry_to_json
(geo)
ursa/utils/geometry.py:16
↓ 4 callersFunctionhash_geometry
(bbox_latlon_json)
ursa/utils/geometry.py:20
↓ 4 callersFunctionload_or_download
Searches for a GHS dataset to load, if not available, downloads it from S3 and loads it. Parameters ---------- bbox : Polygon
ursa/ghsl.py:101
↓ 4 callersFunctionload_or_get_temps
(lst, masks, path_cache)
ursa/heat_islands.py:97
↓ 4 callersFunctionmapComponent
(title, id)
components/text.py:87
↓ 4 callersFunctionsmod_polygons
Find SMOD polygons for urban centers and urban clusters. Parameters ---------- smod : xarray.DataArray DataArray with SMOD raster
ursa/ghsl.py:180
↓ 3 callersFunction_download_handler
(n_clicks, id_hash, bbox_latlon, task_name, download_type)
pages/suhi.py:827
↓ 3 callersFunctionb64_image
(image_filename)
ursa/utils/image.py:4
↓ 3 callersFunctionbbox_to_ee
(bbox)
ursa/utils/raster.py:317
↓ 3 callersFunctionclip_dataset
(ds, polygons)
ursa/ghsl.py:146
↓ 3 callersFunctionfigureWithDescription_translation2
(fig, text_ids, title_id)
components/text.py:61
↓ 3 callersFunctionformat_temp
(temp)
pages/suhi.py:218
↓ 3 callersFunctionnew_page_layout
(maps, tabs, stores=None, alerts=None)
components/page.py:17
↓ 3 callersFunctionraster_to_bytes
(data, crs, transform, dtype=rio.int32)
pages/sleuth.py:1551
↓ 2 callersFunctionclamp_latlon
(min_lon: float, min_lat: float, max_lon: float, max_lat: float, *, scale: float, lon_offset: float=0, lat_off
documentation/GEE_dependency/example.py:23
↓ 2 callersFunctioncreate_navbar
(language)
components/navbar.py:92
↓ 2 callersFunctiongenerate_coord_str
(pattern: str, lon: int, lat: int)
documentation/GEE_dependency/example.py:41
↓ 2 callersFunctionget_lst
(bbox_ee, start_date, end_date)
ursa/heat_islands.py:41
↓ 2 callersFunctionget_stats_dict
( class_array, pop_array, builtup_array, classes, year, cell_area=0.01, connectivity=4 )
ursa/degree_of_urbanization.py:180
↓ 2 callersFunctionload_or_get_lc_df
(bbox_latlon, path_cache, force=False)
ursa/dynamic_world.py:310
↓ 2 callersFunctionlocal_download
(img, bbox, fpath)
ursa/sleuth_prep.py:289
↓ 2 callersFunctionmake_donuts
(proj, bbox_latlon, uc_latlon, width=100)
ursa/heat_islands.py:262
↓ 2 callersFunctionprocess_grids
(grid_slope, grid_excluded, grid_roads)
pages/sleuth.py:1704
↓ 1 callersFunctionbbox_to_geocube
(bbox, path_cache, raster_to_match)
ursa/sleuth_prep.py:328
↓ 1 callersFunctionbbox_to_latlon
(bbox_mollweide, crs)
ursa/sleuth_prep.py:34
↓ 1 callersFunctionbuffer_geometry
(bounds, buff)
ursa/utils/raster.py:46
↓ 1 callersFunctioncalculate_building_area
(bbox_mollweide, path_cache, cluster)
ursa/heat_islands.py:452
↓ 1 callersFunctioncalculate_coverage
(worldcover, sleuth_predictions, start_year)
layouts/sleuth.py:33
↓ 1 callersFunctioncalculate_coverage
(worldcover, sleuth_predictions, start_year)
src/layouts/sleuth.py:33
↓ 1 callersFunctioncalculate_road_area
(bbox, path_cache, cluster)
ursa/heat_islands.py:486
↓ 1 callersFunctioncalculate_urban_area
(bbox)
ursa/heat_islands.py:466
↓ 1 callersFunctioncode_in_str
(s)
ursa/utils/make_cities_csv.py:8
↓ 1 callersFunctiondate_format
(season, year)
ursa/utils/date.py:1
↓ 1 callersFunctionderive_auxiliary_roads
(roads, d_metric=np.inf)
ursa/sleuth_prep.py:342
↓ 1 callersFunctiondou_for_ghs
(bbox_mollweide, path_cache, resolution=100)
ursa/degree_of_urbanization.py:290
↓ 1 callersFunctiondou_lvl1
( density, builtup, u_center_density=1500, u_center_pop=50000, builtup_trshld=0.5, u_c
ursa/degree_of_urbanization.py:152
↓ 1 callersFunctiondownload_s3
Downloads a GHSL windowed rasters for each available year. Takes a bounding box (bbox) and downloads the corresponding rasters from a the glo
ursa/ghsl.py:26
↓ 1 callersFunctiondownload_sleuth_predictions
(path_cache, id_hash, mode)
layouts/sleuth.py:240
↓ 1 callersFunctiondownload_sleuth_predictions
(path_cache, id_hash, mode)
src/layouts/sleuth.py:198
↓ 1 callersFunctiondownload_zip
(download_path: Path, lon: int, lat: int)
documentation/GEE_dependency/example.py:57
↓ 1 callersFunctionextract_tifs
(zip_path: Path, out_dir: Path, lons: list[int], lats: list[int])
documentation/GEE_dependency/example.py:68
↓ 1 callersFunctionfind_closest
(df, centroid)
ursa/degree_of_urbanization.py:232
↓ 1 callersFunctionfind_urban_clusters
( pop_array, u_cluster_density=300, u_cluster_pop=5000, smooth=True, fill=True, min_ho
ursa/degree_of_urbanization.py:84
↓ 1 callersFunctionfmask
(image)
ursa/heat_islands.py:18
↓ 1 callersFunctiongenerate_drive_text_translation
(how, where)
layouts/common.py:76
↓ 1 callersFunctiongenerate_drive_text_translation_land
(how, where)
layouts/common.py:159
↓ 1 callersFunctionget_area_grid
Takes an input raster in lat lon coordinates and outputs a corresponding grid with each pixel's area in {units}. Parameters ----------
ursa/utils/raster.py:286
↓ 1 callersFunctionget_bboxes
Calculates a bounding box for city in country. This functions uses data from the GHSL's 2015 definition of urban centers to locate a city and
ursa/utils/raster.py:70
↓ 1 callersFunctionget_cover_df
(bbox_latlon, path_cache)
ursa/dynamic_world.py:271
↓ 1 callersFunctionget_land_usage_dataframe
(bbox_ee, img_cat, lc)
ursa/heat_islands.py:203
↓ 1 callersFunctionget_masks
(img)
ursa/world_cover.py:58
↓ 1 callersFunctionget_mit_areas_df
(bbox_latlon, bbox_mollweide, uc_mollweide_centroid, path_cache)
ursa/heat_islands.py:407
↓ 1 callersFunctionget_radial_f
(bbox_latlon, uc_latlon, suhi)
ursa/heat_islands.py:302
↓ 1 callersFunctionget_radial_lc
(bbox_latlon, uc_latlon, lc)
ursa/heat_islands.py:318
↓ 1 callersFunctionget_stats_df
(dou_array, pop_array, builtup_array, year)
ursa/degree_of_urbanization.py:209
↓ 1 callersFunctionget_temperature_areas
(img_cat, masks, bbox)
ursa/heat_islands.py:166
↓ 1 callersFunctionget_temps
(lst, masks)
ursa/heat_islands.py:59
↓ 1 callersFunctionhelp_text
(main, help)
layouts/sleuth.py:169
↓ 1 callersFunctionhelp_text
(main, help)
src/layouts/sleuth.py:142
↓ 1 callersFunctionkm_2_lat
(d)
ursa/utils/raster.py:27
↓ 1 callersFunctionkm_2_lon
(d, lat)
ursa/utils/raster.py:36
↓ 1 callersFunctionlat_2_meter
Converts from degrees of latitued to meters. Takes a given latitud and a small distance delta in degreed, and ouput that same delta in meters
ursa/utils/raster.py:215
↓ 1 callersFunctionload_excluded
Loads rasters denoting excluded areas. The excluded image defines all locations that are resistant to urbanization. Areas where urban develop
ursa/sleuth_prep.py:108
↓ 1 callersFunctionload_input_data_ghs
(bbox_mollweide, path_cache, resolution=100)
ursa/degree_of_urbanization.py:263
↓ 1 callersFunctionload_protected
(bbox, path_cache, raster_to_match)
ursa/sleuth_prep.py:263
↓ 1 callersFunctionload_roads
Loads preprocessed road rasters. The road influenced growth dynamic included in SLEUTH simulates the tendency of urban development to be attr
ursa/sleuth_prep.py:408
↓ 1 callersFunctionload_roads_osm
(bbox, path_cache, force_download=False)
ursa/sleuth_prep.py:453
↓ 1 callersFunctionload_sleuth_predictions
(path_cache, id_hash, mode)
layouts/sleuth.py:263
↓ 1 callersFunctionload_sleuth_predictions
(path_cache, id_hash, mode)
src/layouts/sleuth.py:221
↓ 1 callersFunctionload_slope
Loads raster with slope data into xarray. The slope is commonly derived from a digital elevation model (DEM), but other elevation source data
ursa/sleuth_prep.py:223
↓ 1 callersFunctionload_worldcover
Load raster with World Cover from ESA WorldCover Dataset. The World Cover is obtained in a unique band named Map with several values including:
ursa/sleuth_prep.py:156
↓ 1 callersFunctionlon_2_meter
Converts from degrees of longitude to meters. Takes a given longitude and a small distance delta in degrees, and ouput that same delta in met
ursa/utils/raster.py:250
↓ 1 callersFunctionmain
()
documentation/GEE_dependency/example.py:82
↓ 1 callersFunctionmain
()
ursa/utils/make_cities_csv.py:17
↓ 1 callersFunctionmain
()
ursa/utils/make_cities_csv_ghsl.py:7
↓ 1 callersFunctionmake_offsets
(s_mean: float, s_std: float, n: int = 3)
ursa/heat_islands.py:156
↓ 1 callersFunctionnp_from_bbox_local
Downloads a windowed raster with bounds defined by bbox from a local COG and stores it in memory in a numpy array. Parameters ----------
ursa/utils/raster.py:345
↓ 1 callersFunctionnp_from_bbox_s3
Downloads a windowed raster with bounds defined by bbox from an COG stored in an Amaxon S3 bucket and stores it in memory in a numpy array. U
ursa/utils/raster.py:131
↓ 1 callersFunctionplot_coverage
(lc_df, title, language='es')
layouts/sleuth.py:77
↓ 1 callersFunctionplot_coverage
(lc_df, title)
src/layouts/sleuth.py:77
↓ 1 callersFunctionplot_sleuth_predictions
(grid, start_year, num_years, language='es')
layouts/sleuth.py:275
↓ 1 callersFunctionplot_sleuth_predictions
(grid, start_year, num_years)
src/layouts/sleuth.py:233
↓ 1 callersFunctionprep_rasters
SLEUTH inputs are_ - urban history - slope - water + protected areas = excluded - roads For calibration, the earliest urban year
ursa/sleuth_prep.py:40
↓ 1 callersFunctionrun_single_prediction
( n_iters, processed_grids, grid_urban, critical_slope, random_state, coef_diffusion,
pages/sleuth.py:1931
↓ 1 callersFunctionsimplify_road_type
Maps OSM road type to integer types in road_types_dict.
ursa/sleuth_prep.py:470
Functionadd_area
(feature)
ursa/heat_islands.py:403
Functionadd_parameter_row
(n_clicks, children, orig_coefficients, btn_lang_es, btn_lang_en, btn_lang_pt)
pages/sleuth.py:2175
Functionbuilt_s_polygons
Returns a polygon per pixel for GHS BUILT rasters.
ursa/ghsl.py:244
Functioncreate_parameter_row
(idx, parameters, language='es')
layouts/sleuth.py:180
Functioncreate_parameter_row
(idx, parameters)
src/layouts/sleuth.py:153
Functioncreate_scenario_file
( path_cache, stop_year, scenario="calibration", optimizer="grid_search", diffusion=0,
ursa/sleuth_prep.py:521
Functiondelete_parameter_row
(n_clicks, current_coefficients)
pages/sleuth.py:2210
Functionderive_auxiliary_roads_numpy
(roads, d_metric=np.inf)
ursa/sleuth_prep.py:379
Functiondownload_current_raster
(n_clicks, data, attrs)
pages/sleuth.py:1609
Functiondownload_data
(id_hash, bbox_latlon, btn_lang_es, btn_lang_en, btn_lang_pt)
pages/sleuth.py:2309
Functiondownload_file
(n_clicks, id_hash)
pages/suhi.py:817
next →1–100 of 204, ranked by callers