Questions tagged [raster]

A rectangular array of pixels. A Raster defines values for pixels occupying a particular rectangular area of the plane, not necessarily including (0, 0).

A rectangular array of pixels. A Raster defines values for pixels occupying a particular rectangular area of the plane, not necessarily including (0, 0).

3658 questions
1
vote
1 answer

Generate correlated raster in R

I have a raster with value ranging from 20-34 (r1). I want to create a new raster (r2) with value range from 0 to 1 from r1 that values of r2 are linear correlated with values of r1. I have searched over and see "corgen" from ecodist package might…
1
vote
0 answers

Plotting a raster with recentered Mollweide projection in R

I would like to generate a map of the world in Mollweide projection, but centered on longitude 150. I would like to plot a raster and a vector map of the world on top. library(maptools) library(raster) library(rgdal) # generate some dummy…
Pascal
  • 1,590
  • 2
  • 16
  • 35
1
vote
1 answer

How can I load raster data into a postgres server running postgis? What are my options using sql functions or QGIS?

I'm working on setting up a server for my university's agriculture program to manage data from many of the experiment stations around the state. Part of this effort is loading and making raster data (multispectral .tif files) from the growing…
J.Oldag
  • 11
  • 1
  • 2
1
vote
1 answer

Extract longitudinal pixel values from raster.list, save to data frame

I have a list of rasters of the same location for multiple years. The change in pixel value over time represents the time series of pixel. To further analyses, I need to extract the values over time per every pixel, and store it in data frame,…
maycca
  • 3,848
  • 5
  • 36
  • 67
1
vote
3 answers

ERROR 000732 in Python calling for NetCDF file

When executing the following code I keep getting an error and I was unable to fix it. Any ideas what could be wrong? I tried to change the file name to a simpler one but it didn't help. NetCDF data comes from TRMM. import arcpy import os dir_name =…
MIH
  • 1,083
  • 3
  • 14
  • 26
1
vote
0 answers

Print in Brother RJ-3xxx using Raster Command Reference

I'm trying to print a picture (Bitmap) in a label printer. For this, I'm reading the Raster Command reference cv_rj3000_eng_raster_100.pdf. (pages 33-37) Each raster line is One pixel length, each line contains PackBits(TIFF). of algorithm…
antonio
  • 548
  • 8
  • 16
1
vote
1 answer

Faster way to sum up raster values based on polygon extent in R

I am looking for a way to improve the speed and lower the memory-usage of the following lines: export <- raster(paste0(catch_dir,'/export_streams.rst')) catchm_polyg <- readOGR(dsn = catch_dir, layer = 'catchment') Model_10 <- extract(export,…
nowi
  • 53
  • 6
1
vote
2 answers

GDAL get pixel color

Has a problem. I have an tiff image (that have 4 layers). My tasks is to make small changes in pixel's color to make image better. In this case I use GDAL library. My source is: GDALDataset *poDataset; GDALAllRegister(); poDataset = (GDALDataset…
lazexe
  • 367
  • 4
  • 19
1
vote
0 answers

Display raster on DEM using levelplot R

How can one levelplota raster of say mean temperature on the hillshade provided by a DEM of the area of interest? Consider the example below (from Robert H): library(raster) library(rasterVis) dem <- getData('alt', country='CHE')# get DEM for region…
code123
  • 2,082
  • 4
  • 30
  • 53
1
vote
1 answer

parallel summation of matrices (or rasters) in R

I have a long list of large matrices (or rasters) that I want to sum in parallel. The output should be a matrix. I tried foreach using the .combine='+' function, which works, but it seems .combine only works on one thread so there is no speedup. Any…
1
vote
0 answers

Odd Number plots using levelplot and rasterVis

I'm using the rasterVis package and the levelplot function to plot seven rasters on a single plot. Here is the layout I'm going for: correct layout I've achieved this using the following…
em.d.kear
  • 33
  • 8
1
vote
3 answers

Replace raster classes by values from data.frame in R

I have an integer raster of a classification result. Now I want to replace the classes by float values from a dataframe, i.e. raster class 1 = 0.321; Class 2 = 0.232; Class 3 = 3.211. The dataframe has many columns and I want to replace the classes…
mace
  • 490
  • 1
  • 7
  • 24
1
vote
1 answer

attaching customized colormap to geoshow in matlab

I am trying to plot a world map in mollweide projection using geoshow command. However, I am not able to modify the colors in the plot based on cutomized colormap values. Most likely this is an issue with how axesm and geoshow commands are used…
Munish
  • 667
  • 3
  • 13
  • 34
1
vote
1 answer

ArcGIS Raster Calculator Error in Python For-Loop

I am performing a simple for-loop in ArcGIS calculator through python. I want to generate transition maps using cover classes from year one (r2005) to year two (r2009). Here is the code: # Importing libraries import arcpy, sys, string, os,…
Jaime
  • 111
  • 7
1
vote
1 answer

Index raster brick

I'm working with a raster brick with 365 layers in R using the raster package. I want to transform all values in the raster brick for pixel index r,c from layer index start:stop. I've figured out how to extract these values from the…
Emily
  • 825
  • 3
  • 10
  • 20
1 2 3
99
100