Raster is a data format consisting of regular grids of values, usually stored in an image-like format.

learn more… | top users | synonyms

1
vote
1answer
21 views

Add multiple rasters using QgsRasterLayer with for loop

I am trying to create a for loop for coloring up multiple rasters simultaneously. I am able to do it for one layer, but trying to implement the for loop to do it for more than one layer is proving ...
0
votes
1answer
20 views

Creating a drop-down list for arcpy script tool

I have written the following script but I cannot manage to create the drop-down list for the variable "select" (select=arcpy.GetParameterAsText(3)). Any suggestions? # Script arguments inputRaster = ...
0
votes
2answers
3k views

Raster Calculator Workaround in Arcpy for Suitabiliy Analysis

This is my first attempt at a complex stand alone python code. I am self teaching the arcpy module, well at least attempting to. I am having a great deal of difficulty getting my site suitability ...
4
votes
4answers
2k views

How to sum raster image values with vector overlay

I'm new to this and haven't been able to figure out how to do this on my own. I have two files: a raster image of land use data and a vector-based shapefile of my territories. The raster image has ...
1
vote
1answer
20 views

How to calculate the area in kernel density?

I have estimated and reclassify my kernel densities and I would to calculate the area of each value. How could I do it? My Projected Coordinate System is WGS84 World Mercator. My pixel size is 10000 ...
3
votes
1answer
16 views

raster::rasterize set wrong values with enclosed polygons

Similarly to this post rasterize (R package raster) fail to rasterize island polygons? the rasterize function in the raster package is giving me problems with enclosed polygons. In my case, some ...
1
vote
1answer
24 views

How to define season by month and average data

I have 10 year NDVI data i.e. two values per month. I would like to average values within a season e.g Season A (January, February and March) per year and plot a graph. y axis=average ndvi value, x ...
1
vote
1answer
46 views

Comparing point pattern and raster data?

I have a simulated data set showing distribution of a certain habitat type as a point pattern. Then I have a empirical data set but there the format is raster. The two datasets are covering the ...
0
votes
0answers
8 views

Values missing with Polygon to Raster tool

I am trying to convert a polygon to raster using a field with six unique values as the 'Value' field in ArcGIS 10.2. However, when I do this, one of the values does not appear and instead those pixels ...
0
votes
1answer
220 views

plot 3D graph based on raster pixel values

I am new to raster data. I have a raster tif file with population density value in each grid cell. I am interested in plotting a 3D graph based on raster values in ArcGIS or R. The similar graph is ...
2
votes
1answer
42 views

Assign nearest raster cell value to point

I came across to a similar issue described in Finding nearest raster cell value based on vector point? I understand the proposed solution with Raster to Point and then Spatial Join with (for example) ...
1
vote
0answers
23 views

Is there a Python equivalent to QGIS Raster Calculator's “file1.asc” AND “file2.asc”

I would like to script a calculation equivalent to QGIS Raster Calculator's "file1.asc" AND "file2.asc". I have 18 data raster files which I would like to do the equivalent of ADD to each of five ...
1
vote
0answers
22 views

Compressing clipped raster in QGIS?

I am using QGIS: Raster/Extraction/Clipper I have a raster image (Sentinel 2 satellite 3 bands combination, total area: 1,000,000 hectares, file size 740 MB) from which I clip a certain area, which ...
3
votes
5answers
6k views

Fill in NoData gaps in raster using ArcGIS for Desktop?

I have a raster with gaps in it. I want to fill these in with averages of surrounding cells using ArcGIS 10.2 for Desktop. I have tried "Focal Statistics" but it averages EVERY cell and not just the ...
0
votes
2answers
26 views

Calculate mean value for each raster and convert output array to data frame

How do I calculate mean value for each raster and convert output array to data frame? r <- as.data.frame(cellStats(x,mean))
1
vote
1answer
290 views

Merging USGS DEMs in ArcMap?

I've downloaded some USGS DEMs from the National Map, which appear to be .adf files. I can open them in ArcMap 10.2, but I need to merge them into a single mosaic. To do this, I've created a raster ...
2
votes
1answer
39 views

very basic question on extracting data from .tif raster layer in R- projection not in lat/long

