Questions tagged [list]

Linear collection of items

Filter by
Sorted by
Tagged with
0 votes
1 answer
20 views

projectRaster on a list of rasters

I have two raster layers in a list format called myrasterlist that differ in extent and crs. The list looks like this: [[1]] class : RasterLayer dimensions : 540, 537, 289980 (nrow, ncol, ncell)...
user avatar
2 votes
1 answer
48 views

Array (Error) Array: Unrecognized type, may only use numbers or lists, found type Array

I am getting this error when trying to subtract the array with its mean value in Google Earth Engine JavaScript API var from = ee.Array([2,3]) var meann = from.reduce(ee.Reducer.mean(),[0]) var to = ...
user avatar
3 votes
2 answers
138 views

How to use a list with spatial dataframes in a for loop? - R

I have three spatial dataframes (polygons), created via this tutorial. The three spatial dataframes must be exported as shapefiles via a for loop. I created a list polygons containing the three ...
user avatar
1 vote
0 answers
22 views

Report a listing of some fields from attribute table

QGIS 3.22.4 For working purposes, I want to have a listing of some attributes in a shapefile (line), and have those information as a listing (multiple line per page). No geographic dat (maps,...) ...
user avatar
  • 418
4 votes
2 answers
134 views

Writing list as attribute field in PyQGIS

This answer got me close https://gis.stackexchange.com/a/286780/204059, but I only get the last value of my list for all object fields. Example: My list = [REL_1, REL_2, REL_3]. My layer has three ...
user avatar
  • 65
1 vote
1 answer
50 views

How to open a list of images from an asset as an Image Collection?

I need to create an Image collection from a list of images that I import from an asset in GEE. This is the code I am using: //THE CREATION OF A IMAGECOLLECTION WORKS WITH TWO IMAGES LOADED HERE var ...
user avatar
0 votes
0 answers
18 views

how to extract all pixel value from mask area in Google earth engine [duplicate]

Can I extract all pixel values as a list for the masked area (the white area in the figure below) in GEE. I need to know all the pixel values and its indices for the area.
user avatar
0 votes
1 answer
48 views

Trying to Call a List From a Function within one Class to Another Class

I have an Python Toolbox script that contains two classes/tools. I want it so that the user inputs the data into the first class and then the second class will handle the processing. How can I write ...
user avatar
2 votes
1 answer
39 views

How can I select features in the attribute table of a layer in QGIS from a list? [closed]

I have ~5000 features in a layer in QGIS. Each feature has a unique ID. I have a list of ~800 features (with corresponding IDs) I would like to select and remove from the layer. Which expression ...
user avatar
1 vote
0 answers
38 views

A long domain list in QField

I am using QField for an urban tree survey with a domainlist containing a couple of 100 tree (sub)species. Is there a way to 'jump' to the desired tree in the list. For example, I want to select ...
user avatar
  • 41
4 votes
4 answers
176 views

Creating list from field values with PyQGIS

How is it possible to create a list from the values of a single field in a shp using PyQGIS? Example: field_capital_name London Paris Rome list1 = [London, Paris, Rome]
user avatar
  • 83
1 vote
1 answer
17 views

Get list mapped over featureCollection for multiple regions

