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
1 answer
22 views

RuntimeWarning when I try to plot a raster

I'm using JupyterNotebook to analyze some GIS data. I need to clip a raster and plot the result but I've a strange problem. Folder with data is here; the raster size is 1MB. I'm be able to plot the ...
user avatar
0 votes
0 answers
22 views

with rasterio.open gives IndexError: tuple index out of range

Description: This code is written in jupyter notebook using python for reading nitrogen values from OMI satellite files I am using Anaconda for running this notebook. here the code line with rasterio....
user avatar
  • 1
0 votes
1 answer
38 views

I am trying to perform a machine learning analyis using the ArcGIS module in Jupyter notebooks but strange error

I was trying to import all modules for ArcGIS to perform a machine learning analysis. However, the code gives me an error at the line from arcgis.learn. Code: %matplotlib inline import pandas as pd ...
user avatar
0 votes
1 answer
58 views

Spatial Data on Python - "EEException: Can't encode object"

I'm working on estimation chlorophyll-a using a Landsat 8 image on Python. But the result doesn't showing the image. I've tried to changing it but it doesn't work. I don't know how to fix it. This is ...
user avatar
0 votes
1 answer
52 views

Folium map rendering grey squares on data loaded from geopandas frame

I have a geodata frame loaded in from census data that shows the Dutch population density per 500 by 500 meter square. I am trying to load this data into an interactive map with folium and my geodata ...
user avatar
0 votes
0 answers
28 views

Loading Geotiff images in a local storage to jupyter notebok using geemap

I am trying to use Geotiff images stored in an s3 bucket in my VM. There is a similar thing when using GCP using geemap.load_GeoTIFF() . I am wondering if there is a wrapper function in geemap that ...
user avatar
1 vote
0 answers
55 views

Download of a file geodatabase failing when using script and query

I'm trying to download a file geodatabase using a script. The script is taken from the Esri documentation with minimal changes, basically I'm querying for the required feature layer appending date and ...
user avatar
0 votes
0 answers
29 views

Converting feature layer to point using ArcPy with ArcGIS API for Python

I'm using jupyter notebooks (localhost, not in pro or AGOL), and I want to convert a feature layer to point. I've been trying to do it using arcpy.FeatureToPoint_management() but I'm having some ...
user avatar
  • 1
0 votes
1 answer
354 views

Folium and heatmap is not opening in pycharm

