Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Statistical computing language and software environment.
0
votes
1
answer
304
views
Loop Issue: Extracting mean temps for each layer of RasterStack (NetCDF File)
Stack/Brick, I am not having much luck.
library(tidyverse)
library(rgdal)
library(sp)
library(raster)
library(doParallel)
library(foreach)
library(ncdf4)
librarcy(exactextractr)
# Brick the NC File
r< … -stack("ERA_Temps.nc")
output <- for (i in 1:length(r)) {
wgsraster <- r[[i]]
year <- str_sub(names(wgsraster), 2, 5) …