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 |
Raster is a data format consisting of regular grids of values, usually stored in an image-like format.
0
votes
1
answer
160
views
levelplot index issue
levelplot with static index works fine but not in a for loop. What's wrong with my code?
Static index:
png(paste("1998",outlist[[1]],".png",sep=""))
levelplot(RAD1998.all[[1:4]])
dev.off()
png(past …
10
votes
2
answers
11k
views
Max cell value from a stacked raster
How can I find a max cell value from a stacked raster.
Rmax <- maxValue(RAD1998.all[[1]])
works fine but
Rmax <- maxValue(RAD1998.all[[2]])
gives NA.
Of course not in a stacked raster. … Here is my code:
RAD1998 <- raster(paste(getwd(), "/1998bil/1998ASC5min_ppt_spas1214_0001_19980202_0810_UTC.asc.bil", sep = ""))
list.ras <- mixedsort(list.files(paste(getwd(), "/1998bil/", sep = ""), …
29
votes
1
answer
71k
views
How to assign CRS to RasterLayer in R
I have a layer with coord. ref. : NA.
How can I assign coord. ref. : +proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0 to coord. ref. : NA?
class : RasterLayer
dimensions : 127 …
0
votes
2
answers
3k
views
R -plot 12 images per plot or save 12 images per image file in R
RAD1998 <- raster(paste(getwd(), "/1998bil /1998ASC5min_ppt_spas1214_0001_19980202_0810_UTC.asc.bil", sep = ""))
list.ras <- mixedsort(list.files(paste(getwd(), "/1998bil/", sep = ""), full.names = T, …
6
votes
2
answers
8k
views
How to produce "SpatialPixelsDataFrame" from stacked RasterLayer?
How to produce "SpatialPixelsDataFrame" from staccked RasterLayer ?
I have a stacked rasterlayer and I want to convert them to SpatialPixelsDataFrame.
RasterLayer information is
> RAD.all[[1]]
cla …
3
votes
1
answer
2k
views
Levelplot(RasterVis) two marginal plot scale?
How can I add/display scale to two marginal plot?
RAD1998.all <- stack(list.ras)
list.files <- mixedsort(list.files(paste(getwd(), "/1998bil/", sep = ""), full.names = F, pattern = ".asc.bil"))
# …
3
votes
1
answer
4k
views
How to overlay a county boundary on a raster file?
I want to overlay California county boundary top of raster layer. … Here is is my code:
data(coastsCoarse)
data(countriesLow)
library(gtools)
library(maps)
library(maptools)
library(sp)
# Raster file
RAD2012 <- raster(paste(getwd(), "/2012bil/2012ASC5min_ppt_spas1306 …
2
votes
1
answer
510
views
Is this a known issue in gaps between masked raster and spatial polygon in R with mask command?
This is my codes
raster file: RAD
polygon(shape): ws_sfc
RAD.sub <- crop(RAD, extent(ws_sfc))
plot(RAD.sub)
RAD.sub <- mask(RAD.sub, ws_sfc)
plot(RAD.sub)
plot(ws_sfc, add = TRUE)
Masked raster …