geotiff

Issues resampling raster to the resolution of another raster

Issues resampling raster to the resolution of another raster Question: I am trying to take a population raster and resample+reproject it to match the shape and resolution of a precipitation raster. Data Links: Population Data: https://figshare.com/ndownloader/files/10257111 Precipitation Data: https://www.ncei.noaa.gov/data/nclimgrid-monthly/access/nclimgrid_prcp.nc The Population Data is a series of rasters per decade of 5 different population models covering …

Total answers: 1

get elevation from lat/long of geotiff data in gdal

get elevation from lat/long of geotiff data in gdal Question: I have a mosaic tif file (gdalinfo below) I made (with some additional info on the tiles here) and have looked extensively for a function that simply returns the elevation (the z value of this mosaic) for a given lat/long. The functions I’ve seen want …

Total answers: 1

Python: how to make temporal projection from a netecdf file?

Python: how to make temporal projection from a netecdf file? Question: I have created an xarray.Dataset called myData that contains data for the years 1990, 2000 and 2015. The dataset looks like the following: import xarray as xr myData= xr.open_dataset(‘myData.nc’) I would like to have information for every year from 1990 to 2000. I can …

Total answers: 1

Create a Geotiff file from scattered data in python

Create a Geotiff file from scattered data in python Question: I have a dataset of points (latitude, longitude, value) and i want to create a Geotiff file from these points. latitude,longitude and the value are float32 numbers I want to generate a custom raster that interpolate over those points. Link I want to obtain a …

Total answers: 1

Rasterio Geotiff Coordinate Translation

Rasterio Geotiff Coordinate Translation Question: I have some geotiff files but the coordinates are slightly off. I want to use rasterio’s API (or other python geo API like pygdal) to geometrically translate (shift) the image. For example, how do I move the image’s coordinates ‘north’ by a single pixel width. When displayed with a tool …

Total answers: 1

How to copy the spatial reference from a shapefile to a geotiff raster?

How to copy the spatial reference from a shapefile to a geotiff raster? Question: I have constructed a python script that constructs a geotiff raster from a shapefile. At present the geotiff produced does not contain the spatial reference of the shapefile. How do I copy the spatial reference from the shapefile to the geotiff? …

Total answers: 1