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
0answers
13 views

Regardin cloud masking [closed]

I want to apply cloud masks on Landsat 8 Collection 2 Image using Python in Jupyter Notebook. Currently, I am using geemap library for doing the GEE taks. How could I achieve this ? Any suggestion. ...
1
vote
0answers
13 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 ...
1
vote
0answers
41 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-...
2
votes
0answers
38 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....
2
votes
1answer
36 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....
5
votes
1answer
77 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 ...
0
votes
0answers
21 views

How do you export raster images to Drive from Google Colab?

I have an image that I performed a calculation on and would like to export it to my Drive but for some reason, the image is not exporting, though I am able to use this code on other images. For ...
0
votes
0answers
90 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 ...
0
votes
1answer
33 views

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

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 : ...
0
votes
0answers
21 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', ...
1
vote
2answers
58 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 ...
0
votes
1answer
56 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 ...
0
votes
0answers
31 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 ...
1
vote
1answer
39 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, ...
0
votes
0answers
38 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 ...
1
vote
1answer
70 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 ...
1
vote
0answers
12 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 ...
2
votes
1answer
61 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....
1
vote
0answers
19 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 ...
1
vote
1answer
44 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 ...
1
vote
1answer
68 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 ...
0
votes
0answers
44 views

Warning while importing GeoPandas in Jupyter notebook

While importing geopandas in jupyter notebook, I'm getting following warning. import geopandas as gpd Warning: PROJ: proj_create_from_database: SQLite error on SELECT name, type, ...
0
votes
1answer
198 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 ...
0
votes
0answers
23 views

Accessing organization AGOL from Jupyter notebook

I would like to access my content in my university's AGOL portal using Jupyter notebooks running on chrome in the Anaconda environment. I have installed the ESRI ArcGIS package in that environment. ...
1
vote
1answer
158 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 ...
0
votes
0answers
77 views

geopandas.to_crs(epsg=3395) does not work in jupyter notebook. it seems some mismatch with pyproj & geopandas versions?

After importing geopandas df , with epsg =4326, I tried to re project it to epsg =3395 using gdf.to_crs(epsg =3395) in jupyter python note book. I got error "RuntimeError: b'no arguments in ...
4
votes
0answers
202 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....
4
votes
2answers
191 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 ...
0
votes
2answers
677 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 ...
0
votes
0answers
56 views

How to rotate a Contextily basemap in matplotlib and Jupyter notebook

I asked this question on Stack Overflow because I thought the Jupyter Notebook and matplotlib aspects were better suited for that forum, but I didn't have any luck; it is also a geopandas and ...
0
votes
1answer
99 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 ...
0
votes
0answers
937 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 &...
0
votes
0answers
495 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 ...
0
votes
0answers
33 views

Invalid UUID string in sentinelhub when tryng to access satellite image

I'm trying to use sentinelhub package on jupyterlab notebook and for some reason I don't manage to be able to acess images. When I use my credentials in the configuration at the beginning it works and ...
1
vote
0answers
46 views

Loss of Jupyter notebooks in ArcGIS Pro after installing Deep Learning modules

I've managed to break the ability to use Notebooks in ArcGIS Pro by installing the deep learning modules in a cloned environment. These are the dependencies: conda install -c esri -c fastai -c pytorch ...
1
vote
0answers
15 views

Rasterio showing a blue (blank) image wrong [closed]

I am trying to open a raster in my Jupyter Notebook using rasterio. I began with two Landsat 8 images, which I processed in QGIS to calculate the NDVI. I want to plot the original images used for the ...
2
votes
1answer
320 views

Rasterio doesn't show the coordinates when using "imshow "

I have sentinel 2 image and I use rasterio to display it. I am using "imshow" to display it. when I display it, it doesn't show any coordinates: src=rasterio.open('14072020.tif') #Display ...
2
votes
1answer
36 views

Using external table to iteratively change parameters into ArcPy code

I am working with Python 2.7 and ArcPy under Jupyter notebook environment. I would like to adapt iteratively my code to a reference table. This is my reference table which contains the 3 variables ...
0
votes
0answers
32 views

Is there a way to plot Triangulated Irregular Networks (TIN) in R Jupyter notebooks?

I was wondering if it is possible to plot TINs (Triangulated Irregular Networks) in Jupyter plots (with R kernel)? I use R's sf package (in conjunction with PostGIS) and ggplot2 in Jupyter to plot ...
5
votes
1answer
501 views

Measuring compactness in Python [closed]

I have set of polygons whom I would like to check their compactness. I'm working in Jupyter Notebook and my geometry is GeoPandas. I would like to try Polsby-Popper test and Schwartzberg test (and ...
2
votes
1answer
55 views

Saving created .kea files

I have the following script that converts a list of .tiff files in the working folder to .kea files using gdal_translate. When I run the script in the command line it works fine and creates the .kea ...
1
vote
0answers
23 views

Plot areas in ArcGIS on Juypter

I'm trying to plot a filled area from an sdf, but no matter my settings, I seem to just get an outline of the shape with a green dotted line. I've tried with a code sample from https://developers....
1
vote
1answer
123 views

Cannot execute gdalwarp in a Python notebook

I try to reproject a raster using gdalwarp. To do so I use the subprocess package of Python3 : command = [ 'gdalwarp', map_raster, map_raster_proj, '-t_srs', 'ESRI:54009' ] print(' '....
0
votes
1answer
144 views

ArcGIS API for Python geometric filter of feature layer producing Runtime Error: 'geometry parameter invalid'

I am trying to select a handful of features from an Enterprise Portal feature layer using the ArcGIS API for Python. Specifically I am trying to do a spatial selection, where the selected features are ...
1
vote
1answer
242 views

Adding query layer to MapView in Jupyter Notebook returns "RuntimeError: Cannot infer layer: will not be added to map"

I am working within a Jupyter notebook, trying to display a query layer (querying a SQL database) into a map view within the notebook. I receive a Runtime Error (described below) when I try to add ...
2
votes
1answer
3k 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
vote
1answer
204 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
41 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
358 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 ...
1
vote
1answer
56 views

How to deal with several markers in the same location on a map, e.g. to let viewers know they're there, and regarding tooltips with different info

I've created a web map. There are several markers on it, each representing something, and a tooltip shows related info. Several markers are in the very same location (lat, lon). So there are two ...