Questions tagged [jupyter-notebook]
Open-source web application for creating and sharing documents that contain live code, equations, visualizations and explanatory text.
133 questions
1
vote
0
answers
33
views
Stacking rasters into multi-band raster causes value distribution issues
My goal is to stack two seperate single band rasters into a multi-band raster using rasterio. Initially, I seperately check the distribution of each raster. Here are the steps:
import numpy as np
...
1
vote
1
answer
71
views
Why is Voila making Ipywidgets Panels fill width?
I've been working on a geemap project in Jupyter Notebooks because that's what was recommended, but now I'm starting to look at publishing. I'm trying out Voila because it has a bunch of ...
1
vote
0
answers
42
views
Reload item with ArcGIS Python API [closed]
This tutorial shows how to easily download an item from an ESRI portal using the Python API. Can you open the item just downloaded in a different, offline, Python environment that doesn't have access ...
0
votes
1
answer
69
views
Using GDAL via command line execution inside a JupyterNotebook in Visual Studio Code
On Windows 10, using a JupyterNotebook in Visual Studio Code while running a Python virtual environment using Conda, how can one make use of ogr2ogr and gdal commands from inside the JupyterNotebook ...
2
votes
1
answer
197
views
Unable to align TIFF layer with world map
I am trying to align (perfectly and properly) a TIFF file with either Google's map or the OpenStreetMap (or any other, if there are any decent ones).
I have tried so many different version, some ...
0
votes
1
answer
47
views
Replacing a bounding box a shapefile in DEA Phenology code
I am using the DEA Sandbox Vegetation phenology notebook (https://knowledge.dea.ga.gov.au/notebooks/Real_world_examples/Vegetation_phenology/)
I am hoping to call on a shapefile rather than using lat/...
1
vote
0
answers
914
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&...
1
vote
0
answers
129
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 ...
1
vote
0
answers
127
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 ...
0
votes
1
answer
71
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={...
0
votes
1
answer
137
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....
0
votes
2
answers
1k
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, ...
1
vote
1
answer
400
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 ...
0
votes
1
answer
67
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'...
1
vote
2
answers
380
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 ...