maps

How to get parameter values out of json post

How to get parameter values out of json post Question: I am trying to use the bing maps api to get travel time and distance between 2 gps coordinates. I get a json answer, however, I am not able to get the values out of this dictionary ? import requests import json payload = { …

Total answers: 1

Coordinate problems and inverted map

Coordinate problems and inverted map Question: I’m using the salinity data of ORAS5 and the preview variables and information: salinity =xr.open_dataset(‘….salinity_ORAS5.nc’) sal = salinity[‘sosaline’] So, the big problem is each "nav_lon" and "nav_lat" have 2D in x and y. Where in the normal case, for example, the lat data have 1D. sal.nav_lon In the preview …

Total answers: 1

Draw a Map of cities in python

Draw a Map of cities in python Question: I have a ranking of countries across the world in a variable called rank_2000 that looks like this: Seoul Tokyo Paris New_York_Greater Shizuoka Chicago Minneapolis Boston Austin Munich Salt_Lake Greater_Sydney Houston Dallas London San_Francisco_Greater Berlin Seattle Toronto Stockholm Atlanta Indianapolis Fukuoka San_Diego Phoenix Frankfurt_am_Main Stuttgart Grenoble Albany …

Total answers: 1

How to de-dupe legend in faceted choropleth chart?

How to de-dupe legend in faceted choropleth chart? Question: I’m trying to create faceted maps by the column rank in my df. Each map will display the product for each state. I want the color of the product to be consistent across maps. With the solution below I can achieve that, but the legend will …

Total answers: 1

Add rectangle to map made with Cartopy python to select subspace

Add rectangle to map made with Cartopy python to select subspace Question: I have made the following map with Cartopy: import cartopy.crs as ccrs import matplotlib.pyplot as plt ax = plt.axes(projection=ccrs.PlateCarree()) ax.set_extent([-80, 40, 20, 90], crs=ccrs.PlateCarree()) ax.coastlines(resolution=’50m’, linewidth=.5, color=’black’) # add map plt.show() and I would lie to add a rectagle to indicate a subspace. …

Total answers: 2

How to plot a map with time-slider and zoom on a city with plotly in python

How to plot a map with time-slider and zoom on a city with plotly in python Question: I want to create an interactive map that shows the evolution of a variable (number of bikes) on different points of a city. Why not by using plotly. I would like to do something like this : https://amaral.northwestern.edu/blog/step-step-how-plot-map-slider-represent-time-evolu …

Total answers: 1

display data on real map based on postal code

display data on real map based on postal code Question: I try to display data on a real map (data should be within Ontario, Canada): I have .csv file with two columns, A and B, A is a postal code, B is its associated value (integer, 1 to 5), I want to find the area …

Total answers: 4

How to plot two maps side by side using pysal or geopandas?

How to plot two maps side by side using pysal or geopandas? Question: I want to plot two tematic maps side by side to compare then. I am using geopandas to plot the maps and pysal to generate the maps from spatial analysis. Asked By: Oalvinegro || Source Answers: You can create the subplots structure …

Total answers: 3