Skip to main content

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
0 votes
0 answers
54 views

After installation of pyogrio Could not detect PROJ data files. Set PROJ_LIB environment variable to the correct path. when importing gpkg

When I import a geopackage with only geopandas all is fine, however, if I try to use pyogrio like this in my jupyter notebook: gpd.options.io_engine = "pyogrio" network = gpd.read_file(r&...
i.i.k.'s user avatar
  • 1,753
1 vote
0 answers
55 views

Ipyleaflet map crashes Jupyter notebook and says out of memory

I wrote a code to show some points on ipyleaflet map that will be updated automatically. at first, the map shows fine, but despite removing markers after a certain time (eg. 72 hours) the notebook ...
Shane roar's user avatar
0 votes
0 answers
30 views

HTTPError: HTTP Error 403: Forbidden after entering ee.Authenticate() token code

This is my first time using geemap and ee libraries. I have followed every step and wrote the code below: import geemap import ee ee.Authenticate() After getting the token code from the pop-up ...
Sam Q's user avatar
  • 1
0 votes
1 answer
30 views

Why does the polygon saved in geodataframe have a different value from the shapely polygon it came from?

I'm working with Jupiter and ipywidgets and Ipyleaflet , trying to draw polygons on a map and saving to a geodataframe. I have the following in a notebook cell: myDrawControl = DrawControl( rectangle={...
user1592380's user avatar
0 votes
1 answer
50 views

Selecting the right CRS for a KML file in Jupyter

I'm working with Ipyleaflet to display a KML file in a Jupyter Notebook I have the following in a cell: import fiona import geopandas as gpd from ipyleaflet import GeoData, Map, basemaps fiona....
user1592380's user avatar
0 votes
2 answers
303 views

Convert a GeoJSON file to a Parquet format

I have a large GeoJSON file which I store and read as follows: geomap.to_file(path_to_output + 'geomap_cleaned.geojson', driver="GeoJSON") geomap = import_geojson(path_to_data, ...
bravopapa's user avatar
  • 485
0 votes
0 answers
28 views

How to open/display the attribute table from a GDB with Arcpy to help QC previous notebook code steps before moving on to the next steps in script?

Within ArcGIS Pro 3.1, I've created a Jupyter notebook that automates pulling records from an SDE feature class, then filters those based on a Geocode Score. The records above 80 remain in the ...
LuisVazquez's user avatar
1 vote
1 answer
108 views

DataFrame to GeoDataFrame Error: could not convert string to float

I have two Excel sheets with x und y coordinates (EPSG 4326) and several other attributes. My aim is to match both Excel sheets via the coordinates (geopandas.sjoin_nearest). I try to convert the ...
noj's user avatar
  • 13
0 votes
1 answer
43 views

Use v.clean function from GRASS in Jupyter Notebook

I want to automate a process which involves using v.clean tool from GRASS inside a Jupyter Notebook. I've read documentations on how to use Python with GRASS, but it seems impossible to do it or I don'...
Freestyle Season's user avatar
1 vote
2 answers
140 views

How do I integrate the environments of QGIS and Anaconda/Spyder?

I have version 3.34 installed on my Windows 11 desktop. In addition I have a full install of Anaconda which gives me full access to Spyder and JupyterLab, both of which I very much enjoy. My challenge ...
Carl Huxohl's user avatar
1 vote
0 answers
27 views

How to make mesh layer visible in JPEG map using Jupyter from QGIS

I am working with an active QGIS project. I have few layers in the .qgz file. All I want is to have a .png format map from this .qgz file using jupyter. I have added the code below. from qgis.gui ...
Noshin's user avatar
  • 41
3 votes
1 answer
176 views

Why Mesh layer is not visible in QGIS map using Jupyter (outside QGIS)?

I am trying to create a map in Jupyter from QGIS. I have few vector, raster and mesh layers in QGIS. All I want is to add these layers to the map. I have managed to add the shape files and google map ...
Noshin's user avatar
  • 41
0 votes
1 answer
62 views

Digital Advisory Services for Rural Farmers using ML, GIS and RS [closed]

I am working on a GIS-based project to help with the delivery of advisory services to rural farmers. This project is demanding the use of Open-Data Cube and the SandBox environment. It is more like a ...
Joshua's user avatar
  • 1
1 vote
0 answers
41 views

Using QGIS Notebook Extension Compatibility on Windows

I'm currently working on integrating the qgis-nbextension into my workflow on a Windows system. However, I'm encountering compatibility issues and could use some guidance. Here's what I've done so far:...
rsm's user avatar
  • 11
0 votes
1 answer
126 views

Import error with using QGIS Native functions in Jupyter Notebook environment

I want to calculate area of all polygon features using Field Geometry function of QGIS 3.22 version. But somehow it always gives an import QGIS error, but when I tried to do a simple buffer of a ...
soumik chakraborty's user avatar
4 votes
1 answer
554 views

How to import qgis into a jupyter notebook when using a conda environment?

System: Windows 10 conda version : 23.3.1 I have setup a conda environment with qgis according to this: https://gisunchained.wordpress.com/2019/05/29/using-qgis-from-conda/ However, I used the newest ...
i.i.k.'s user avatar
  • 1,753
0 votes
0 answers
95 views

Using jupyter_client version with ArcGIS API for Python

I am using ArcGIS API for Python. When I install Jupyter_client==7.1.0, I get error of arcgis 2.0.1 requires jupyter-client<=6.1.12, but you have jupyter-client 7.1.0 which is incomatible. When I ...
Samira Goodarzi's user avatar
0 votes
0 answers
178 views

Geopandas read_file loads polygon data as lines

I am loading nfhl fema flood layer to geopandas via jupyter workbook and trying to isolate one state of data. the code is import geopandas as gpd import folium import pygeos #load USA boundary data ...
Deeba Yavrom's user avatar
0 votes
1 answer
1k views

Calculate area of raster overlap with polygon by raster value, geopandas

I have two inputs, a raster with values ranging between 0-2, and a polygon shapefile. import geopandas as gpd import xarray as xr import rasterio import rioxarray from rasterstats import zonal_stats ...
Stuey17's user avatar
  • 199
4 votes
1 answer
2k views

Convert local file (shp/CSV) into Earth Engine (EE) object

I work on Jupyter lab notebook on my local PC. I want to download images from Google Earth Engine based on a shape I have, which is a GeoPandas. The GeoPandas dataframe I have is coming from a ...
ReutKeller's user avatar
  • 2,169
0 votes
1 answer
462 views

Sample regions with Geemap yield empty FeatureCollection

I have feature collection of 200 points and raster which is a result of sum of three bands of an Image. I want to create a table which will show the points (feature collection) and the value these ...
ReutKeller's user avatar
  • 2,169
0 votes
2 answers
107 views

Converting threshold MNDVI from Google Earth Engine to Jupyter Python?

I want to convert the script threshold for MNDVI from Google Earth Engine (JavaScript) to Jupyter (Python). In this case, we make the threshold to 4 class MNDVI and the result is one layer, like this ...
putrimegi's user avatar
1 vote
1 answer
79 views

out_field in ArcGIS Python API returning unwanted fields

I am trying to output ONLY the Name Field in sdf using ArcGIS Python API and Notebook like thia query = layer.query(where="POP2010 > 1000000", out_fields='NAME') query.sdf But I am ...
Suffii's user avatar
  • 588
1 vote
1 answer
160 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 ...
MaxDragonheart's user avatar
0 votes
1 answer
151 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 ...
Saad Ullah's user avatar
0 votes
1 answer
1k 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 ...
Martanti Aji Pangestu _'s user avatar
0 votes
1 answer
657 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 ...
GLaDTheresCake's user avatar
1 vote
0 answers
515 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 ...
David Archibald's user avatar
0 votes
1 answer
2k 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("...
user199125's user avatar
2 votes
1 answer
465 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....
Estiivan's user avatar
  • 397
1 vote
1 answer
2k 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 ...
Beck's user avatar
  • 301
3 votes
1 answer
840 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 ...
Beck's user avatar
  • 301
1 vote
1 answer
311 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 ...
ReutKeller's user avatar
  • 2,169
2 votes
1 answer
1k 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 ...
Metrician's user avatar
-1 votes
1 answer
411 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 ...
Farhat2510's user avatar
0 votes
1 answer
1k 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'\\...
Pfalbaum's user avatar
  • 911
0 votes
0 answers
147 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 ...
Utkarsh Karn's user avatar
0 votes
2 answers
1k 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=...
Nikolay Yasinskiy's user avatar
2 votes
0 answers
810 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 ...
Richard McCormick's user avatar
1 vote
2 answers
744 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 ...
milad's user avatar
  • 13
1 vote
1 answer
830 views

Installing and using Orfeo Toolbox (OTB) through Python

Using Python v.3.6.8 through Jupyter 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: ...
Jando's user avatar
  • 89
3 votes
1 answer
233 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 ...
user123's user avatar
  • 195
1 vote
2 answers
2k 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 ...
Yogesh Chavan's user avatar
2 votes
2 answers
2k 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-...
solar_automation_enthu's user avatar
2 votes
0 answers
95 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....
Qexpert's user avatar
  • 23
2 votes
1 answer
254 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....
Chhavi Tomar's user avatar
7 votes
1 answer
3k 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 ...
cer.as's user avatar
  • 71
0 votes
0 answers
936 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 ...
Steph's user avatar
  • 47
0 votes
1 answer
128 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 : ...
Qexpert's user avatar
  • 23
0 votes
0 answers
186 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', ...
Badal's user avatar
  • 329