Questions tagged [list]

Linear collection of items

Filter by
Sorted by
Tagged with
0
votes
1answer
55 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
17 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
87 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, 188], [103, 109], [109, 122], [117, 156], [122, 133], [133, ...
3
votes
1answer
81 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
62 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
44 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
51 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
89 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
32 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
26 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 ...
1
vote
0answers
37 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
81 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
90 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
46 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
55 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
52 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
51 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
68 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 ...
1
vote
6answers
50 views

List of ID's 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
59 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
61 views

Listing layers with or without geometries 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
117 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
75 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
317 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 ...
0
votes
1answer
48 views

Adding a property while converting a table into a list in GEE

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
157 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=...
0
votes
1answer
200 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
54 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
38 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
73 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
628 views

Google Earth Engine: How to Create A Table From Lists

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
102 views

How to create a FeatureCollection with the values stored in an Array on 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
54 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....
0
votes
1answer
56 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
vote
1answer
46 views

Dissolve ArcGIS Pro Python doesn't take string variable for field list

I try to dissolve layer having multiple fields statistics calculated. I prepared a string variable which has all the information in it. When I paste printed variable into dissolve it works. However I'...
0
votes
2answers
208 views

Using writeOGR on a list of SpatialPolygons

This question has been asked before, but I find the answer confusing since there are no reproducible examples that link the question and the answer, and the answer doesn't actually use the writeOGR ...
1
vote
1answer
90 views

How to accumulate in the image collection in Google Earth Engine

Here is an image collection [img1,img2,img3,img4,img5]. I want to get List or image collection [img1, img1+img2,img1+img2+img3, img1+img2+img3+img4, img1+img2+img3+img4+img5]. I tried to complete the ...
4
votes
1answer
295 views

Create a new list from a raster list in R

I am very new to R, so this is tough for me to explain. But, I have a raster list made up of 3872 elements (or separate rasters, I am guessing) and I am hoping to make a new smaller raster list by ...
1
vote
1answer
147 views

How to make the data in the list add up in Google Earth Engine

I am new in Earth Engine. Here is an image collection [img1,img2,img3,img4,img5]. I want to get List or image collection [img1+img2 , img2+img3, img3+img4, img4+img5]. I tried to complete the ...
3
votes
1answer
83 views

Insert Cursor Having an Issue With Reading the Syntax of a List

In my code below, how do I get the Desired Output? # Get a list of all 'SITE_NFID' in the dashboard_site_summary table that don't have a match in the nfid_fqn_associations table ...
1
vote
2answers
75 views

Difficulty with select by attributes using list fields in for loop

I am trying to add fields to a table and then populate the fields with text values (Yes/No). The text values are based on whether or not a species was found in a specific block. If the species was ...
1
vote
0answers
101 views

Using Python dictionary as parameter and variable in Python Toolbox tool of ArcPy [closed]

I'm building a feature class merging and comparing toolbox in arcpy, ArcGIS 10.7. I have a working command line utility with fixed featureclass values, and now I'm building this toolbox, I just copy ...
0
votes
1answer
181 views

Rasterize vector based on list values in Google Earth Engine

I would like to convert polygon (as featurecollection) that has the attribute 'Name' which contains string value of plantation types, namely 'Rubber', 'Mango', 'Coffee'. However, the .reduceToImage ...
0
votes
2answers
132 views

Using list of file paths in function arcpy.ListFields to create multiple lists of field names for each shapefile

I have a list object that contains file paths as text. I named the list object filepathlist. An example of a file path within the list is C:\TestFolder\Folder1\A\address_pt.shp. The file paths lead to ...
1
vote
1answer
53 views

Copy feature class from multiple gdb to a single gdb

I need to write a Python script that is copying. I want to copy a common feature class of these gdb to a single gdb import os import arcpy arcpy.env.workspace = ("D:/Planchas") workspaces = arcpy....
1
vote
1answer
62 views

Calculate field with a value in a list based on field [closed]

I don't want to write an if statement for every field. I want to know if there is another way to field calculate each field with the values related to it in this example table: Fields (X,Y,...