Closed fekenzofugi closed 2 months ago
Well, it works for me using the following code. So you may want to change the way the images are added to folium.
import folium s1_preprocces_view = s1_processed.map(add_ratio_lin).map(lin_to_db2); visparam = {'bands':['VV', 'VH','VVVH_ratio'],'min': [-20, -25, 1],'max': [0, -5, 15]}
s1_processed_mapid = s1_preprocces_view.first().getMapId(visparam)
map = folium.Map(location=center)
folium.TileLayer( tiles=s1_processed_mapid['tile_fetcher'].url_format, attr='Map Data © Google Earth Engine', overlay=True, name='Preprocessed S1', ).add_to(map)
map.add_child(folium.LayerControl()) map
It didn't work for me, the image only appears when FORMAT = 'LINEAR'. But thanks for the help.
Nothing is ploted when FORMAT='DB'.