pycitydata.sateimg._utils

Module Contents

Functions

get_one_point

get one point from the shapefile

deg2XY

The satellite images are tiles and each tile has a unique x and y index.

XY2deg

compute_tile_coordinates

Batch version of YX2deg

XY2deg_batch

Batch version of num2deg

create_tile_polygons

Create the polygons for each tile

geometry_to_listXY

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_YX_area

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.