Questions tagged [calculate-values]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
36 views

Calculate multiple fields from joined fields

QGIS 3.14. I just joined a table to my a layer with already multiple fields. I want to replace the values in all the original fields with the values in the joined table. I'm searching a way to ...
1
vote
1answer
38 views

Accessing data from time series in GEE

I have a code for NDVI time series from an image collection. This code prints the time series in a table or a chart. Is there a way to access the values in the table of the time series in google earth ...
2
votes
1answer
37 views

Performing complicated calculation on bands in Google Earth Engine

I'm trying to perform ANIR index calculation on my image collection. I'm having trouble writing the code in the right way. ANIR index formula is : cos^-1[((a^2)+(b^2)+(c^2))/(2*a*b)] (a2, b2 and c1, ...
1
vote
2answers
47 views

Calculate the value of two different fields (int), and summarize those two into a new field in attribute table [closed]

I am trying to make a pie chart, that means I have to connect some fields in AT. How do I sum two integer fields into a new created field. The sum should also be connected to the different object id. ...
2
votes
1answer
76 views

Dynamic/calculated field in ArcGIS Pro via Arcade expression?

In an ESRI video called Getting to Know Arcade, the presenter states that dynamic/calculated fields are possible via Arcade expressions. How many of you have ever been in a situation where you had a ...
-2
votes
2answers
52 views

Measure Points to Coastal lines?

I would like to measure the shortest distance from multiple points to a any part in a coast line of three different costs. How do I do this with QGIS or with SAGA GIS?
1
vote
0answers
89 views

How do I apply phase center corrections to IGS satellite positions?

I'm trying to use the International GNSS Service's SP3 precise orbit files (found here) to calculate the position of GPS satellites for a Precise Point Positioning solution. It appears that they're ...
1
vote
0answers
38 views

Calculate ID based on ID from another field

I have a layer with single lines and I have added a unique ID for each line. I have extracted the vertices of these lines to a new point layer and now I want to add a new ID for every point but based ...
0
votes
1answer
30 views

How to write it on ArcGIS Raster Calculator?

I just started using the Raster Calculator, so I don't know how to build the formulas. How can I do this? I need to write both of these formulas: D = is a raster file called "Slope_2" P = 13
0
votes
1answer
40 views

Using IF-THEN-ELSE with ModelBuilder of ArcMap

I have two optional parameters in my ArcMap model (City and date) and I want to use the tool calculate a value to create an expression that will give me a boolean (true-false). I want the code to ...
1
vote
0answers
22 views

Help with “Calculate Values” Python expression (ModelBuilder)

I have a model and need to compute a new value from two other values upstream, and then feed the new value to the Kernel Density tool. Here is the formula I am trying to reproduce in the "Calculate ...
0
votes
1answer
36 views

Error with equation in GEE

I'm trying to calculate values for a raster I have based on other raster values. The problem is that I get the error: -0.054.multiply is not a function and I believe it is because I'm writing ...
4
votes
2answers
106 views

How to calculate and export tasseled caps from MODIS collection in GEE?

I would like to calculate and export the brightness, greenness and wetness tasseled caps for the MODIS MCD43A4 V006 collection based on the Lobser coefficients, but I have no idea how to do it. var ...
2
votes
1answer
56 views

Saving calculated fields to reuse in other QGIS projects

I am using QGIS 3.4. I want to make attribute tables with many calculated fields that link to styles, and reuse the same structure for many projects. For example, when I draw a pipe (line vector), ...
2
votes
0answers
37 views

QGIS 3.10: Evaluate default values (data source preference) not staying checked on?

Anyone having trouble with "evaluate default values" in QGIS 3.10.1 preferences, under "Data Sources"? When I click the check box and then "OK", I go back to preferences it's unchecked! And default ...
2
votes
1answer
45 views

Determine distance between two polygon with having unique id

I have two polygon feature class one is Source Data and other is shifted data. I want to calculate how much polygon shifted (distance) using ArcGIS 10.6.
7
votes
3answers
621 views

Use field calculator QGIS: if value in one column, then value in new column

I am having troubles using the field calculator to get what I want. One column in my attribute table is named 'Taxa' and has a set of species in it. Species are separated by #. I want to make a new ...
0
votes
1answer
45 views

Color grid if values in grid exceed threshold - species distribution in QGIS

I have distribution data of a set of species (plants, mosses and lichens: 13 species total) in the Netherlands. I made a grid that divides the Netherlands into 1x1 km squares. I am not interested in ...
1
vote
1answer
43 views

Code to return false if two preconditions are false in Modelbuilder

I'm trying to use Calculate Value in Modelbuilder's Arcmap to run a process if one of two booleans preconditions is true. So if both of precondintion are false the process shouldn't run, otherwise it ...
7
votes
2answers
362 views

QGIS 3.4 calculate date, add month

I want to add a number of months to a date to get a new date. I have a date-field "date", an integer-field "months" and a date-field "new_date". I want to calculate the "new_date" by adding the "...
0
votes
0answers
37 views

Seeking arcpy.SetParameterAsText equivalent in ModelBuilder?

I know it sounds weird, but I would need a tool made with ModelBuilder that output two parameters: a layer a message (a string) The constraint derives from the need to share it as a Geoprocessing ...
3
votes
1answer
48 views

Calculating field while dissolving

I have two polygon Layers, A and B correspondingly. The polygons of B are lying on top of layer A and also overlapping the polygons of A (I made an example of the attribute table for better ...
1
vote
2answers
45 views

Adding time to variable using Python Parser of ArcGIS Calculate Value tool?

I am using Python 2.7 in calculate value in ModelBuilder. I want to query both 30 seconds before and after the variable. The original value keeps returning not the time change. What am I not defining? ...
1
vote
1answer
220 views

NameError: name '**' not defined in ModelBuilder Calculate Value

This question follows up on Crianopa's answer https://gis.stackexchange.com/a/107687/126329 - I am attempting to do just this, but my model fails at the Calculate value stage. Using the expression ...
0
votes
1answer
101 views

Wrong masked pixels

I am new in GEE, and tried to run a simple code to mask cloud pixels. However when I added the image selected with my filters I saw that the result of the cloud filter are empty areas, as shown below: ...
0
votes
3answers
129 views

Model Only calculate value with zonal statistics as table

In a precedent post Multiple Output for Zonal Statistics as Table I was trying to have as many table in the output as the rasters in the input. To overcome my errors, I decided to add a "Model Only ...
-1
votes
1answer
38 views

Using Field Calculator for subtracting values with same ID in ArcPy? [closed]

I have a line shapefile that used for some calculation. One of the calculation is subtracting values with a same group ID. The shapefile has a filed called LineID that consists of 2 lines with Side 1 ...
3
votes
1answer
104 views

Calculating acreage as a percentage in ArcPy

I am struggling to calculate the acreage as a percentage in Calculate Field Management, but I am getting this error message: "ValueError: could not convert string to float! BufferAcreage! arcpy....
1
vote
1answer
31 views

Add and Calculate Fields of Iterated Annotation Classes

I'm have difficulty with my script Arcmap v10.5.1. I get a syntax error on line 8. My question is: Can I calculate the Added field from an existing field within an iterated value? If so, what's my ...
1
vote
1answer
40 views

Finding calculate value or collect values tools?

I am using ArcGIS Desktop 10.5.1 and I need to use the calculate value tool or collect values tool to in ModelBuilder, but I cannot find those tools. Do I need to download them from somewhere else?
1
vote
1answer
171 views

Inherited values between polygons in QGIS? [duplicate]

In this project, I have three polygons, see the image below "Polygons_From", includes input attributes, i.g. "Value_1", "Value_2", "Value_3", and $area for each quadrate (on the image there are two ...
1
vote
1answer
380 views

How to automatically get/assign contour height attributes?

I have quite a simple problem yet I can already guess the solution is going to be pretty complicated. I'm using QGIS and was wondering if there is a simple way for the computer to automatically assign ...
1
vote
1answer
514 views

Calculate percentile value of raster

I want to set null all raster values that fall below the 75th percentile value. E.g. If you classify the raster by quantile method into 4 classes I want to be left with the top 25% percentile. For the ...
0
votes
1answer
132 views

Calculate new Lat/Lon from initial Lat/Lon plus Cartesian X,Y [duplicate]

For small distances (below 10 km), assuming Earth is flat and I have initial Lat0/Lon0 and I have X(km), Y(km) distance From Lat0/Lon0, how can I calculate new Lat/Lon for the added X,Y?
0
votes
2answers
349 views

Reclassify a raster in R based on two rasters with the output containing over 1000 bands

I am trying to convert the outputs of a model into a raster based on both a temperature raster and a seasonality raster. I have over 2100 bands so ifelse statements aren't going to cut it. An example ...
0
votes
1answer
63 views

Converting string to float in Calculate Value for ModelBuilder?

In ArcMap 10.2 I have created a nested model where I am iterating through some feature classes in order to get the minimum value of a specific field for each of them and then collect the outputs using ...
0
votes
1answer
253 views

How to determine the average NDVI value of a selected area?

I'm new to ArcMap 10.2 and trying to get NDVI data of city centers. So my problem is, after I'm calculating the NDVI and getting the result raster, I would like to get a mean (average) value of ...
-2
votes
1answer
154 views

Calculating wetland coverage/overlay over parcels of land? [duplicate]

I have two layers. Layer 1 has features that are property/parcels with area in acres. Layer 2 has features that are wetlands/bodies of water with area in acres. I want to calculate the percentage of ...
4
votes
1answer
645 views

Calculating weighted values using function in Function Editor

After my previous question Weighted values of field in QGIS, I successfully adapted the following formula in Expression dialogue "Value" / (sum("Value") / (count(CASE WHEN "...
3
votes
1answer
264 views

Calculating weighted values of field in Attribute table in QGIS

In QGIS in the Attribute Table, I have a field with values. For this field, I need to calculate the Sum of all its values and divide by the number of values that are not equal to "NULL". Afterwards, ...
3
votes
1answer
1k views

Replacing Negative values with “0” for raster layer

I am trying to change negative values (raster layer) into "0" but I cannot find a way to do that. Does anyone know how to accomplish it in QGIS 3.2? I found an answer somewhere on the Internet to ...
2
votes
1answer
86 views

Calculating partial distances from whole segment in grid using QGIS?

I am using QGIS and trying to find a way to calculate partial distances of lines in a grid. In the left part of the picture you can see the sum of the line lengths within the grid cell (108.96...), ...
0
votes
0answers
165 views

Zonal Statistics As Table with Very Small Polygon

I was given one single band NDVI raster and a shapefile with multiple very small polygons. The raster has a resolution of 3m. On the other hand, the small polygons on the shapefile are square shaped ...
4
votes
1answer
5k views

How to calculate the polygon area and create a column of results in R

I'm working with shapefile in R and I need to calculate the polygons' area that I created by Gdiference function, So ,now I need to create a column with the size of freshly polygons created, because ...
1
vote
1answer
65 views

Updating Field using similar Field w/ Update Cursor: Field does not populate

I'm pretty new to scripting with Python. My code is intending to iterate through a list of feature classes within a GDB, creating the fields EF_Type and EF_Group, then calculating the field. The ...
0
votes
0answers
62 views

How to edit attribute with my result from the count

I need this to loop through all the OBJECTID for the Fitting layer. Then it get the count for every line feature touching it. Now I'm at the point where I need the attribute table to be edited with ...
2
votes
1answer
319 views

Calculate mileage river network

We have a river network which doesn’t correspond to the reality shown by the orthoimage. Each river has the same route number (see attribute table). Every route number has several segments (see ...
-1
votes
2answers
1k views

Delete Rows in Qgis using Field Calculator [closed]

I tried to delete all rows where Field "Width" has value 2?
-1
votes
2answers
2k views

Using Calculate Field, how do you make one field equal another, existing, field? [closed]

I have two columns in a feature class. One has null values, the other has values. I want the one with values (TEXTSTRING) to be placed into the one without (HouseNumber). I know this is simple, but I ...
0
votes
1answer
319 views

Weighted average of areas within zones

I have a fishnet that defines my zones for my analysis, and am interested in the area of different hydrologic soil groups (A, B, C, D) within these zones. Each soil group has a corresponding score (1, ...