Questions tagged [jupyter-notebook]

Open-source web application for creating and sharing documents that contain live code, equations, visualizations and explanatory text.

Filter by
Sorted by
Tagged with
1
vote
1answer
19 views

`folium.GeoJson` displays all polygons in GeoDataframe but not individual ones

folium.GeoJson displays all the counties of New York State: import geopandas as gpd gdf = gpd.read_file("Counties_Shoreline.shp") m = folium.Map(location=[43.062776, -75.420884], tiles="...
-1
votes
0answers
24 views

Issue while writing the geodataframe to GPKG format in Jupyter Notebook [closed]

I have import packages such as GeoPandas, Fiona and Shapely, however, while I tried writing the geodataframe to GPKG format, the error (in the picture attached) is observed.
1
vote
1answer
37 views

Display a gee featureCollection on a leaflet map

I'm using the python GEE api and ipyleaflet in a Jupyter Notebook and I'd like to retrieve an asset (FeatureCollection) and display it as an overlay on my map. The retrieving work just fine ...
0
votes
1answer
17 views

Regenerate an isochrone through a widget in CARTOframes

Is there a way to re-generate an isochrone in a CARTOframes map from some kind of user interaction? For example, modify the minute's value: isochrones_gdf, _ = Isolines().isochrones(stadiums_df, [15*...
0
votes
0answers
34 views

Matplotlib Basemap how to set EPSG to be consistent with new version of pyrpoj

I am getting a Matplotlib Basemap error related to pyproj and setting the EPSG. (I know Basemap is being depreciated, but this is what I am working in for now.) As a result, I can't plot the ...
0
votes
0answers
25 views

Shapefile extremely slow to read in Jupyter Notebook

I have a shapefile of Phoenix, AZ of size 172mb which I am loading in to the Jupyter notebook. It's a extremely slow process to read the file in. I am running the notebook on locally and the files are ...
0
votes
0answers
18 views

RAM Problem When Loading HDF Datasets

I am trying to store my labels and features datasets extracted from 324 patches in an HDF file because loading them (labels and features) directly from the patches was failing since the RAM hits its ...
0
votes
1answer
66 views

Python code speed execution problem

I am trying to retrieve data from 324 eopatches I sampled beforehand. Patches are basically numpy arrays as explained in this documentation EOPatch. This is an example of the content of a patch after ...
0
votes
1answer
92 views

ValueError: too many values to unpack (expected 2)

I am trying to follow this tutorial: land cover fastai And while executing the workflow, I got this error: This is the code where the error occurs: def png_gen(patch, inference=False): """Save ...
0
votes
0answers
17 views

Table to Table works differently when implemented in Jupiter Notebook and ArcMap

I tried to import a lot of tables from geodatabase to .csv to later work with them. I encountered strange values and decided to do it manually for one table through the ArcMap interface. Everything ...
0
votes
0answers
19 views

Standardization, or mean removal and variance scaling of remote sensing data

I am trying to follow this tutorial Tree Cover Prediction Using Deep Learning. The following sample code is aimed to standardize the data. img_mean = np.mean(x_train_raw, axis=(0, 1, 2)) img_std = np....
0
votes
0answers
28 views

Set GDAL version used by virtual enviroment in python

How can I make Python 3.6.9 point to a specific version of GDAL (2.1.3 instead of 2.4.1)? I'm working in a jupyter notebook, in a virtual environment in an Ubuntu machine. Trying to import osgeo I ...
0
votes
1answer
30 views

Transforming an image (TIFF) into an array

I found the following code for crop classification and I am trying to understand it. # We have 10 images and 5 bands for each image so we’ll have a total of 50 columns in our data frame # we’ll ...
0
votes
1answer
39 views

Reading .tiff data using Python

I got none type while trying to open those tiff data. What issue could it possibly be? I tried this: import glob images_tiff = [] for im in glob.glob(os.path.join(data_path, "*.tiff")): im = ...
0
votes
0answers
32 views

Transforming CRS to UTM using Python

I am trying to transform CRS to UTM using a GeoJSON file. This is what I tried: from sentinelhub import CRS country_crs = CRS.UTM_32N country = country.to_crs(crs={'init':CRS.ogc_string(country_crs)})...
1
vote
0answers
37 views

Re-occuring errors in my JupyterLab environment because of instillation errors in anaconda?

I use python in the JupyterLab notebook environment through anaconda3 for my coding. I recently encountered a Runtime Error when trying to set the CRS for a geodataframe and from my research online it ...
2
votes
1answer
191 views

how to display a ee.Feature using folium?

I try to display a country delimitation in a jupyter notebook using folium. I try the following code #load country from LSIB countries = ee.FeatureCollection('USDOS/LSIB_SIMPLE/2017'); #subset the ...
0
votes
0answers
93 views

earthpy.spatial stack() -function and data type

I have Landsat-8 OLI images in directories named after image WRS-2 scenes. I tried to compose script that would iterate these directories and stack rasters within each directory - using earthpy python ...
0
votes
1answer
51 views

How to visualize route layer on ArcPy Jupyter Notebook (ArcGIS)

I tried to visualize the route between two points using ArcPy in a Jupyter notebook. The network module is activated in my Esri account. Even though it visualizes the map I can't see the route on that ...
0
votes
0answers
1k views

Open TIFF image in Python

I'm working with jupyter and I have been trying to open TIFF images that I have download from GEE. I have trying to open the images in Jupyter environment. This is my code: from PIL import Image ...
0
votes
1answer
263 views

Getting KeyError: groups from ArcGIS API for Python

I am working on ArcGIS Notebooks from arcgis.gis import GIS from IPython.display import display agol_gis = GIS("https://*********.maps.arcgis.com/home/") agolSiteAdmin = agol_gis.users.get('siteadmin'...
0
votes
0answers
34 views

The kernel seems to be dead when I use rsgislib

I'm trying to use the rsgislib library from Jupiter notebook in Windos 10 but some of its modules cause me problems as in the case: >>>import rsgislib >>>from rsgislib.segmentation ...
0
votes
1answer
77 views

Using CARTOframes to push to CARTO account

I am using CARTOframes to create and style a map that includes widgets. I'm able to push a Dataset to my Carto account and to publish and update a map, however I can't seem to get that published map ...
1
vote
0answers
186 views

Is it possible to use ipyleaflet in a jupyter notebook running on an Anaconda Enterprise server?

This question is very similar to Ipyleaflet map object doesn't display in Jupyter Notebook but it gets created and uses the same example: https://ipyleaflet.readthedocs.io/en/latest/api_reference/...
1
vote
0answers
653 views

Unable to import GDAL in Python 3.7 [closed]

I have installed GDAL using conda and it installed successfully. But when I try import gdal in jupyter notebook, it is showing this error. -----------------------------------------------------------...
0
votes
0answers
951 views

Why Does Jupyter/IPython Fail to load GDAL?

I've been trying to put together some Jupyter Notebooks which demonstrate some GDAL functionality but when I do from osgeo import gdal I get ImportError: DLL load failed: The specified procedure could ...
1
vote
0answers
97 views

Earth Engine Feature Collection to Image doesn't return values (can't work with Image)

I have a bunch of Polygons and build a Feature Collection out of them. For testing the only property of each Feature is "Code" with the value 3: import ee import geopandas as gpd ee.Initialize() ...
0
votes
1answer
93 views

Adding features with attribution to Feature Service using Jupyter Notebooks and ArcGIS Python API?

I want to have a user add points by clicking on a map in a Jupyter Notebook and those points get pushed to a feature service. I'm able to accomplish that task, but I would like the user to be able ...
1
vote
1answer
932 views

Enabling Jupyter nbextension for ipyleaflet?

I was trying to test out this script https://github.com/tylere/PyDataNYC2017/blob/master/ipynb/satellite_analysis.ipynb but got stuck at the iteractive mapping part. import ipyleaflet map1 = ...
2
votes
1answer
937 views

ipyleaflet draws?

If I draw a circle with map control in a map, how can I store in a variable? from ipyleaflet import Map, basemaps, basemap_to_tiles, DrawControl watercolor = basemap_to_tiles(basemaps.Stamen....
0
votes
1answer
119 views

Docker Image: Atmospheric Correction in Earth Engine

Following https://github.com/gee-community/ee-jupyter-contrib/tree/master/docker/atmcorr-ee I was able to build and run docker. And to authenticate and git clone, but while: cd gee-atmcorr-S2/...
1
vote
1answer
76 views

Building Docker image including IPython Notebook and EE?

I'm starting to play with EE, already tried a bit of Javascript API. Now trying the Python one. So I found https://github.com/tylere/docker-tmpnb-ee and git cloned it, then from the terminal I did ...
4
votes
2answers
914 views

Google Earth Engine IDE alternatives?

I'm starting to play with EE and I jumped right into the online web-based IDE for the Earth Engine JavaScript API (https://developers.google.com/earth-engine/playground). I see there is also a Python ...
0
votes
0answers
86 views

Using Yelp API lat/long in Folium — CRS needed?

I understand the default crs for Folium is EPSG3857. I am pulling lat/long data from a yelp query and am not sure if I need to be converting to a GeoSeries and assigning a CRS to the GeoSeries. It ...
1
vote
3answers
5k views

Ipyleaflet map object doesn't display in Jupyter Notebook but it gets created

When running the code from the example (https://ipyleaflet.readthedocs.io/en/latest/api_reference/map.html#example), no map get displayed. from ipyleaflet import Map, basemaps, basemap_to_tiles m = ...
1
vote
1answer
615 views

How to use Planet Lab tiles in Jupyter Notebook?

I just want to use Planet tiles as a basemap for a Jupyter Notebook application, using ipyleaflet widget. In my environment, I imported these packages: from ipyleaflet import Map, basemaps, ...
0
votes
1answer
365 views

Google-Earth-Engine + Jupyter : filterBounds not working in Landsat imageCollection

I have a simple problem of not being able to select a single Landsat image using filterBounds within Jupyter environment. It used to work just fine in Earth Engine's online interface. I don't know why ...
1
vote
2answers
444 views

Google Earth Engine API: localhost refused to connect

I'm trying to implement this https://github.com/samsammurphy/gee-atmcorr-S2 in Google Earth Engine using Docker Toolbox for atmospheric correction. I first install Datalab following the instruction ...
1
vote
0answers
466 views

Rasterio : rasterio.drivers() - 'module' object is not callable [duplicate]

I'm trying to pass a script on jupyter-hub with a specific kernel. With my last local installation it worked but now with my kernel I have this error: TypeError ...
0
votes
1answer
143 views

import ARCSI as module in python

Any way to work with ARCSI (Atmospheric and Radiometric Correction of Satellite Imagery) like any other python package? Can it be imported in a jupyter notebook? >>>import arcsi or is ...
1
vote
0answers
621 views

How to include maps in Jupyter notebook HTML export?

I'm running the 1.4.2 version of the ArcGIS Python API. In a Jupyter Notebook, I create a map like: lowes = "Arkansas USA Lowe's" lowes_map = gis.map("AR, US", 6) lowes_map ...and get my output. I ...
1
vote
0answers
237 views

how to plot lat lon data to a map using jupyter notebook?

import arcgis from arcgis.gis import GIS from arcgis.features import SpatialDataFrame ago_gis = GIS() search_subset = ago_gis.content.search("Hong Kong Topographic Map") subset_item = search_subset[...
9
votes
4answers
9k views

GDAL ImportError: DLL load failed: The specified module could not be found

I'm running Python 3.5.4 on Anaconda and i'm trying to install geopandas. I've followed the instructions to install geopandas here - http://geoffboeing.com/2014/09/using-geopandas-windows/ - but ...
0
votes
1answer
396 views

Tiled Web Map; what tile provider offer antarctic map tiles?

General Idea: I plot Sentinel-2 and Sentinel-3 images on a web map in a Jupyter Notebook using ipyleaflet. This works perfectly fine with the default Mercator projection. For images at high latitudes ...
3
votes
1answer
945 views

How to embed a mapview map in a Jupyter Notebook with IRkernel?

I'm looking to integrate some awesome mapview interactive maps in a Jupyter Notebook with the IRkernel. I would like to know if: Is it possible? How can I achieve that? Is there any workaround using ...
1
vote
0answers
987 views

Graphically select a subset of Shapely objects in a Jupyter/iPython notebook

This question is being cross-posted from stackoverflow. The interoperability between Shapely and Jupyter/iPython is nice. I can do cool stuff like create a bunch of geometric shapes and view them in ...
4
votes
1answer
1k views

Jupyter and ArcGIS error: arcpy needs to run within an active ArcGIS Conda environment

I have installed ArcGIS Pro 1.3 and Anaconda 4.2.0 (in that order). I then followed the instructions from ESRI on Adding the ArcPy Path to Anaconda which made Jupyter find the arcpy module but I get ...
1
vote
0answers
660 views

Error and kernel dies with shapely/geos inside Jupyter notebook

I have a Python 2.7 script (code below) that scrapes data from a table on the web and draws a map. It runs fine from the command line using $ python bears.py When I run the identical script from ...