I project a terra raster into another terra raster, in a different coordinate system, using the project function. The project documentation states that, for method="sum", it calculates the weighted sum of all non-NA contributing grid cells. I don't quite understand what weights are used here: is it the area of the pixels of the input raster calculated in the projected, template raster? Or something else?
weighted sum in terra::project: what are weights?
66 views Asked by Jean-Luc Dupouey At
1
There are 1 answers
Related Questions in SUM
- Find the sum of the numbers in the sequence
- how to find sum of input value in javascript
- Multiple child processes accessing the same vector
- finding sum of prefilled fields with jquery
- Sum multiple items in 2D array based on condition (javascript)
- How do I take 2 tabs from a google sheet and combine based on the 1st column but also sum the 2nd column in Google Sheets?
- R. Sum over rows
- Dates in R: Counting Instances and Number of Days
- Summing across multiple tables and location of subquery
- How to Sum Values by Column 'Date' After Averaging by Column 'Site'?
- sum in multiple sheets with corresponding values in excel
- Power BI Dax SUM
- Calculating the sum of differences between two columns in Laravel
- Getting the sums for each desired item in a list
- Create a new table with the percentage quantity amount of individual counterparties compared to the total quantity
Related Questions in RASTER
- iterating through raster bands to perform calculation
- How to extract vineyard land cover from CORINE in R?
- get the band with the maximum value from a xarray stack
- can't export hd5 file to a tif using terra
- Converting hyperspectral .HDR files into raster arrays in Python to create a mirror image
- using terra to plot a netcdf returning an error
- R - update raster values which fall inside a polygon
- Grouping/Selected Layers using a threshold
- Reproject large raster using Python
- How can I get better quality for exported raster in Arcgis Pro?
- Simplify raster values in terra to category
- Issue displaying GeoTIFF raster data as layer in Leaflet map
- Calculate row-wise or column-wise means using R terra functions
- I have MODIS raster images, want to extract LST values at given lat long values USING python
- How to interpolate missing values given a SpatRaster object in R Terra package?
Related Questions in PROJECTION
- JPA SPECIFICATION WITH INTERFACE PROJECTIONS
- vertica projections: adding new columns leads to reusing aliases of old columns
- Find the real sizes of a rectangle drawn into an image
- 3D RGB-D Panorama to 3D mesh
- Is there a way to return the aggregate count in a Dynamic Projection with Specification in JPA?
- Projecting a 3D radial density profile into 2D
- Camera calibration for Nuscenes dataset for Radar only
- Is there a way to resample a raster to a lower resolution using a weighted average of constituent pixels?
- Dynamic Projection Mapping with Kinect Fusion
- How to define the restriction of a function to a smaller domain, i.e. the function projection
- i have two geodata frames in geopandas that are not aligning
- Determine vergence point on HL2
- How does the R package `terra` determine the number of dimensions of a raster projected without a template?
- How to plot POP2 grid (POP_gx1v7) data on map with xarray and cartopy?
- JPA return selected OneToMany list in query as single Java object in projection result
Related Questions in WEIGHTED
- averaging weighted values giving inaccurate overall view
- how to calculate WOE for a dataset with weights column for both continuous and categorical data
- Plotting weighted distribution
- Apply modified z score function by group with weight
- Survey package: what does the combined.weights argument really mean?
- SwiftUI Weighted stack - views stacked on top of each other
- Algorithm to extract elements from weighted queues
- I get error for object "weight" not found whereas it exists in the data frame
- Using FIML with Sample.weights in Lavaan with fixed .X = F
- Transferring svyset from Stata to R
- I want to create weighted candlesticks, based on 5 assets, in Pinescript version 5
- Tensorflow binary classifier with weighted loss function - Why does train history accuracy doesn't match train accuracy?
- weighted sum in terra::project: what are weights?
- Why error "numerical expression has 50000 elements: only the first used" emerges in R?
- How to solve the weight coefficient of multidimensional hybrid copula?
Related Questions in TERRA
- Error while using predict function for h2o.deeplearning model on raster stack
- st_buffer with endCapStyle = "FLAT" and singleSide = TRUE not rendering correctly
- can't export hd5 file to a tif using terra
- Rasterize and problem with raster plot in R using "terra"
- using terra to plot a netcdf returning an error
- R - update raster values which fall inside a polygon
- Cumulative length of a LINESTRING using sf or terra
- How to convert a rotated NetCDF back to a normal lat/lon grid with terra in R?
- How to create a simple raster in R terra
- Issues with saving 'terra' asc files - "Couldn't find data values in ASCII Grid file"?
- Add Spatrastermap to existing Spatrastermap
- Error std::bad_alloc using `terra::extract` on large stack and many points
- Unexpected layer name when reading NetCDF file using terra and raster R packages
- Simplify raster values in terra to category
- Is there an alternative to terra patches in R for large SpatRasters?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
The documentation is not very clear and I had the same question for
method = "average".terrausesgdal_warpunder the hood in these cases, and although the GDAL documentation doesn't give anymore info than the terra documentation, I found this Github pull request with comments that does help clarify that the weights are the areas of the contributing cells.The following reprex also confirms that it is area weighted sums:
Created on 2023-11-16 with reprex v2.0.2