Questions tagged [geotiff]

GeoTIFF is a public domain metadata standard which allows georeferencing information to be embedded within a TIFF file.

GeoTIFF is a public domain metadata standard which allows georeferencing information to be embedded within a TIFF file. The potential additional information includes map projection, coordinate systems, ellipsoids, datums, and everything else necessary to establish the exact spatial reference for the file. The GeoTIFF format is fully compliant with TIFF 6.0, so software incapable of reading and interpreting the specialized metadata will still be able to open a GeoTIFF format file

more information - http://en.wikipedia.org/wiki/GeoTIFF

505 questions
7
votes
1 answer

Extracting specific netcdf info and converting to GeoTIFF in python

I am attempting to extract a specific set of data from a netCDF file and then convert said data to a GeoTIFF. So far I have managed to extract the data I want using netCDF4, all the data in the file are stored as 1d arrays (lat, lon, data I want)…
cd123
  • 511
  • 1
  • 5
  • 15
7
votes
4 answers

How to set the "band description" option/tag of a GeoTIFF file using GDAL (gdalwarp/gdal_translate)

Does anybody know how to change or set the "Description" option/tag of a GeoTIFF file using GDAL? To specify what I mean, this is an example of gdalinfo return from a GeoTIFF file with set "Description": Band 1 Block=64x64 Type=UInt16,…
Generic Wevers
  • 570
  • 6
  • 10
7
votes
1 answer

Read elevation using gdal python from geotiff

I am loading a geotiff file using GDAL. I have managed to read the coordinates X,Y but not the elevation. Has anyone worked on a similar case before ? Regards,
user3548574
  • 87
  • 1
  • 2
  • 10
6
votes
2 answers

What are the corresponding fields to set in libtiff or libgeotiff, given a minimal ESRI ASCII file?

I have an ESRI ASCII file of the form: ncols 5 nrows 4 xllcorner 0 yllcorner 0 cellsize 10 NODATA_value -9999 25.4 26.1 27 28.6 27.7 25 26 26.4 27.9 27.4 25.1 25.8 26.8 28.6 27.6 27.5 28 27.7 30.6 28.3 And I need…
Graviton
  • 81,782
  • 146
  • 424
  • 602
6
votes
2 answers

generating GeoTIFF colormaps

I am generating 2D statistical maps and would like to also generate and save the image colormaps. The mean-size image has a data type of float32. The following example modified from online sources: with rasterio.open(name,'w',**profile) as dst: …
EBo
  • 355
  • 1
  • 3
  • 17
6
votes
1 answer

GTiff mask with shapefile in python with gdal, ogr, etc

OK, After a bit of fiddling, I've tweaked a script from the site hyperlink in the second comment line. The purpose of the script is to clip/mask a LARGE raster (i.e. that cannot fit into a 32-bit Python 2.7.5 application) in GTiff format with a…
ksed
  • 335
  • 1
  • 4
  • 13
6
votes
1 answer

Create a geotiff from an existing bitmap in C# with gdal

I have to use gdal in a c# project. The thing I have to do is to "convert" a simple bitmap into a GeoTiff. I read some documentation on the gdal website but I didn't succeed to make it work perfectly. In fact my bitmap is successfuly exported to a…
Ashbay
  • 1,641
  • 13
  • 20
5
votes
3 answers

If You Have A GeoTiff, Would It Be Possible To Transform A Lat/Lon Point To An X,Y Using The GeoTransform?

I'm using the GDAL library. Currently, I can take in an upper left point and an upper right point and chip an image out of the original. What I'd like to do now, is take in two WKT points and convert to X,Y coordinatees to do the same thing. I…
avtoader
  • 63
  • 1
  • 8
5
votes
2 answers

Create Geotiff using "LibTiff.Net", and add geographic information

I'm trying to create a geotiff (elevation DEM data) file by using Libtiff.Net. The problem is that I have never succeeded to add the following two tags: TiffTag.GEOTIFF_MODELTIEPOINTTAG TiffTag.GEOTIFF_MODELPIXELSCALETA To add the tag, I wrote the…
Nazonokaijin
  • 121
  • 10
5
votes
2 answers

Read only a crop or extent of a raster in R

I am working with a huge amount of data in daily tif files (thousands of daily files). I am analyzing the mean of the raster in a shapefile area, repeated over potentially thousands of shape layers. My current .tif files are for an entire country…
Neal Barsch
  • 2,810
  • 2
  • 13
  • 39
5
votes
3 answers

how to convert geotiff to jpg in python or java?

i have a geotiff images that have 3bands. band1,2 is a actual image values and band3 is a instance angle value. band1,2 is float32 data type under code is that i try before. but it doesn't work. i think band data's range is too large, so it doesn't…
송준석
  • 991
  • 1
  • 16
  • 32
5
votes
2 answers

GIS / GEOTiff / GDAL / Python How to get coordinates from pixel

I'm working on the project to detect the object from GEOTiff files and return coordinates of the objects and those output will use for drone to fly to those coordinate I use tensorflow with YOLO v2(image detector framework) and OpenCV to detect the…
5
votes
2 answers

How to convert png to geotiff?

I have a PNG image file.I want to convert it to GeoTiff. I installed QGIS software but i can not use it and i dont know how to Georeference the image. Please help me. is there any online software ?
BJ_213
  • 73
  • 2
  • 9
4
votes
0 answers

Getting Error while clip raster using shape file

# Read Shapefile with fiona.open("/content/drive/My Drive/shapefile/shape_files/lidar_shape.shp", "r") as shapefile: shapes = [feature["geometry"] for feature in shapefile] # read imagery file with rasterio.open("/content/drive/My…
4
votes
0 answers

Use xarray to save DataArray as geoTiff, without using ram memory

I need to modify a very large geoTif file (over 200GB), however when I save it my code crashes as it loads the file in memory. The code looks like this. import xarray as xr # open the file ds = xr.open_rasterio('file.tif') # modify here ..... #…
ferlix
  • 61
  • 1
  • 5
1
2
3
33 34