Questions tagged [histogram]

a graphical representation of the distribution of observed data across the spectrum of classes of values.

Filter by
Sorted by
Tagged with
3
votes
1answer
27 views

Zonal Histograms in RQGIS3

I would like to calculate zonal histograms (number of raster cells of each type contained in a polygon) using the RQGIS3 package in R. The problem is that I can't seem to find the algorithm name for ...
4
votes
1answer
31 views

Setting Bin Count in QgsRasterHistogram

Following this question, I am trying to use QgsRasterHistogram to obtain a histogram of my raster image. However, I cannot figure out how to change bin count. I looked at the docs here, and it would ...
2
votes
1answer
22 views

Google Earth Engine chart error: No features contain non-null values of “year” [closed]

I'm trying to plot a chart from a collection I have created. While the data from this collection maps fine, I can't seem to produce a chart for it. Here is the code: var l5_coll = ee.ImageCollection('...
1
vote
1answer
72 views

Trying to make a histogram with ui.Chart.image.histogram() in GEE

I'm trying to make a histogram with the difference of two NDVI images from different dates, but I'm having trouble with the ui.Chart.image.histogram() function when I try to perform with my large ...
0
votes
0answers
41 views

Calculate histogram from raster stored in GeoServer

I have a raster stored in GeoServer which I can show it with Openlayers in my web page: raster = new TileLayer({ source: new TileWMS({ url: 'http://myip/geoserver/myworkspace/wms', params: {...
1
vote
0answers
60 views

Histogram from multiple raster in one graph in QGIS?

I have more than 10 rasters which are actually MNDWI index images created from Landsat image. I want to visualize all rasters (tiff) files in one graph to understand the spectral distribution. Is ...
3
votes
1answer
272 views

Counting number of points in each grid?

I would like to count the number of points in each cell. I have tried https://docs.scipy.org/doc/numpy/reference/generated/numpy.histogram2d.html but the out isn't appropriate. Does anybody know how I ...
0
votes
0answers
20 views

Setting bin size for Zonal Histogram in Arcmap?

I am trying to calculate a Zonal Histogram for distance to the nearest population centre in Arcmap for many different input files using Modelbuilder. As I want to be able to compare the different ...
3
votes
0answers
144 views

Histogram matching in Google Earth Engine?

Does anyone know if there is a more GEE-friendly way of achieving this? I'm experimenting with S1 SAR image histogram matching in GEE and was wondering if foremost the code can be improved. Read here ...
2
votes
0answers
25 views

Query of line direction histogram plugin

I was wondering if anyone could explain how this plugin works I have had a play around with it and I do like how it visualizes how vectors are orientated. However I ran one and opened the CSV file ...
1
vote
1answer
41 views

Fixing Histogram selectionChanged from Carto Airship 1.04 to 2.00?

I have spent quite a bit of time playing around with this generous example provided by Jorge Sanz of Carto: https://gist.github.com/jsanz/8025628d669f1d9d0647f658f5511774 One thing I've gotten stuck ...
0
votes
1answer
187 views

Making raster histogram excluding zeros in R?

In R, can I make a histogram of all the non-zero values in my raster? Some reproducible data below. I just want the histogram to be made with the zeros. Happy with a way to do that, or I guess to ...
2
votes
1answer
239 views

Unrecognized argument type to convert to a FeatureCollection:

I am unable to chart a histogram for my region for each image in an image collection. // Create clipping function var clipper = function(image){ return image.clip(geometry); }; var modis = ee....
0
votes
1answer
366 views

How to reduce a custom bin histogram for a region in Google Earth Engine?

I'd like to reduce all the conties' data histogram with a custom bin, but what I got is a auto bin histogram, it seems ee.Reducer.fixedHistogram() can help, but I don't know how to pass the parameters(...
2
votes
1answer
428 views

Values on top of each bar of a histogram in QGIS

Is it possible to show the values on top of each bar of a histogram created with QGIS? (I am using QGIS 2.18) I know this post [Is it possible to label bar charts? addressed a similar question years ...
0
votes
0answers
63 views

From raster histogram/raster make frequency tables in Python

Im new in programming... I would like to know, how I can get a frequency table from a rasters histograms? Or how can I generate the table from a raster? I would like a table of the histogram showed ...
2
votes
1answer
312 views

Earth Engine - function for printing multiple histograms

I have several time periods within a feature where the precipitation was very low stored in a FeatureCollection with the properties "begin", "end", "amount", "days".I want to use the feature ...
1
vote
0answers
71 views

Questionable data on single channel satellite bands vs. RGB composites

I am using Sentinel-2 images for a given region. I have all the separate bands and a merged RGB file, which comes standard with a download from ESA's API. Now I'm running some code where I separate ...
2
votes
0answers
56 views

QGIS 3.2 Raster Histogram frequency axis always locked at 1

Question is pretty much in the title: Whenever I go to layer properties and generate a histogram for a raster the frequency axis of the histogram is capped at 1. So for say a multi-band image I see ...
0
votes
1answer
56 views

Why is i.histo.match missing from QGIS 3.x?

I'm trying to normalise and then mosaic two ASTER scenes (multiple bands in each). The GRASS tool i.histo.match has been suggested in a few places, but it isn't listed in the processing toolbox for ...
0
votes
1answer
508 views

Accessing raster values to create histogram using ArcPy? [closed]

Using native Python and arcpy function what method is best to create a histogram of raster dataset? I know it's possible to use raterio and GDAL functions, but I would like to keep it a arcpy and ...
1
vote
0answers
108 views

Color different of two Sentinel 2A (L1C) images from the same sensing date

i'm new to this GIS Q&A websites and remote sensing as well, so sorry for this too basic question. It's about my Sentinel 2 (Level-1C) images. I downloaded 2 images with the same sensing date (09-...
3
votes
0answers
663 views

Min-max stretch using gdal_translate in a batch

I'm trying to do a min-max stretch on a raster and save it using gdal_translate. The syntax requires to enter source min and max raster values as arguments for a -scale option: -scale [src_min ...
1
vote
1answer
92 views

Histograms in Erdas Imagine staying grey

When I open the metadata in Erdas Imagine 2016 of a raster file (I tried several different raster files) the histogram at the histogram button stays grey. I already tried to change the setting of NAs ...
0
votes
1answer
1k views

How to work on histograms in ERDAS Imagine?

Is there a possibility to work on histograms in ERDAS Imagine? For example: Compare histograms of different images or different extents Shift them or find patterns I thought there must be good ...
1
vote
1answer
277 views

Why does gdalinfo -hist give values outside of [0 - 65535]?

I am running gdalinfo -hist on a 3 band tif file and am getting the following output (see below). Notice it says 256 buckets from -78 to 40184. That's fine, but then when it shows the histogram, ...
2
votes
1answer
55 views

Camembert and histogram style

I want to know if there is a method for displaying camembert and histogram on map using Openlayers3 and/or Geoserver. Like the picture bellow
1
vote
0answers
116 views

Changing “Stretch Type” of list of rasters to “Histogram Equalize” with ArcPy?

Goal: To modify a list of rasters using the histogram-equalize stretch-type What is the appropriate tool to use to change the stretch type of a list of rasters to histogram equalize with arcpy? ...
1
vote
1answer
260 views

Multiple histogram from a raster image in R

I need to get multiple histograms from a tif image. I have the following data: A big raster tif image: tif1 <- raster("myRaster.tif") hist(tif1, breaks= 10) # gives the entire histogram A ...
0
votes
1answer
162 views

ArcGIS Desktop Classification Histogram

Is there a way to access the classification histogram which is used when classifying data in ArcGIS desktop? The background is I have a series of data layers for which I need to use the same ...
1
vote
0answers
73 views

Histogram charts rendering away from data

I am having issues with producing Histograms in my file. Initially I thought they were not showing up, but it turns out they are, just extremely far away from my actual data. For reference: Here are ...
4
votes
0answers
218 views

What bin value does QGis Histogram uses?

I have some single-band rasters (NDVI) on Qgis, for which I can obtain their distribution histogram by going to Right-click > Properties > Histogram Tab > Compute Histogram. This is an ...
6
votes
2answers
670 views

Load frequency histogram in Print composer

I'm a QGIS-user and I'm looking for a way to add a frequency histogram in the print composer. The aim of it would be to visualize the distribution of values around the defined class borders of a given ...
1
vote
1answer
103 views

Remove histogram classification labels

Is there a way to remove this numbers associated with vertical segments in histograms in QGIS? I am using 2.18.
1
vote
1answer
257 views

What's the default histogram manipulation of QGIS for displaying RGB images?

When you open an RGB geotiff (e.g. bands 4-3-2 of Sentinel-2) as raster dataset in QGIS - what histogram manipulation is applied by default? Of course I can look at the min-/max-values, but I'd like ...
3
votes
2answers
2k views

Raster histogram in R

I need to do a histogram from a big raster, its a full region in Chile. But I don't like the QGIS's Histograms so I decided to make it in R. I installed sp, raster and rgdal packages, but R brings me ...
2
votes
1answer
165 views

ST_Histogram pretty categories

I have an elevation raster (DEM) in PostGIS and want to compute a histogram using ST_Histogram. I use this query: SELECT (ST_Histogram( ST_Union(ST_Clip(rast,polygon.geom)), 1, -- raster ...
1
vote
0answers
28 views

Geosoft GRD histograms do not save in layer file

My colleagues and I are using ArcGIS 10.3 and 10.1 with the free Geosoft plug in. When saving layers containing geosoft grd files we usually display using a percent clip which require the histogram to ...
2
votes
1answer
244 views

Automatic contrast stretch for each atlas element?

I'm working with QGIS 2.18 (windows) and the useful atlas tools. My covering layer is a polygon layer (20 features). My atlas template is composed by 4 map elements representing different images ...
4
votes
1answer
1k views

Creating histogram for slope raster in QGIS?

I am looking at landslide distribution and I am wanting to look at the distribution of landslides on different slopes. Ideally, I am wanting to create a graph that displays the slope distribution for ...
1
vote
1answer
619 views

Can the histogram size in the legend of a tmap be adjusted?

Really enjoying tmap, and very happy to see the inclusion of histograms. Can that hist object be modified in any way? See below how the natural histogram object is somewhat squished. this_name = "...
0
votes
1answer
118 views

using histogram2d with categorical dimension

This is a scatterplot of business addresses in Melbourne by ANZSIC division names. sns.pairplot(x_vars=["x coordinate"] , y_vars=["y coordinate"] , data=d , hue=...
1
vote
1answer
330 views

Getting Hypsometric curve and Integral from elevation data in ENVI?

I am attempting to get the hypsometric curve (HC) and integral (HI) from some elevation data. The data I have is in ENVI format (ENVI ROIs and DEMs). Eventually, I would like to automate this, but for ...
0
votes
2answers
280 views

Zonal histogram completed but no output created

I am trying to obtain zonal histogram data for about 10 000 statistical sectors in Belgium. So I have a shapefile containing these polygons. I also have a value raster which has been reclassified : ...
0
votes
1answer
112 views

Lena Histogram 8 bit unsigned image

I am working on Lena image (unsigned 8 bit grayscale 512*512 pixels). I tried to plot the histogram using matlab (inbuilt imhist function) and in arcgis. I am getting different pixel count, appx duble ...
2
votes
1answer
639 views

QGIS equivalent to the ArcMap Zonal Statistics as Table

Is there a QGIS equivalent to the Arc: Spacial Analyst: Zonal: Zonal Statistics as Table? Given the USDA Cropland Data Layer, Would like to count the pixels by type within a county.
2
votes
0answers
346 views

How to do color correction when mosaicing and clipping with gdalwarp

I'm mosaicing a number of GeoTiffs with gdalwarp and clipping to a geojson area of interest using the following command: gdalwarp -of GTiff -cutline <PATH_TO_GEOJSON> -crop_to_cutline -...
1
vote
0answers
202 views

UInt16 only has 256 buckets

I used gdal_translate to converted a Float32 DEM to a UInt16 .tif and then ran gdalinfo -hist. In the histogram it says that it has 256 buckets. I also ran -hist on a 8bit .tif and that also has 256 ...
2
votes
2answers
502 views

Problem opening JP2 image using GDAL (interaction of -stats and -hist flags)

I came across unexpected GDAL behaviour while working with Sentinel-2 data granules. The Sentinel data should have values between 0 and 10000 when opened correctly. However, I have noticed that when ...
2
votes
0answers
480 views

How to match the colors of different RGB mosaic rasters?

I am beginner in QGIS. I want to classify many RGB rasters (see picture) but their colors don´t match. As you can see, the green polygon shows the same land cover class (meadow) but in each tile the ...