pycitydata.sateimg._utils¶
Module Contents¶
Functions¶
get one point from the shapefile |
|
The satellite images are tiles and each tile has a unique x and y index. |
|
Batch version of YX2deg |
|
Batch version of num2deg |
|
Create the polygons for each tile |
|
Convert the geometries to a list of x and y coordinates, which can be used as the index to download the satellite images (tiles). |
|
Get the x and y coordinates of the tiles for the given area. |
API¶
- pycitydata.sateimg._utils.get_one_point(shp)¶
get one point from the shapefile
- pycitydata.sateimg._utils.deg2XY(lon_deg, lat_deg, zoom=15)¶
The satellite images are tiles and each tile has a unique x and y index.
- pycitydata.sateimg._utils.XY2deg(x, y, zoom=15)¶
- pycitydata.sateimg._utils.compute_tile_coordinates(min_x, max_x, min_y, max_y)¶
Batch version of YX2deg
- pycitydata.sateimg._utils.XY2deg_batch(x_arr, y_arr, zoom=15)¶
Batch version of num2deg
- pycitydata.sateimg._utils.create_tile_polygons(lon_arr, lat_arr, x_arr, y_arr)¶
Create the polygons for each tile
- pycitydata.sateimg._utils.geometry_to_listXY(geometry)¶
Convert the geometries to a list of x and y coordinates, which can be used as the index to download the satellite images (tiles).
- pycitydata.sateimg._utils.get_YX_area(area_shp)¶
Get the x and y coordinates of the tiles for the given area.