Questions tagged [binary]

base-2 numeral system, represents numeric values using two symbols: typically 0 and 1.

Filter by
Sorted by
Tagged with
0 votes
1 answer
246 views

psycopg2 cursor.copy_expert() BadCopyFileFormat: extra data after last expected column when writing WKB data

I am trying to write a WKB representation (i.e. a binary string) of a Shapely Polygon into a PostgreSQL/PostGIS database using psycopg2 cursor.copy_expert() for a bulk insert. I narrowed down the ...
user avatar
  • 6,748
1 vote
1 answer
56 views

Area based Heatmap (QGIS)

I am new to QGIS. I am trying to create a heat map based on area not points. What I want to acheive is similar to this question. I want to create a binary raster (0 for no point, 1 for point). Then, ...
user avatar
1 vote
0 answers
21 views

nodata leads to high pixel values after aggregation

I am working in QGIS with binary raster images and my task is to decrease the resolution from 0,1 to 5m. Problem is, I have several areas that were excluded with “no-data” beforehand. After ...
user avatar
  • 31
0 votes
1 answer
282 views

Convert mask band to binary image in google earth engine

I have created a mask band giving several band thresholds but I am unable to use this band for validation as there are no pixels outside the mask. So I would like to make a binary image with one value ...
user avatar
  • 111
1 vote
0 answers
16 views

Read Applanix.00n data

I have some GNSS/INS data coming from an Applanix POS AV 510 system. They are a series of binary files named "applanix.000", "applanix.001" and so forth. Is there any way to read ...
user avatar
0 votes
1 answer
144 views

Create a binary raster

I am working with ecological niche models, I have a raster which represents the current scenario (img). I have a raster which represents the future scenario. To work on R, analyzing the lost areas ...
user avatar
1 vote
1 answer
73 views

Calculating the percent of binary values in grid of 1 km by 1 km across the entire raster

I have a raster of the entire united states with 30 meter by 30 meter pixel size. Each pixel has a value of either 0 or 1, with 1 defining a certain type of landcover. I need to find the percent of 1'...
user avatar
  • 147
3 votes
1 answer
197 views

OGR python : write binary data in layer

I'm trying to create a memory layer with gdal/ogr python that contains a Binary Field. But I didn't succeed, where am I wrong? from osgeo import ogr # create layer driver = ogr.GetDriverByName('...
user avatar
0 votes
1 answer
43 views

Inspect raster value of a pixel to see bits that are on/off in GRASS GIS

I am working with Landsat-8 C1-Level 2 imagery and I need the information that NASA provides in the pixel_qa file. The information about the content of the pixel is given by turning on a certain bit, ...
user avatar
  • 85
2 votes
1 answer
248 views

how to remove small water bodies in binary mask array that we get from ndwi values?

I've detected water bodies in satellite images (modis, sentinel, landsat) in special area polygons, by ndwi values and based on special thresholds. area polygons and image tiles are coordinate ...
user avatar
1 vote
1 answer
607 views

Error displaying/cleaning binary image in Google Earth Engine (from Sentinel-2 imagery) [closed]

I'm working on classifying the 'active' part of rivers using Sentinel-2 imagery in GEE (including water and the unvegetated, exposed sediment around the edges of the river). The goal is to output a ...
user avatar
  • 21
0 votes
1 answer
1k views

How to convert .dat file to raster?

I am very new to GIS and I've looked everywhere for a solution but to no avail. I want to analyze Himawari 8 Gridded Data. I am following the steps to process gridded data, link below. http://...
user avatar
1 vote
1 answer
210 views

Reading same hgt file downloaded from two sources

I have two tiles for SRTM1 for the same bounding box region, but downloaded from two sources. I read a value for a given latitude and longitude with python. I get always a difference of one meter for ...
user avatar
  • 167
2 votes
0 answers
65 views

Receiving strange characters from GPS tracker, is this HEX or binary?

I am struggling with a GSM GPS tracker. It looks like a clone of GT02A, and it is a relatively common model. My problem is that when it sends data to my server, it is not readable. I set it to send ...
user avatar
  • 141
1 vote
0 answers
33 views

Model binary rasters over time against non-spatial variable (e.g., inundation over time vs. gage height)

I have a time series of raster images for a study area that have been processed to a binary classification (inundated/not inundated). Each image in the series is time-stamped and can be associated ...
user avatar
0 votes
0 answers
99 views

Measure for spatial autocorrelation in fire occurrence data

I am trying to determine the variables that predict forest fire occurrence in a region in Chile. Firstly, I determined burned areas using LANDSAT data and the dNBR-index. I ultimately made a raster ...
user avatar
  • 1
0 votes
0 answers
98 views

Create a binary output raster using an algorithm of reflectance indices