I have data on N deposition in the US, which can be found in a .tif file from a zipped directory, which can be accessed here: nadp.sws.uiuc.edu/maplib/grids/2006/TotalN_dep_2006.zip. I loaded the ...
2
votes
2answers
30 views

Create time series graph with multiple rasters

I need to create a time series graph for a few random cells with known underlying attribute such as "forest" or "agriculture" based on the VCI (Vegetation Condition Index). I have been reading and ...
0
votes
0answers
32 views

Crop raster files when importing with readGDAL from DB

I have quite a lot of raster files stored in a PostgreSQL DB. Each of them has around 200MB and is representing EU-wide data. However I only need the the rasters to cover the area of Germany. I'm ...
2
votes
1answer
258 views

How to smooth a raster in a rectangular fashion using gaussian blur?

How do I adjust the code for the Gaussian Blur posted in the thread: What raster smoothing/generalization tools are available? to retain the resolution/gradients in the y direction and blur only ...
4
votes
3answers
6k views

Extracting one band from three band raster in ArcMap?

I'm fairly new to ArcGIS and I get into trouble extracting a single band layer from a raster image .img in ArcMap that I want to use after in zonal statistics. So far, all help I found is to do the ...
0
votes
2answers
330 views

Remove sections, defined by a line or polygon, from a raster in QGIS

(QGIS 2.6.0 on Windows.) I have created a raster layer of heights using the TIN interpolate function. I also have another raster layer with more accurate information on the height of particular areas ...
3
votes
1answer
29 views

How to Serve a Cached/Mixed Raster to Geocortex

I have never used a Cached/Mixed Raster format before, but I had these air photos given to me and I have to get them served up to our Geocortex App. I've been trying for weeks to covert it to a JPEG ...
3
votes
4answers
4k views

“Extract by Mask” changing raster pixel values…or not?

I am using ArcMap 10.0 and am confused by my Extract by Mask output rasters. I hope to eliminate the black background from three Landsat ER Mapper images so that I can mosaic them. Originally I ...
1
vote
1answer
40 views

Get Raster Centroid using Arcpy

Purpose:To take an input raster image and clip its shape to a parcel block. In later stages this model will be applied to a loop. Logic: The Model receives an input raster image and calculates a ...
1
vote
1answer
22 views

Map netncf-file with different years and save the different layers in shapefiles

Download from this website the following netncf-file: cru_ts3.23.1991.2000.pet.dat.nc.gz. This is a monthly raster with data from all over the world from january 1991 to december 2000 I am using ...
0
votes
2answers
38 views

Add information from a raster nc-file to a polygon shapefile

DATA Download from this website the following ZIP file: NUTS_2006_60M_SH.zip and save all the NUTS_RG_60M_2006 files. In what follows I refer to this as "NUTS3 regions". Download from this website ...
2
votes
0answers
32 views

How can I change the origin (top left corner) coordinates of a raster using PyQGIS?

I am developing a python plugin for QGIS. The purpose of the plugin is to properly open an HDF5 dataset as a raster. Opening and displaying the raster can be done without the need for a plugin, ...
1
vote
0answers
23 views

Open raster and vector files with PyQGIS

I'm making a plugin for QGIS and I'm trying to open the layers I've created on QGIS, but I only get to open the one called 'sinkhole raster' which is the input of the tool. I don't know what order ...
0
votes
1answer
30 views

Removing Polygons With a Specific Size

How can I remove small polygons from a raster data set? I know that they aren't technically polygons, but I convert the rasters to polygons. The problem is that I want to focus on a specific polygon ...
0
votes
0answers
21 views

How to import TIF image with extents known but world file missing

I am having some real trouble figuring out how to import a tif file for which I know the corner coordinates but do not have the TFW (world file). I have tried changing them in properties but that ...
2
votes
1answer
20 views

SAGA Raster Calculator in QGIS Graphical Modeller not subtracting [on hold]

I am using QGIS 2.8.1 to build a model. All is working fine until the raster calculator input. I understand that the raster calculator in QGIS Modeller is a SAGA tool. With this, I have tried both the ...
2
votes
1answer
437 views

Can I update the service on ArcGIS for Server programmatically?

There is Windows Service. This service adds user raster data to the Raster Dataset in sde database. The Raster Dataset registred on the ArcGis Server. This Raster Dataset also was publishing on ...
0
votes
1answer
32 views