I am attempting to convert my normal GEE GUI JavaScript code over to Python using a Colab environment. In JavaScript I had successfully been able to display and use in calculations multiple regions (...
user avatar
0 votes
2 answers
67 views

List datasets in the memory workspace in ArcPy

I have some sensitive data which I would prefer to only exist in memory that I wish to use in ArcGIS Pro. Loading the data into the "memory" workspace is no problem, and so is deleting it, ...
user avatar
  • 187
0 votes
0 answers
35 views

ArcPy merge output only has the first feature class in list

I have a script that generates several feature classes. I use a function to create the feature classes within a loop. The loop outputs a dictionary with a name string as key and the feature class path ...
user avatar
0 votes
1 answer
29 views

How to create a list of unique strings, and print that list in a field using ArcGIS Pro field calculator

I have a landcover polygon that I spatially joined to a soils polygon. This left me with many duplicate soil types in each row of the landcover polygon. I would like to summarize the soil types to ...
user avatar
0 votes
1 answer
60 views

Why reduceColumns is not working at all in Google Earth Engine?

I have tried to extract the data in a specific column of my featureCollection using .reduceColumns, but got nothing. Other columns work, but the column "Image_ID" is not working. I thought ...
user avatar
0 votes
1 answer
51 views

Why does list.remove() not remove all items that meet the condition?

I have a bunch of feature classes in a geodatabase, and some of them are empty. I want to generate a list of all feature class names, and then remove the names of any feature classes that are empty. ...
user avatar
0 votes
1 answer
52 views

problem with list.files() in R

here you have my data https://www.eea.europa.eu/data-and-maps/data/corine-land-cover-accounting-layers. I downloaded "CLC2000 Accounting Layer " file and "CLC2018 Accounting Layer" ...
user avatar
0 votes
1 answer
34 views

Calling shapefiles as inputs and creating a list

I am working on writing my first script (Im a noob) to automate a task where we combine data from a hydrology dataset stored in a database and clip it to the project area boundary which is a shapefile....
user avatar
  • 1
0 votes
0 answers
34 views

Create new feature class from tuple by changing Object Id

I have feature class with 49 records. OID = [0,...,48]. I created 2 random non-repetitive feature classes containing 9 OIDs. in_FC = "E:/gis payannameh/TABU search/data/90spring_new.shp" ...
user avatar
0 votes
0 answers
42 views

Cropping and masking rasterstack to a list of shapefiles

I have a raster stack (nlayers = 366, ncells~10 million). I am hoping to crop and mask this raster stack to a data.frame of coordinates for which I have made a series of concentric circle shapefiles ...
user avatar
  • 23
0 votes
1 answer
146 views

How to combine two objects in an ee.List() Earth Engine

I have this type of list in Google Earth Engine: var list = ee.List([[{'class': 1, 'sum': 27188.96}, {'code': 'Cloud'}], [{'class': 2, 'sum': 1190.15}, {'code': 'Soil'}]]) and ...
user avatar
0 votes
1 answer
126 views

How to separate in two lists the coordinates of a 2D list

I have created a program that calculates the intersection of two regions on the surface of the Earth based on 2D coordinates given by the user. It asks if the user wants to add more coordinates and ...
user avatar
1 vote
0 answers
132 views

Subtracting each image in two image collections in Google Earh Engine

I have two image collections with 14 images each. I need to subtract the first image of the first collection to the first image of the second collection, the second image of the first collection to ...
user avatar
  • 126
1 vote
0 answers
120 views

Calculating the area on the surface of the Earth from the intersection of two polygons using Python

I have made a program that calculates area and perimeter based on 2D coordinates (latitude and latitude) given by the user, asking if they want to include more coordinates from the third pair, and ...
user avatar
4 votes
1 answer
110 views

Comparing polygons from zip lists inside a loop, whose data comes from user in Python

I have made a program that calculates area and perimeter based on 2D coordinates (latitude and latitude) given by the user, asking if they want to include more coordinates from the third pair, and ...
user avatar
4 votes
1 answer
92 views

Printing zip lists whose data comes from input user in a loop

Printing zip lists whose data comes from input user in a loop I have made a program that calculates area and perimeter based on 2D coordinates (latitude and latitude) given by the user, asking if they ...
user avatar
7 votes
3 answers
666 views

Selecting multiple features by ID-attribute from list using PyQGIS

With PyQGIS I would like to use several "ID"s (in a list) to select certain objects in order to make them available later in a temporary layer. I know how to select one or a few more objects,...
user avatar
0 votes
2 answers
84 views

Select layer by attribute based on multiple field attribute values in a list

I have a list of street_names ['SH-701', 'SH-67', ' ABC', 'Dharampur Road', 'Kailash Road', 'Tithal Road', 'SH-6', 'Halar Road', 'SH-183', 'Ramji Tekra Road', 'Mahatma Gandhi Road', 'Bandar Road', 'M ...
user avatar
0 votes
1 answer
41 views

Assigning element from first list to it's respective element in second list

I have a list of months(strings) & a list of image collections. I'd like to assign the value of each month's corresponding image collection to itself. How can I achieve this neatly without ...
user avatar
0 votes
0 answers
125 views

QGIS 3 Select by Location - How to get map results as a list?

Can I and if so how can I get a list of QGIS 3 "Select by location" results in a list? For example, I did an "Intersect" "Select by location"query of two data sets (about ...
user avatar
2 votes
0 answers
56 views

Iterate through list with numbers (as text)

I want to iterate through a list of coordinates and see it the last coordinate matches the first coordinate. The coordinates are stored in have a GeoJSON string: '''{"type":"...
user avatar
1 vote
2 answers
288 views

Change projection of list of rasters in R

I am handed down some RData that contain a list of of raster stacks. The file structure is pretty challenging to manipulate. After doing load(), the data looks like this: [[1]] class : ...
user avatar
  • 161
0 votes
1 answer
125 views

Searching a value from lists, get repeated results and append results to list in Google Earth Engine

Before, I asked that for search or filter values in two-segment list in Google Earth Engine at this link(Search or filter values in two-segment list in Google Earth Engine) and this question is ...
user avatar
1 vote
0 answers
22 views

Create a .csv of list of number of non null cell from raster in a mapset

How can I create a .csv file (maybe output of a function) of number of non null cells of raster from a given list in GRASS (e.g. rasters could be: myraster#1... myraster#500)? Unfortunately g.list ...
user avatar
1 vote
1 answer
161 views

How to make a linked-list in Google Earth Engine?

Now, after Noel Gorelick's very helpfull code, i have a sorted list with two-segment: var list = ee.List([ [101, 103], [102, 103], [103, 109], [109, 122], [117, 156], [122, 133], [133, ...
user avatar
3 votes
1 answer
208 views

How to sort multi-column lists by first or second column in Google Earth Engine

I have a list with two-segment. var list = ee.List([ [101, 102], [102, 103], [103, 104], [106, 100], [104, 105], [105, 106], ]) How can sort this list by first or second column?
user avatar
2 votes
1 answer
192 views

Search or filter values in two-segment list in Google Earth Engine

i have a two-segment list; var list =ee.List([[101,12155],[102,12157],[103,12158]]) i want to search or filter for 102 and get result (12157), for 103 and get result(12158) How can i do it ? i find a ...
user avatar
1 vote
1 answer
60 views

Getting values from two-segment list in Google Earth Engine

i have a two-segment list; var list =ee.List([ [101,12155], [102,12157], [103,12158]]) I can print this list with: print(list) And get values for row (0) like this command: print(list.get(0)) ...
user avatar
1 vote
0 answers
79 views

Select area in Maps and get List of all Addresses

I am looking for a way to select a residential subdivision online maps and get a list of all addresses in that selection. What do you think? I think this thread might lead in the direction of what I ...
user avatar
  • 11
1 vote
1 answer
266 views

Exporting/Listing printed console results in a table in Google Earth Engine

I wrote a code with different function to bring me different output values e.g. the values at specific dates, statistics, cloud cover, etc. I printed them all individually in the console but now I ...
user avatar
  • 111
0 votes
1 answer
43 views

Creating python list of feature classes or layers using ArcPy [closed]

Step 1: I will generate a series of point feature classes. Each will have half the distance between points as its predecessor. Step 2: I then want to cycle over those point feature classes, but in ...
user avatar
  • 139
0 votes
1 answer
264 views

Adding list of values in ModelBuilder using ArcGIS Pro

I'm searching for the option to use lists in a model of the ModelBuilder under ArcGIS Pro. In ArcMap 10.X, I could right-click on the variable - properties - and under "this variable contains&...
user avatar
  • 140
0 votes
1 answer
27 views

Changing Field that Attribute Window orders Layers in using ArcMap

How do I change the field that orders the attributes? As you can see, STRUCT_TYP has the same value for each attribute. I would like to change it to STRUCT_ID. Is this possible using ArcMap? I've ...
user avatar
1 vote
1 answer
225 views

Create a list/sequence of numbers from two DOY in Google Earth Engine

I would like to create a list of numbers from a DOY to another DOY every 7 days, dependent on a specific date that I set. This then matches an imageCollection I have, which I then use to create a ...
user avatar
2 votes
0 answers
186 views

IndexError: list index out of range - item report ArcGIS API for Python

I'm quite new to Python and ArcGIS API for Python. I'm trying to create a report of all the items owned by one of my ArcGIS online organization user. For each item owned by the user I want to record ...
user avatar
  • 115
1 vote
0 answers
14 views

Clever way of calculating and storing cumulative rainfall for each polygon of a MULTIPOLYGON sf-object

What I have is this sf-object: Simple feature collection with 50 features and 8 fields geometry type: POLYGON dimension: XY bbox: xmin: 611398.7 ymin: 5122699 xmax: 745144.8 ymax: ...
user avatar
  • 657
-1 votes
2 answers
132 views

Creating composite band image with Sentinel 2 data using ArcPy

As we know sentinel satellite data have many sub folder. I want to create composite band of each datasets with the band 2, band 3, band 4, band 8 which are located in one folder(10m) and band 11, band ...
user avatar
2 votes
1 answer
82 views

Create a List of All Webmaps within a Portal

I'm trying to do some spring cleaning and in the plans of organizing and archiving older webmaps. We have several hundred maps, so I'm looking for a way to create a simple CSV that will list all ...
user avatar
6 votes
1 answer
81 views

Drawing line from variable number of points stored in two lists

I have two Python list latitude and longitude which stores the coordinates, and I want to draw a single line from the list coordinates. I can draw the line if I know the number of latitude/longitude. #...
user avatar
  • 83

1
2 3 4 5