I'm using PyCharm version 3.7. When I tried to open simple folium map I'm not getting any output. I tried something like this import folium import pandas as pd import csv dataframe=pd.read_csv("...
user avatar
2 votes
1 answer
78 views

Putting shapefile on map in ArcGIS Online using ArcGIS Python API and Jupyter Notebook

I inserted a shapefile (in .zip as required) to ArcGIS Online through Jupyter notebook: from arcgis.gis import GIS my_gis = GIS() m = my_gis.map() #let's put the shape file to AGOL shp_item = my_gis....
user avatar
  • 287
0 votes
0 answers
20 views

Jupyter notebook magic commands fail in ArcGIS Pro

When I run a Jupyter Notebook in ArcGIS Pro 2.8.3, magic commands do not work. For example using: %magic Produces: --------------------------------------------------------------------------- ...
user avatar
  • 101
1 vote
1 answer
183 views

Google Earth Engine Python Folium Map Inspector

I'm calculating the Enhanced Vegetation Index (EVI) of Sentinel-2 data on Google Earth Engine's Python API, specifically in a Jupyter Notebook. I'd like to check that the calculations are producing ...
user avatar
  • 129
3 votes
1 answer
155 views

Google Earth Engine Python expression syntax

I'm writing out a way to calculate the Enhanced Vegetation Index (EVI) of Sentinel-2 images in the Python API of Google Earth Engine, specifically in Jupyter Notebook. I have the same code written for ...
user avatar
  • 129
0 votes
0 answers
64 views

gdal_pansharpen.py raise module errors

I want to use gdal pansharpen python function. I have two tif files, one is the panachromatic raster and on is the 4 bands raster. I'm using gdal version 3.4.0. I have tried to use it, based on this ...
user avatar
  • 1,797
1 vote
0 answers
229 views

Show marker moving live along an ipyleaflet map?

I'm trying to simulate the real-time movement of a vehicle along a pre-determined path (as a list of coordinates) on ipyleaflet (running on a Jupyter Notebook). What I've tried is to instantiate a ...
user avatar
-1 votes
1 answer
80 views

Importing libraries in JupyterNotebook

import solaris as sol from solaris.data import data_dir import os import json I already installed solaris: git clone https://github.com/cosmiq/solaris.git cd solaris git checkout [branch_name] conda ...
user avatar
0 votes
1 answer
133 views

Use arcpy.FeatureClassToFeatureClass_conversion() on a list

This works on a single feature class: import arcpy from arcpy import env ''' convert feature class to shapefile in Data folder ''' arcpy.env.workspace = r'\\uncpathto\J\Python\Data' in_feature = r'\\...
user avatar
  • 798
0 votes
0 answers
37 views

Shapefile is not able to clip raster

I am working on using shapefile containing various polygons to clip a raster image. The code works for some raster images, but for some raster images, blank clipped rasters are generated. Both the ...
user avatar
0 votes
2 answers
151 views

Problem with gdal.WarpOptions concerning reference

I have a tiff file that I want to crop down to a shp cutline and reproject. If the code is: clip_spec=gdal.WarpOptions(format='GTiff',cutlineDSName=os.getcwd()+'/moksha/DEM/cutline2.shp',cropToCutline=...
user avatar
0 votes
0 answers
331 views

geemap: Error displaying widget - model not found

I am using Jupyter Lab to try and get a map to display, but I receive Error displaying widget: model not found whenever I try to run this code. It works on the web browser version so I don't know ...
user avatar
1 vote
2 answers
182 views

Subsetting a large CSV file using coordinates columns

I have an extremely large CSV file (3GB) and want to choose a part of that based on columns(lat,lon) and do analysis on that. I can't load it into a desktop app like ArcGIS and select a region ...
user avatar
  • 13
0 votes
0 answers
38 views

How can I "install" and use Orfeo Toolbox (OTB) through python 3.6?

Using Python v.3.6.8 through Jupiter notebook (in Windows 10), how can I set and use OTB (v.7.3.0)? I followed the steps described in the official cookbook and other tutorials, however, the result is: ...
user avatar
  • 61
2 votes
1 answer
69 views

Is it possible to change the raster image size on the fly?

I am trying to change the raster image size on the fly. I have 10 band therefore I cannot use OpenCV. gdal.Warp() gives the option to change the size but I have to save it in a folder. Is there ...
user avatar
  • 165
1 vote
2 answers
166 views

Jupyter Notebook fails to launch in ArcGIS Pro 2.8

Since upgrading to ArcGIS Pro 2.8 from 2.6, I am facing an issue with the Jupyter Notebook that fails to load and returns an error: Failed to Load Notebook What all I have tried: Tried opening the ...
user avatar
1 vote
0 answers
433 views

Accessing QGIS using Jupyter Notebook

Using Python for QGIS in a Jupyter Notebook, how can I automate the task of importing a dxf file getting a data web service as a layer ? I have tried (https://lerryws.xyz/posts/Install-Jupyter-...
user avatar
2 votes
0 answers
64 views

Do the MTL.txt and ANG.txt need to be changed after reclassification using QGIS is done on one or two bands?

I had reclassified("Reclassify by table" in QGIS) the SWIR1 band value for a coastal erosion project to differentiate the land and the water better uisng QGIS and then replaced the SWIR1....
user avatar
  • 23
2 votes
1 answer
121 views

Unable to load the data product of Open Data Cube dataset image

I'm trying to load data product of the indexed Open Data Cube dataset image through the Jupyter Notebook. In this I'm using Resourcesat-2 AWiFS Data. The method used is shown below: import matplotlib....
user avatar
6 votes
1 answer
646 views

Raster data viewshed analysis with Python

I want to write an algorithm that performs viewshed analysis in Python programming language using digital elevation model. I generated points from pixels from the raster data in QGIS. I calculated the ...
user avatar
  • 61
0 votes
0 answers
451 views

Calculating area or counting number of pixels by category using Python

I am trying to count the number of pixels and calculate the area of each category in 5 images. The categories are 1,2,or 3 in three of the images and UP and P in two of the images. How do you ...
user avatar
  • 47
0 votes
1 answer
72 views

Dataset documentation generation script for Landsat 8 collection 2 level 2 surface reflectance in ODC git repo fails to run [closed]

On running the script in the link below to generate the dataset documentation for data downloaded from USGS Landsat 8 Collection 2 Level 2, it ends in an error. ls_usgs_sr_l2.py script The error : ...
user avatar
  • 23
0 votes
0 answers
41 views

TopologicalError for Landsat 8 data on Open Data Cube

I've added Landsat 8 collection 2 level-2 dataset to Open Data Cube. While trying to access the dataset through the Jupyter Notebook with the following code, ds2 = dc.load(product='LC08_L2SP_T1', ...
user avatar
  • 193
1 vote
2 answers
130 views

Not able to plot Open Data Cube dataset image

I'm trying to plot the indexed Open Data Cube dataset image through the Jupyter Notebook. I'm using this demo notebook after making a clone of this repository on my local machine. The plot() method as ...
user avatar
  • 193
0 votes
1 answer
670 views

Google Earth Engine Exporting Image Collection

I am new to Google Earth Engine and satellite imagery in general. My goal is to export bands B1-B7 from the [Landsat 8 image collection][2] over a given geometry and be able to visualize each band (or ...
user avatar
0 votes
0 answers
163 views

Google Earth Engine Exporting Image from Collection without taking median

I am new to Google Earth Engine and satellite imagery in general. My goal is to export bands B1-B7 from the [Landsat 8 image collection][2] over a given geometry and be able to visualize each band (or ...
user avatar
  • 1
1 vote
1 answer
100 views

Product information on Open Data Cube is None and NaN

I'm trying to access the Open Data Cube product (indexed Landsat-8) through the Jupyter notebook. Except for the name and description, all other product information such as instrument, format, CRS, ...
user avatar
  • 193
0 votes
0 answers
66 views

Trying to import shapefiles to Jupyter while keeping symbology

I am working on a project and as part of that project I am combining a few different .shp files together. I downloaded QGIS and put a few files together while messing around with the symbology so they ...
user avatar
1 vote
1 answer
261 views

Accessing Open Data Cube through Jupyter Notebook

I'm trying to access the product added to datacube through Jupyter Notebook. For this, I'm using this demo notebook. The command import utils.data_cube_utilities.data_access_api as dc_api showing ...
user avatar
  • 193
1 vote
0 answers
50 views

Rasterizing vector file in EPSG:4326 using GDAL/OGR in Jupyter notebook

I was trying to rasterize the vector file in Python. I used this code: gdal.Grid("trial2.tif", "merged2018-19.gpkg", zfield="h_li", algorithm="nearest") (the ...
user avatar
2 votes
1 answer
153 views

Unable to access Open Data Cube database through Jupyter notebook

I am trying to access the product added in Open Data Cube database through Jupyter notebook. I'm using this demo notebook. But I'm not able to connect to the database. The below line showing the error....
user avatar
  • 193
1 vote
0 answers
24 views

Could not make join work in toolbox but works in Jupyter notebook

I am selecting points from the map and roads and trying to join them based on my picks. It works in Jupyter notebook however it does not work in toolbox and I could not figure it out. I tried to ...
user avatar
1 vote
1 answer
170 views

Google Earth Engine .Map not finding all images in image collection

I have an image collection of 4 images and when I map a function to this it only picks up on two images. I've created a simple version of the problem to hopefully make this more solvable. # data to ...
user avatar
3 votes
1 answer
168 views

Accessing iface in QGIS from Jupyter Notebook?

I am trying to work with an active QGIS from a jupyter notebook - specifically I'd like to be able to access iface so I can perform some layer calculations. I am having trouble getting the map layers ...
user avatar
  • 113
0 votes
1 answer
1k views

How can I share folium map on the web?

I have created a folium map with markers and popups in jupyter notebook and saved it as map.html I am looking for a way to share this map with others or host on the web, such that the markers and ...
user avatar
1 vote
1 answer
384 views

Creating new Python Script tool with ArcGIS Notebooks

I am trying to create a new tool in ArcGIS Pro that is based on a python script written in the Jupyter Notebook interface. I realize I can write the script elsewhere and save it as a *.py file and ...
user avatar
5 votes
0 answers
463 views

Using PyQGIS functions outside QGIS

I want to use PyQGIS function crs.isValid() in normal Python file outside of QGIS like this: wkt = 'GEOGCS["WGS84", DATUM["WGS84", SPHEROID["WGS84", 6378137.0, 298....
user avatar
  • 1,385
4 votes
2 answers
374 views

Error while doing Watershed analysis using Python

I am trying to do watershed analysis using Python in jupyter notebook. Whenever I am passing commands regarding watershed delineation in Python I am getting output as raster matrix and when I am ...
user avatar
0 votes
2 answers
2k views

Downloading RGB Sentinel-2 with Google Earth Engine and Python

I am fairly new to the Google Earth Engine platform, and I want to create a dataset for my machine learning project using the aforesaid platform. As far I have this code for downloading a single ...
user avatar
0 votes
1 answer
188 views

Request Sentinel1 data with sentinelhub API doesn't work

I'm trying to acess Sentinel1 images using sentinelhub API with Jupyter lab notebook. I'm getting error messages and I don't understand why I get them. This is how I try to acess umages with IW (as ...
user avatar
  • 1,797
0 votes
0 answers
1k views

Can’t import any python modules in Jupyter notebook with newly created environment, ImportError: DLL load failed: specified module could not be found

(base) C:\WINDOWS\system32>conda activate agrodss (agrodss) C:\WINDOWS\system32>python Python 3.7.7 (default, May 6 2020, 11:45:54) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32 Type &...
user avatar
0 votes
0 answers
965 views

Mapping multiple circle markers in a single layer with ipyleaflet and jupyter

How do I show multiple circle markers with ipyleaflet in jupyter? I want to add them all as one layer (not individual layers) and I do not want to use the MarkerCluster class. The documenation only ...
user avatar