Calculate Raster with value from table

I would like to multiply all the values within a raster layer with one value, which is written in an *.csv table (it is the only value in this table). I tried this code (changing Times tool to Minus ...
0
votes
2answers
256 views

How to extract raster pixel value in ArcGIS

I am dealing with some very large geotiff files (the whole of Canada at a 250m resolution) and is having trouble to extract the pixels value as I need to do some calculations for mapping ecosystem ...
0
votes
0answers
19 views

Is Output Cell Size Environment the same as Resample tool?

I have a raster catalog that contains hundreds of rasters (10 x 10). I need to perform Cell Statistics SUM on all the raster. End user able to specify under what cell size the want to perform the ...
1
vote
1answer
32 views

Array written by GDAL with Python script has numbers read as “nan” by QGIS?

I would like to write an array to a geotiff with Python script using the GDAL module. When I try to do something simple like copying an existing GeoTiff via reading it to an array, then, writing to a ...
2
votes
1answer
1k views

Problem in importing raster data from PostGIS to Geoserver

I am using Opengeo Suite 3.0.2, PostGIS 2.0.3 and PostgreSQl 9.2. I am trying to import raster data from PostGIS to Geoserver but facing an error. I follow this tutorial link to import the raster ...
0
votes
1answer
31 views

relating land cover raster to vector data

I have a land cover raster basemap that covers different land cover/uses in Europe to 100m resolution and a separate Excel legend file. Separately I have a point shapefile with the details and ...
4
votes
5answers
4k views

Reproduce raster with same extent, and same number of columns and rows?

I have two raster A and B. A and B have the same grid size but different extent. How can I make A have the same number of columns and rows, as well as the spatial extent of B?
10
votes
4answers
3k views

Increasing speed of crop, mask, & extract raster by many polygons in R?

I'm extracting the area and percent cover of different land use types from a raster based on several thousand polygon boundaries. I've found that the extract function works much faster if I iterate ...
0
votes
2answers
417 views

Really slow extraction from raster even after using crop?

I have a large raster file (245295396) cells and stacks of rasters having 4 layers each which lie in the extent of this large raster. To start with I am trying to get value from one stack (3 channels) ...
1
vote
1answer
38 views

QGIS “Raster->Georeference” menu item not showing up

I am using QGIS 2.12.0 Lyon. I have installed a plug-in called "Georeferencer GDAL" and the version of that plug-in is 3.1.9 . [I am working on a Mac which is running OS X Yosemite 10.10.5.] I am ...
2
votes
1answer
317 views

Unsupervised raster classification using GDAL

Is there an equivalent in GDAL to the Arcpy ISO data unsupervised classification tool, or a series of methods using GDAL/python that can accomplish this?
26
votes
2answers
17k views

How can I convert data in the form of lat, lon, value into a raster file using R?

I have a data set of values over a km grid in the continental U.S. The columns are "latitude", "longitude", and "observation", e.g.: "lat" "lon" "yield" 25.567 -120.347 3.6 25.832 -120....
2
votes
0answers
14 views

PostGIS - raster - bit operations

I have a raster data in the database in separate rows. I would like to select 2 rows and do a bit operation with them (like |, &) and store the result in memory as a query output. Is this possible?...
0
votes
1answer
187 views

QGis export part of map (box with coordinates) as raster

I would like to export a map of Switzerland (as part of googlemaps) to use as a background for a graph, but I need to know exactly where each corner of the map corresponds to (wrt spatial coordinates)....
3
votes
1answer
187 views

Export Stretch Function values - Arcpy

I'm looking for a way to export Stretch Function values from images that’s stored in a Mosaic dataset. Not values from the whole set, but specific stretch functions per image. The set is stored in ...
0
votes
1answer
258 views

How to download the MODIS data from R using MODISTools library

I want to download MODIS product MOD13Q1 to use the Scientific Data Sets (SDS) layers of "250m_16_days_EVI", "250m_16_days_pixel_reliability". MODISTools library in R software provides the capability ...
1
vote
2answers
219 views

How I can sum 360 raster files in a folder with the Arcgis raster calculator?

In a folder I have 360 precipitation raster files and I want to sum them all to the raster calculator