All Questions
Tagged with xarray geotiff-tiff
12
questions
2
votes
1
answer
36
views
Create .nc file from multiple tif files : metadata time
I'm trying to create a single .nc file with 3 dimensions : x,y and time. In order to do so I have multiple tif files named by their date : 2013-04-24_Turb.tif for the 24-04-2013. I would like to do ...
1
vote
0
answers
158
views
Convert the netcdf file to geotiff with chosen coordinate system
I have a nc file retrieved from the following link https://www.globsnow.info/swe/nrt/2020/data/GlobSnow_SWE_L3A_20200110_v.1.0.nc.gz. I am trying to convert this file to geotiff in wgs 1984 coordinate ...
0
votes
1
answer
850
views
Convert a multiband GeoTIFF to a timeseries NetCDF file in xarray
I am trying to create a time series object from extracted climate data (NEX-GDDP) using the Google Earth Engine (GEE). The data is daily meteorological data, and in the attached file, the data for ...
0
votes
0
answers
52
views
Python, colorize raster randomly avoiding same color for adjacent cells
I'm processing GeoTIFF rasters with python and xarray. The file contains some cells with different values. It looks like that:
There are about 100 different values in the file and each value needs to ...
1
vote
1
answer
1k
views
Add lat and lon to DataArray read in by rioxarray
I downloaded a GeoTIFF from here: https://www.nass.usda.gov/Research_and_Science/Crop_Progress_Gridded_Layers/index.php
(file also available: https://drive.google.com/file/d/1XcfEw-...
2
votes
1
answer
738
views
Convert GeoTIFF to Zarr Store using Xarray
I am trying to convert my 3-band GeoTIFF to Zarr store. I am able to read in the GeoTIFF from xarray with rasterio backend.
In [1]: import xarray as xr
In [2]: xtci = xr.open_dataset('tci.tif', ...
0
votes
1
answer
2k
views
Converting GeoTIFF file into NetCDF file in Python and file is empty [closed]
I am trying to convert a GeoTIFF file into NetCDF file (still remains all the information) using either rioxarray or xarray in python. The file is just empty. But when I checked the GeoTIFF file it ...
1
vote
1
answer
942
views
How to convert GeoTIFF file into NeCDF file in Python Jupyter notebook without changing any information?
I am looking for a way to convert GeoTIFF raster file into NetCDF file using Python Jupyter notebook. I have tried function gdal.translate and xarray (.to_netcdf) (as below), but both of them gave me ...
0
votes
1
answer
807
views
How to extract exact values from a raster file (TIFF) using a shapefile, using xarray to open the raster
I have found a link online that extracts the values min mean max and median, this is using the zonal stats function.
sjer_tree_heights = rs.zonal_stats(plot_buffer_path,
...
2
votes
0
answers
1k
views
Conflicting sizes for dimension 'time' with rioxarray
I've been using rioxarray to convert netcdf files to geotiffs, and up till now, it's worked great.
However, when I open a ERA5 reanalysis netcdf dataset, rioxarray appears to find that the data size ...
0
votes
1
answer
878
views
Output GeoTIFF file is wrongly rotated to 90 degrees/ -90 degrees using xarray and rioxarray with NotGeoreferencedWarning warning
I am using this file. I wrote this code.
import rioxarray
import xarray
xds = xarray.open_dataset("LIS_HIST_201401010000.d01 copy.nc")
floodFraction = xds.FloodedFrac_tavg.transpose('...
3
votes
0
answers
200
views
Extract time series for features from large masked xarrays
I have done this before with GDAL and Python, but was hoping to be able to use xarray to scale things up.
Let's say I have three datasets:
1. A large multiband geotiff where each band is a different ...