Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [calculate-values]

The tag has no usage guidance.

0
votes
1answer
37 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
0answers
25 views

PyGRASS: storing attribute table values to variables

Goal: to store the sum of all values (lengths) of a vector map in a variable inside a Python script. This variable will later be shown to the user in a GUI. The computation time has to be as low as ...
0
votes
3answers
54 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
28 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
44 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
24 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
22 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
110 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
75 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
122 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
58 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
83 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
38 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
33 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
63 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 ...
2
votes
1answer
292 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 ...
0
votes
0answers
133 views

Calculate percentage overlap of polygon features in two layers QGIS

I have two polygon layers (building footprints and parcel boundaries) for a county. I want to join the parcel ID numbers to the attributes of the building footprint features based on location and ...
2
votes
1answer
35 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
83 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 ...
1
vote
1answer
984 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
44 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
53 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
187 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
326 views

Delete Rows in Qgis using Field Calculator [closed]

I tried to delete all rows where Field "Width" has value 2?
-1
votes
2answers
616 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
105 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, ...
2
votes
1answer
1k views

when given bearing, angle, and distance, how to find change in location in 3d

I am helping a drilling team find the surface location representing a point in the ground. I am given the following values: surface location latitude and longitude Drilling depth (length of drill ...
9
votes
2answers
493 views

QGIS calculate radius of an arc to attributes

I have QGIS 2.18.16 installed. My problem is, how to calculate radius of an arc / curve feature (line)? The lines are originated from .dgn file, which I read with FME and wrote to PostGis DB. I have ...
1
vote
0answers
288 views

Standard Method to calculate Average Moving Speed from Times & Coords?

...I wasn't sure if this question was best suited to GIS, SO or Math, so after reading GIS Topics I decided to ask here, but I'll relocate if necessary... :-) I'm working on automating various ...
2
votes
0answers
46 views

Calculate side of a polygon that touches another feature [duplicate]

How can I measure the length of the side of a polygon that touches another feature (calculate from A to B on the image below)? I'm creating and measuring lines to figure out the lenght of the '...
3
votes
1answer
144 views

Calculating sequential values in ArcGIS Desktop?

Previous posts (such as Adding automated values to attribute field?) answer how to calculate sequential values in an attribute table. The posts all seem to rely on the process described in this ESRI ...
-2
votes
2answers
56 views

Calculating acreage within county boundaries of a Raster file

I have a vector shapefile containing all of a state's counties. I also have a raster file with the statewide crop land use. I need to calculate, for each individual county, the total acres of ...
8
votes
3answers
1k views

How to calculate total PV potential of a roof using QGIS?

I want to calculate total PV potential of a roofs in a certain area. To do that I made a dsm, ran SAGA "Potential Incoming Solar Radiation" algorithm (just playing with it only for now - I need to ...
3
votes
1answer
306 views

Using the field calculator in SAGA-GIS

I am working with SAGA-GIS and need to create an euclidean allocation raster. For this, I need to first create an integer raster with values for certain areas. This integer raster shall be based on a ...
2
votes
0answers
23 views

Model builder calculate value. Removing the first part of a file name arcgisdesktop 10.5 [closed]

I have some very large CSV files and they are named a bit poorly "something_09212017_09222017". I am trying to remove the first 10 characters. I can do ("%output_value (2)%")[:-12] but the number of ...
0
votes
1answer
732 views

Create a new column and update it with the results of a calculation in Carto

My dataset in Carto has columns with subtotals and a column with total - I would like to create a new column with the calculated percentage in Carto - is there a way to do this?
1
vote
0answers
154 views

Calculating percentage of area from polygons inside one polygon in ArcMap?

I need to calculate percentage of different areas contained in one Cadastral parcel. Every parcel (polygon) is overlapped with one or more polygons. I need to find percentage of every overlapping ...
2
votes
1answer
634 views

What is the Python expression for calculating Lat/Long in Decimal Degrees in ArcGIS?

I'm calculating 4 double fields for a polygon feature class (exploded, single-part features): SquareFeet, Acreage, Lat, and Long I found the correct python expressions to calculate SquareFeet & ...
1
vote
0answers
202 views

Calculating normal vector distance between two surfaces using ArcGIS Desktop?

I have two surfaces mapped out from seismic data, imported as x,y,z datasets in ArcMap and then converted to rasters using the point to raster tool. These surfaces are rugose (seafloor and an ...
0
votes
1answer
95 views

Using ouput data variables in subsequent calculation within ArcGIS ModelBuilder?

Using ArcGIS Desktop 10.3.1, I have two simple polygon shapefiles, each with just a single feature. I'm new at ModelBuilder, and have 2 tasks: calculate the acreage within each of the two shapefiles,...
3
votes
2answers
407 views

Extracting data from HTML field in table using ArcGIS Desktop?

I'm operating ArcGIS. I need to make a calculated field. The value of the field is a sub-string of one of the other fields. My problem is that the other field (PopUpInfo) is an HTML string: An ...
1
vote
1answer
49 views

Performing calculation in neighborhood 3x3?

I'm looking for the way to perform some calculation with each cell in neighborhood 3x3 and assign value to center cell. For example I'd like to sum z1 with z5, z2 with z5 etc. and then assign average ...
1
vote
1answer
315 views

Seeking point statistic tool in QGIS?

Does anyone know if there's a tool in QGIS that is equivalent to ArcGIS Point Statistics? I need to create a raster with values from an attribute in a Point layer.
2
votes
2answers
1k views

ModelBuilder: Using Parse Path in iterative model to include folder name in output file name

I have a simple model in ModelBuilder that does the following: Iterate through a folder of rasters (these are outputs from Global Climate Models) Clip each raster to a study area (Egypt), using a ...
2
votes
1answer
94 views

How to use the field calculator in QGIS to determine the total of differents fields

I have an attribute table with 7 fields. I want my attribute " A1 " to be the total of " IP1 to IP5 ". I am not familiar with the request in the field calculator. How can I calculate the value of ...