I'm attempting to create a binary output raster in ArcMap based on an algorithm that uses three different reflectance index rasters I've already created from Landsat 5 data (mNDWI, NDVI, and EVI)the ...
user avatar
1 vote
1 answer
410 views

Feeding gdalwarp with binary data instead of ascii, how to specify header information

I have a working pipeline where I download a tar.gz file which contains multiple binary files in the german RADOLAN format (Translate PNG obtained through RADOLAN from DWD's projection to EPSG:...
user avatar
  • 155
4 votes
2 answers
2k views

Create presence/absence (0/1) rasters for every value in categorical raster in R?

I am conducting a logistic regression analysis of spatial data for a project using STAN MCMC within R. The regression analysis itself is done, but now I need a way to apply the parameter estimates for ...
user avatar
  • 2,639
11 votes
0 answers
299 views

ESRI Runtime Geodatabase Shape storage

Does anyone out there know the geometry storage encoding for ESRI's Runtime Geodatabase (.sqlite) format? aka mobile geodatabase. There are 'GDB_ tables', 'st_ tables', 'RTREE indexes' and other ...
user avatar
  • 1,990
0 votes
2 answers
1k views

Seeking Trimble GGF Geoid File Format Specification?

I want to generate Trimble GGF Geoid files from my software. Can anyone provide me with a format specification for the binary ggf files used by Trimble? I found a basic description on the ...
user avatar
  • 296
1 vote
1 answer
563 views

Spatial correlograms for binary raster?

I have binary raster data (deforestation hotspot or not) that I would like to plot spatial correlograms for in R, to look at spatial autocorrelation over different spatial lags. I came across this ...
user avatar
3 votes
1 answer
1k views

Decoding this GIS blob

I am new to the decoding world (and even to the world of gis), but I am definitely not new to programming and large data. I was tasked with uncovering a column in our db with this information. It's ...
user avatar
1 vote
2 answers
2k views

Converting binary TRMM to GeoTIFF using R?

I´m trying to convert a binary image of TRMM satellite to Geotiff format using this R code: setwd("C:/Users/Hugo/Desktop") trmm.data.file<-"C:/Users/Hugo/Desktop/3B42_daily.2013.04.22.7.bin" trmm....
user avatar
  • 389
1 vote
1 answer
68 views

Why modes are represented with numbers, that are powers of 2.? [closed]

In TraverseModeSet class of org.opentripplanner.routing.core package, Modes are represented using integer numbers , those are powers of 2. Why? private static final int MODE_BICYCLE = 1; private ...
user avatar
  • 173
1 vote
0 answers
84 views

Changes in MOD09A1 quality mask as processed with GDAL

I'm analyzing MOD09A1 spectral data using GDAL/Python. The quality mask is a uint32 dataset and want to pull out the value of the first bit to mask the spectral data (1 == poor data; 0 == good data). ...
user avatar
  • 729
5 votes
1 answer
262 views

How to interpret MOD44B 8-bit quality layer

I have 15 annual MOD44B (vegetation continuous field) HDFs for 2000-2014, working in Arcmap 10.2. Each contains several bands. The two I'm concerned with are "percent tree cover" and "quality." The ...
user avatar
2 votes
0 answers
189 views

Knowing byte address and byte length of "strip" in LZW-compressed GeoTiff with vanilla PHP?

I have a situation where I need to read cell values from a GeoTiff using vanilla PHP, and while I've been successful reading values from an uncompressed TIF (~800MB), I'm having difficulty reading ...
user avatar
  • 6,140
0 votes
2 answers
881 views

How to compile or find PHP MapScript (MapServer) latest version for Windows?

I had major performance difficulties with MapServer version 6.0.3 (MS4W 3.0.6) and need latest version of MapScript but I can't find it for Windows. Anybody can help me to find latest compiled (...
user avatar
  • 262
1 vote
1 answer
452 views

Normalized Difference Built Up Indice with a threshold value in QGIS modeler

I want to use the modeler in QGIS, model the NDBI with a threshold value in order to produce a binary image. positive values = 1 and negative values = 0 my question is about which tool I can use in ...
user avatar
4 votes
2 answers
902 views

Reading binary rainfall data (*.trm) in ArcGIS for Desktop?

I have some *.trm binary data that is merged Tropical Rainfall Measuring Mission (TRMM) rainfall data. I have to read it through ArcGIS for Desktop to extract rainfall data from this.
user avatar
  • 41
2 votes
1 answer
174 views

Converting polyline to presence absence raster in ArcPy?

I have a polyline that I am converting to a raster in arcpy. This is occuring within a loop and at each iteration I change the processing environment to a different area of interest. In this case it ...
user avatar
  • 1,617
1 vote
1 answer
120 views

Trying to read string-based binary (?) code into something like WKT to be read by a spatial database

I've recently received some parcel data that has "shape" columns which are strings by default and look something like this: "...
user avatar
  • 1,776