Questions tagged [list]

Linear collection of items

Filter by
Sorted by
Tagged with
0
votes
1answer
36 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 ...
0
votes
0answers
33 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 ...
0
votes
0answers
42 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 ...
3
votes
1answer
72 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 ...
4
votes
1answer
91 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 ...
7
votes
3answers
381 views

Selecting multiple features by ID 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,...
0
votes
2answers
50 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 ...
0
votes
1answer
34 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 ...
0
votes
0answers
56 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 ...
2
votes
0answers
41 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":"...
1
vote
2answers
54 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 : ...
0
votes
0answers
22 views

Google Earth Engine: Classifier (Error) Classifier.spectralRegion

I am using the spectralRegion classifier for classification, but I am having problems setting the parameters. I get the coordinates by .geometry() & .coordinates(), but this data structure is ...
0
votes
1answer
109 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 ...
1
vote
0answers
19 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 ...
1
vote
1answer
136 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, ...
3
votes
1answer
108 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?
2
votes
1answer
119 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 ...
1
vote
1answer
50 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)) ...
1
vote
0answers
54 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 ...
1
vote
1answer
113 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 ...
0
votes
1answer
22 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 ...
0
votes
1answer
67 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&...
0
votes
1answer
19 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 ...
1
vote
1answer
48 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 ...
2
votes
0answers
91 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 ...
0
votes
0answers
226 views

Google Earth Engine: mapping a FeatureCollection to a list of dates

I have some code that creates FeatureCollection for SST a specific date range, which I combined and export as a csv. A link to which can be found here. I would like to map the FeatureCollection to a ...
1
vote
0answers
12 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: ...
-1
votes
2answers
96 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 ...
2
votes
1answer
52 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 ...
6
votes
1answer
61 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. #...
-1
votes
1answer
103 views

How to Replace List of Values in Google Earth Engine?

The below code returns -infinity and I'm going to replace that with 0 using repplaceAll in Google Earth Engine but it does not work. https://code.earthengine.google.com/...
0
votes
1answer
72 views

Replace String With Number In List, Google Earth Engine?

How can I replace '-infinity' with 0 number using a function in Google Earth Engine? I'm gonna to replace string with 0 value in the list automatically. https://code.earthengine.google.com/...
7
votes
1answer
73 views

Convert a list to string in QGIS

I have edited a field into the attribute form of a QGIS project as a "Value Relation" to create a checkbox where I can choose few possibilities. I have a tree sickness and the field I am ...
2
votes
6answers
95 views

Listing IDs of all selected features as default value

I would like to get a array with id's of all selected features of layer 'LayerB' (field-name: "id_of_layerB") as a default-value in a qgis-attribute-form of 'LayerA'. I tried something like: ...
1
vote
1answer
72 views

Listing all Feature Classes being used in ArcGIS Pro project using ArcPy [closed]

I am trying to work out how to list all feature classes in ArcGIS Pro and ArcGIS Pro files. I have used this script in the past which works for .mxd but recently I have started using ArcGIS Pro which ...
2
votes
2answers
107 views

Filtering layers by geometry type using PyQGIS

I need to list all layers with geometries but not those without. Can I be sure geometryType = 4 always are tables without geometries? I cannot find the documentation explaining which number is which ...
3
votes
1answer
183 views

Converting list into field with PyQGIS

I am trying to convert a few lists into fields. I have no problem creating the fields. I just don't have any idea on how to fill them. if result: layer = self.dlg.comboLayerLine.currentData() ...
1
vote
2answers
130 views

FME list index number as attribute value

I have created list which has same road name but several separated segment. These has sorted using length of road lines (ListSorter). The list index inside () shows length order which road segment has ...
2
votes
1answer
612 views

Accessing item in list of lists using Google Earth Engine

How do I access an item in a list of lists in GEE? I know that using the method get() returns the element at the specified position in list. But the result of list.get(0) is [1, 2, 3], and I want the ...
-1
votes
1answer
74 views

Adding property while converting table into list in Google Earth Engine

Is there a way to add a property when converting from a table to a list? I have a table of lat and long points uploaded from a .csv (locTable), and found a GEE code that changed the format of my table ...
0
votes
1answer
216 views

Calculating column mean of array or list using Google Earth Engine

I want to calculate the column mean of the following set of data as the result of 1 row and 7 columns. Which functions should I use in Google Earth Engine or should I write an extra function? var data=...
-1
votes
1answer
298 views

Multiply image collection by a list of numbers (pairwise)

I want to know how to multiply every single image of a collection against its respective coefficient allocated in a list. It means to multiply the image 5 with the element 5, image 6 with element 6, ...
1
vote
1answer
73 views

GeometryCollections do not have coordinate lists

I have code that suppose to break multipart geometry into single part by generating list of coordinates for each polygon. The code works perfectly for small amount of polygons, but today when I tried ...
1
vote
1answer
42 views

Delete all files in a directory, except files with a specific string

At the end of my script I want to delete all my temporarily created files in a directory. For this purpose I write all files into a list and look in the elements to see if it has the string "final.shp"...
2
votes
1answer
113 views

Pairing more than two lists using Google Earth Engine

I would like to know how to pair more than two lists. I know this is easy to do using .zip function, but how do I pair a third or more lists? var list1 = ee.List(['...
0
votes
2answers
934 views

Creating Table From Lists using Google Earth Engine [closed]

I want to create table-format feature collection from a couple of lists. These lists only have 4 elements in it. My objective is to create a feature collection with a column per list and a row per ...
1
vote
1answer
153 views

Creating FeatureCollection with values stored in an Array on Google Earth Engine?

I applied an unsupervised classification to a collection of Sentinel 2 images and used ReducetoVector() within a loop to obtain each class of the Unsupervised classification as a different object. ...
0
votes
1answer
18 views

Optimize the code for one command with only one different parameter

I am not too familiar with ArcPy/Python, but since some commands are only available in ArcGIS, I try to implement my idea using ArcPy. I want to use a command several times, but each time only with a ...
1
vote
1answer
60 views

Iteration in GEE (List Error)

I am writing a code that calculates the number of burned patches in a study area. The process is based on iterating over a list of numbers. Code: Link var country = ['ZA']; var geometry = ee....
1
vote
1answer
78 views

Unlist into a single Object - Google Earth Engine

I'm new to GEE and Java scripts. I'm trying to do something that seems simple, but cannot find any way to do it. I’ve an image (which is not that big, say 100 km * 100 km) with ~ 12 bands (and a 30 ...

1
2 3 4 5