Skip to main content

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
-1 votes
1 answer
57 views

Histogram matching high-res tiles to satellite image tiles

I have a 3-trillion pixel mosaic TIFF image made from 1-meter NAIP imagery. The NAIP imagery has significantly different values from area to area so seams are quite evident. I have a sentinel-2 TIFF ...
Jeshua Lacock's user avatar
1 vote
1 answer
48 views

Merge multiple histograms into a single table and export as CSV

I'm trying to merge multiple histograms of NDVI into a single table for future analysis I know how to export and download single histogram like in the second image, but I'm aiming for something that ...
Harel's user avatar
  • 91
0 votes
0 answers
98 views

Histogram and Statistics not showing in ArcGIS Pro

I've been trying to calculate the histogram and statistics in ArcGIS Pro through Symbology. I've tried seeing the histogram of "create chart" (but it shows different results from Symbology's ...
Padrodi's user avatar
1 vote
1 answer
105 views

Get index based on a condition in Google Earth Engine

I have a list of cumulative proportions based off of a histogram that I calculated in Google Earth Engine. Now I want to find the index of this list where the value is >= 0.995 and then use that ...
ESimonson's user avatar
4 votes
1 answer
166 views

Removing space between Histograms in QGIS

I would like to remove the space between the bars in the histograms but I cannot find a way to do so. See the image below for reference.
VV_61's user avatar
  • 73
2 votes
1 answer
112 views

Does QGIS and GDAL result in a loss of clarity when converting a 16-bit image to 8-bit?

I am converting a 16-bit image to an 8-bit for an ML dataset. The conversion script considers the min and max values of each band instead of a linear scale from 0-65535 to 0-255. However, the 8-bit ...
addcolor's user avatar
  • 1,304
1 vote
1 answer
74 views

Browser hangs while parsing georaster in geoblaze

I've been trying to create a histogram using geoblaze with a COG from s3. The georaster is as follows: (generated with geoblaze.parse(url)) { _data: '==hidden==', projection: 32618, height: ...
Snape's user avatar
  • 11
1 vote
0 answers
142 views

QGIS Data Plotly widgets not installing correctly [closed]

I'm using QGIS 3.28.6 Firenze and installed the most recent version of Data Plotly. I'm trying to create a histogram with statistics of some data, and all the Data Plotly widgets don't show up when I ...
Ellabella234's user avatar
0 votes
0 answers
100 views

Global surface water/ How to compare area of latest image to older images and generate histogram

Based on the Global surface water script, I would like to compare the water decreasing per year and plot a histogram for the area lost per year. I know that there is a dataset that goes by monthly ...
Rene's user avatar
  • 1
1 vote
0 answers
121 views

QGIS Zonal Histogram failure on high resolution multispectral orthomosaics

I'm trying to run zonal histograms on high resolution multispectral orthos collected via drone. I'm trying do do vegetation assessments on crop, and when I run the QGIS zonal histogram function it ...
Jesse Lawrence's user avatar
1 vote
1 answer
213 views

Can I use histogram matching to harmonize two sensors data? (SPOT and Planet)

I have to image collections of SPOT (airbus) and Planet. The images are not overlapped (from different locations) and are not from the same dates. However they have RGB-NIR. I would like to be able to ...
ReutKeller's user avatar
  • 2,169
1 vote
1 answer
197 views

Working and saving histogram of data

I'm new to R and struggling to create a histogram and add a mean line. I've tried both hist() and doing it through ggplot, but keep seeing errors. I'm using the newest version of R studio on a windows ...
emp808's user avatar
  • 11
0 votes
1 answer
54 views

Using different Raster field when is not "Field" parameter for "input value raster" with arcpy.sa.ZonalHistogram

I want to get the Histogram of a Raster using the "Value" field in the raster attribute table. The "feature zone data" is a shapefile and the "Input Value Raster" a 32Bit ...
noNameDije's user avatar
0 votes
1 answer
375 views

Google Earth Engine scaling behavior of discrete vs continuous image data

I have a simple question related to how GEE determines continuous vs discrete data, specifically during scaling operations as described here. I am unable to find a proper description of this, but my ...
Fernando Moyano's user avatar
2 votes
1 answer
732 views

Create one histogram for S2 ImageCollection in Google Earth Engine

I'm trying to compute ONE histogram for an entire ImageCollection in Google Earth Engine (example code here: https://code.earthengine.google.com/b10f5136a79a6309e381ae11aa9b7431) What I'm doing now to ...
Astrid's user avatar
  • 23
2 votes
1 answer
73 views

Match feature diagrams with temporal fuction in QGIS

I am trying to create a time-dependent visualisation using a heatmap-styled points layer and a points layer with values to show at specific locations. The heatmap one shows occurrences over the ...
Evanilton E S Pires's user avatar
1 vote
1 answer
137 views

QGIS histogram shows non-existent values

I work with Sentinel-2 images. I wanted to plot a histogram of a cloudmask, but it showed non-existent values. I used the MSK_CLDPRB_20m.jp2 layer, which is a raster that shows the probability of ...
Niek's user avatar
  • 95
1 vote
1 answer
471 views

Calculate histogram for every image in ImageCollection using map function and reduceRegion in Google Earth Engine JavaScript API

I want to calculate histograms for every image in an ImageCollection with reduce.histogram. It works with a single image but I have problems mapping the function over the ImageCollection. I think the ...
lena's user avatar
  • 179
2 votes
1 answer
482 views

Rasterio show_hist display issue

I'm trying to display the histogram for the bands but I keep getting the following object whenever I execute show_hist. Here is the code I executed: from rasterio.plot import show_hist show_hist(...
Geosphere's user avatar
  • 763
1 vote
1 answer
657 views

Calculate coverage of class types in GEE

I want to define coverage of each land cover type in my study area in Turkey-Isparta. I call ("COPERNICUS/CORINE/V20/100m/2018") dataset and restrict it for my region as below (I load ...
Solmaz's user avatar
  • 149
1 vote
1 answer
369 views

How to create a histogram of areas of clustered S1 image in Google Earth Engine?

I am using S1 images and clustering in Google Earth engine to identify different land uses. I clustered using ee.Clusterer.wekaKMeans(5).train. Now I want to create a histogram that shows the area per ...
justin fiedler's user avatar
3 votes
2 answers
1k views

How to manually adjust QGIS raster histogram X-values?

Background: At 3.20.2 I am unable to manually adjust the raster histogram minimum and maximum X-values, as shown in the screen shot below. There are fill-in boxes (within the red graphic box) which ...
Stu Smith's user avatar
  • 8,192
3 votes
1 answer
1k views

Zonal Histogram - Python

My main goal is to get the percentage of vegetation cover of gardens. The figure below shows the gardens (orange borders) with vegetation and non-vegetation. I want for each garden the percentage of ...
user avatar
2 votes
1 answer
2k views

Extracting pixel values in sample polygons in Google Earth Engine

I am trying to generate histogram of pixel values for my sample polygons. I used the code suggested on Histogram Matching in Google Earth Engine. Its working but I am not able to control the bin size ...
Monish's user avatar
  • 131
0 votes
1 answer
143 views

How to make histogram of NIR band bimodal enough to differentiate water from land in GEE? [closed]

I am interested to map water bodies in a desert from swir band of sentinel 2. How I can make a bimodal histogram in GEE? I have one reference water body in scene. Is it possible to do the same in ...
Tariq Abbas's user avatar
4 votes
0 answers
260 views

Chart multiple regions on one histogram

I'm having trouble trying to chart multiple regions onto one histogram. var urban1 = urban.first().geometry(); var pine_forest1 = pine_forest.first().geometry(); var regions = ee.FeatureCollection([ ...
M Johnson's user avatar
2 votes
1 answer
196 views

Histogram of ratio between different pixels in Google Earth Engine

I would like to generate a histogram of the ratio between pixels within a polygon called "MODISofstation". Thereby all the pixels within my polygon should be compared to the pixel where my ...
xdsccc's user avatar
  • 121
2 votes
0 answers
1k views

Reverse legend histogram palette in tmap

I'm trying to plot the histogram values with the same order as the color palette of a raster legend, passing the parameter legend.col.reverse = TRUE reverses the legend but not the histogram, since I'...
Elio Diaz's user avatar
  • 3,486
1 vote
1 answer
5k views

Python Matplotlib Combine legend from histogram and lines [closed]

I wrote a Python script that uses matplotlib twinx to combine a histogram and some line functions plot as can see in the figure. However I was not capable of combining both legends (nb of points and ...
MarujoRe's user avatar
  • 376
3 votes
1 answer
2k views

Control histogram axis and legend with show_hist of rasterio

I have load raster (Sentinel 2) with Rasterio and I would like to create histogram of the pixels. The problem is that I beleive the graph gives automatically the X label and also the legend labels. ...
ReutKeller's user avatar
  • 2,169
1 vote
1 answer
140 views

Zonal histogram processing and invalid geometries

In QGIS 3.4, when I try to get a zonal histogram it returns an error related to invalid geometries in the vetor layer. I've fixed geometries and, despite the layer have seemingly only valid ...
Beto Jacintho's user avatar
1 vote
0 answers
184 views

Google Earth Engine unequal histogram values

I am creating histograms in Earth Engine of pixel values of cloud masked EVI from different years using Landsat 8. For each of the layers I create, I use an identical geometry to clip the output, but ...
em.popcorn2's user avatar
1 vote
1 answer
121 views

Error in raster histogram in QGIS3.0 with PyQGIS

I am working on a plugin, one of its functions is to create the raster layer histogram. I generate the histogram using the histogram method of QgsRasterInterface and graph it well, without problems in ...
Luis Perez's user avatar
  • 1,294
1 vote
0 answers
332 views

Image equalization after tiling, using gdal_translate -scale

I want to generate a set of samples from a Sentinel-2 image by tiling it, using mainly gdal_translate. The tiling is ok, but its histogram seems to vary tile to tile. So, what I thought was to apply ...
66lotte's user avatar
  • 31
0 votes
0 answers
122 views

uint16 to float

I have a WorldView-2 satellite image in uint16 and the (for example) RED band histogram is ranging from 1 to 3458. As you can see, most of the values are within ~(130-500) with very few values ...
Antares's user avatar
0 votes
0 answers
233 views

How to plot pies or histograms around points (GeoPandas) containing different level values indicators?

This is my code (a simple sample of df). I'd like to have around each point on a map, an histogram or pie showing the mechanical bikes out of the total. import pandas as pd pd.DataFrame( {'...
Lorenzo Nicolosi's user avatar
0 votes
1 answer
266 views

Export ReduceRegion fixedHistogram toDrive

I'm trying to export a fixed histogram from reduceRegion as a .csv file. I'm sure im missing the obvious here, but can't find a reasonable example that does this straightforward. I can do it as a ...
Jobbo90's user avatar
  • 2,073
3 votes
2 answers
3k views

Trying to understand Otsu method code in GEE

I hope this question is OK, I know it's not usual kind of questions that are being posted here. I am trying to apply Otsu method on image in GEE. For that I have used the code that can be found here :...
ReutKeller's user avatar
  • 2,169
1 vote
1 answer
2k views

Rasterio histogram save as image

I have create some histogram using DEM as dataset and rasterio using show_hist to take histogram but I can't find some way to save this histogram as image.any idea? import rasterio from rasterio.plot ...
jessie jes's user avatar
  • 1,061
3 votes
1 answer
567 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 ...
Glenn Stauffer's user avatar
4 votes
1 answer
90 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 ...
ffgg's user avatar
  • 113
2 votes
1 answer
136 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('...
harsh raj singh sisodiya's user avatar
3 votes
1 answer
4k 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 ...
Felipe Lillo Robles's user avatar
0 votes
0 answers
281 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: {...
David1212k's user avatar
3 votes
0 answers
501 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 ...
tawhid hossain's user avatar
3 votes
1 answer
5k 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 ...
Danial's user avatar
  • 91
3 votes
0 answers
705 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 ...
Francis Laclé's user avatar
2 votes
0 answers
56 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 ...
Alison Jones's user avatar
1 vote
1 answer
54 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 ...
smarchan's user avatar
0 votes
1 answer
1k 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 ...
ecologist1234's user avatar