Questions tagged [netcdf]

NetCDF (Network Common Data Form) is a set of software libraries and self-describing, machine-independent data formats that support the creation, access, and sharing of array-oriented scientific data.

Filter by
Sorted by
Tagged with
0 votes
0 answers
17 views

looping on fixed-width format file and changing them to NetCDF format

I have fixed-width format file of temperature data provided by University of Delaware. For more information on the files, including links to download and the function to read them see: Format of ...
0 votes
0 answers
20 views

Cookie-cut out data from a NetCDF4 file using a shapefile in R

I have a netcdf4 file with precipitation data (365 days) that I want to cookie cut using a country shapefile. I have tried reading the NetCDF4 file as a raster brick and then applying my shapefile as ...
1 vote
1 answer
28 views

Geoserver: how to make image from wms faster with raster dataset (netcdf)

I recently started working with Geoserver especially with Netcdf. gdalinfo of the file gives following informations: Driver: netCDF/Network Common Data Format Files: ...
  • 111
1 vote
1 answer
62 views

Interpolate irregularly sampled data to a regular grid

I'm using .nc files with spatially referenced timeseries data in xarray, i.e. inherently 3-dimensional data (lat, lon, time). My issue is, that the dataset's coordinates lat and lon are merged to a ...
1 vote
0 answers
22 views

How can I turn this rotated pole into a custom CRS string?

I have a netCDF file that came with a rotated pole that contains this metadata: float rotated_pole; :north_pole_grid_longitude = 0.0f; // float :longitude_of_prime_meridian = 0.0f; // float :...
0 votes
0 answers
18 views

Opening .NC file in R online rather than downloading it

I am trying to access the .nc file in R which can be found(downloaded) here: https://www.ncei.noaa.gov/data/nclimgrid-daily/access/grids/1951/ncdd-195101-grd-scaled.nc I tried using this function ...
0 votes
1 answer
15 views

Exporting voxel sections to raster in ArcGIS Pro [closed]

I need to perform some algebra in voxel sections resulting from EBK 3D (NetCDF file). I need to calculate a mean section and standard deviation, and to do that I need to export the sections to raster. ...
  • 139
2 votes
1 answer
49 views

Extracting precipitation data on CHIRPS v2.0

I have downloaded daily precipitation data from CHIRPS v2.0 and want to create a time series. The data is nc file format. But the resulting array in rain data have all value of -9999.9 import netCDF4 ...
0 votes
0 answers
21 views

Panoply will not create georefernced lat-lon plot for NetCDF data

I am trying to use panoply to plot and extract time series information from a netcdf obtained from here: https://cds.climate.copernicus.eu/cdsapp#!/dataset/sis-water-level-change-timeseries-cmip6?tab=...
  • 1
1 vote
0 answers
29 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
42 views

Error reading variables from NetCDF file with Xarray when there are multiple variable layers

I get an error reading variables from NetCDF file with Xarray when there are multiple variable layers Data: The netCDF file that I have has multiple layers: /Geophysical_Data/...
  • 71
2 votes
2 answers
65 views

Is it possible to change a coordinate in an netCDF loaded with xarray?

I have a netCDF which is loaded in xarray with a dimension named bands (it was originally an import via rioxarray of ENVI data), but actually, I want to be able to parse the data by time. I have tried ...
0 votes
0 answers
20 views

NetCDF format to vector tiles

I am new to GIS area. Currently, I have NetCDF file and want to convert it to Vector Tiles. I tried to use GeoServer extension for this, but it has limited flexibility on what I want. I have come ...
2 votes
0 answers
25 views

How do I properly georeference variables in a netCDF CF-1.8 file?

I am trying to write netCDF CF-1.8 compliant files with vector geometries corresponding to segments of a road network. The data are observations of aspects of vehicle flow within 15 minute time ...
0 votes
0 answers
19 views

Generating vertical sections in 3D models in ArcGIS Pro

I have a model in NetCDF from EBK 3D in ArcGIS Pro and I need to take a vertical section, but ArcGIS only provides horizontal sections, has anyone faced this issue and know how to get vertical ...
  • 139
2 votes
0 answers
51 views

Writing NetCDF file to TIFF with GDAL gives large gap in data

I am downloading files from NOAA. I am using Python and trying to import a NetCDF file and create it into a TIFF raster. My version of GDAL is 2.3 and cannot be upgraded due to environment constraints....
0 votes
0 answers
49 views

Unable to load Copernicus Climate NetCDF

I need to download some data from Copernicus Climate, in particular I need data from CORDEX. When I load it in QGIS I see a question mark in the TOC: That mean there isn't a coordinate system setted, ...
2 votes
1 answer
61 views

Converting NetCDF to GeoTIFF

I'm having trouble using rioxarray for converting one time layer of the .nc file to a GeoTIFF. I get the following error: MissingSpatialDimensionError: y dimension not found. 'rio.set_spatial_dims()' ...
0 votes
0 answers
33 views

Is there a way to use GDAL to set the spatial reference system when converting NETCDF files to TIFS for a raster using Python?

I am currently working with a Python script that converts NetCDF files into GeoTiffs to create a raster map with one band. The script works but I want the spatial reference system to be Mollweide ESRI ...
0 votes
0 answers
44 views

Converting NetCDF to GeoTIFF WGS 84

I would like to convert the next NetCDF file to a GeoTIFF WGS 84. NetCDF file gdalinfo output: Driver: netCDF/Network Common Data Format Files: /home/me/netcdf_file.nc Size is 512, 512 Metadata: ...
  • 141
0 votes
1 answer
29 views

Error computing quantiles on large RasterStack

I want to get quantiles of each cell across layers on a stacked set of RasterLayers on R. My RasterStack looks like this dimensions : 721, 1440, 1038240, 18628 (nrow, ncol, ncell, nlayers) I run the ...
  • 1
0 votes
0 answers
28 views

Using rioxarray to open netcdf output from polymer

I'm using rioxarray to clip some .nc files processed through Polymer (atmospheric processor). The issue I'm having is when I import the .nc file I get the following error: The original file was in ...
0 votes
0 answers
23 views

Date is missing in CRU data

I used the following code to extract "Climate research Unit" climate data. However extracted data showing "Date : NaN, NaN (min, max)". pre <- brick("cru_ts4.06.1901....
0 votes
0 answers
19 views

Remove NaNs of DWD's HYRAS-DE-PRE Netcdf clipped with shapefile

I have a netCDF file from the German Weather Service (DWD), with daily precipitation sums (HYRAS-DE-PRE) https://opendata.dwd.de/climate_environment/CDC/grids_germany/daily/hyras_de/precipitation/...
  • 1
0 votes
1 answer
171 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
101 views

y dimension not found while converting NetCDF to Raster with rasterio

So I have a NetCDF file from the TROPOSIF website and converted it to xarray dataset that looks like this: And I'm trying to convert it to a tif file but while I'm trying to export the SIF_735 ...
  • 49
1 vote
1 answer
63 views

HDF5 coordinate reference system problem

I have a set of HDF5 files, and I would like to cut and convert them to tiff files, but I am having troubles with the coordinate reference system. An example file is: "HDF5_LSASAF_MSG_LST_MSG-...
  • 19
1 vote
0 answers
93 views

Get data from NetCDF to CSV

I have a NetCDF file I want to get the data into the CSV file. I am using the following command. cdo outputtab,date,lon,lat,value era_temperature_2016.nc > test_2016.csv I am getting the following ...
  • 11
0 votes
0 answers
30 views

Reproject netcdf4 raster works for one dataset but not the other in R

I wrote code to reproject the OISST NetCDF to my desired projection, and it works correctly. However, when I run the same code on the NCEP NCAR Reanalysis data, I get something wrong. Not sure why ...
  • 1
1 vote
0 answers
148 views

Using lat lon slice from NetCDF

I am trying to get a subset of data from this NetCDF file that is from the NOAA National Water Model. Im able to load in the data, read it, and do a basic plot of the entire US. But my goal is to get ...
0 votes
0 answers
104 views

Using xarray and rioxarray for converting netCDF to GeoTIFF gives TypeError: cannot pickle '_thread.lock' object

I am trying to convert a netCDF file to GeoTIFF file using xarrray and rioxarray. But when I give the rio.to_raster command, it throws the TypeError: cannot pickle '_thread.lock' object. The NetCDF ...
1 vote
1 answer
52 views

Take specific bands from multiple rasters and stack them into one new raster

Is there an existing function in GDAL that allows selecting specific bands from multiple rasters to combine? The rasters are identical in other ways like alignment and coordinate system and extent. ...
1 vote
1 answer
42 views

Converting large number of NetCDFs to single raster using R

There are ~87,500 NetCDF files of a global dataset that must be stacked and the values averaged to create 1 raster. My machine does not like this... I've written nested for loops that, despite ...
0 votes
1 answer
109 views

NetCDF to GeoTIFF Error

I am trying to convert the NETCDF file into NetCDF to GeoTIFF using the following python code. import xarray as xr import rioxarray as rio nc_file = xr.open_dataset('/air.2019.nc') bT = nc_file['...
  • 11
0 votes
0 answers
69 views

Export in Panoply very large files

I have a file in NetCDF format that I open in Panoply. This is a very large file with over 4 million elements because it has daily data for 44 years. I manage to export the data in txt format, however,...
0 votes
0 answers
75 views

I have a lot of images netcdf4 in my Time series (1979 to 2019) where I want to extract the values at different coordinates?

There is a similar solution by @chaobing zhang here: Extract time series values from a 3D (lon,lat,time) NetCDF file using Python I want the solution to loop all the images and extracting the values ...
0 votes
0 answers
32 views

Filtering out values below a certain value when creating shapefile

I am trying to make a shapefile where where values below a certain amount 8E-6 are taken out in order to reduce the amount of space used. I attempted to do this through the following procedure but ...
  • 101
0 votes
1 answer
39 views

Clip raster where another raster is 1 in ArcGIS Pro

I have two raster layers. One .tiff file with precipitation. And one .tiff layer which is representing my study area. The latter layer is made with value 0 = NOT-study-area, and 1 = study-area. This ...
0 votes
0 answers
30 views

GeoServer NetCDF serving different handling of missing_values then before (2.20 vs 2.13)

We have been serving wind and current arrows using NetCDF files over GeoServer for quite some time. However recently we noticed that there's a difference in handling our NetCDF file in our older ...
  • 103
0 votes
0 answers
131 views

Zonal stats from NetCDF for all time dimensions

I use the following code to get zonal stats of data for each time. import xarray import rasterstats import geopandas import numpy as np nc_data = xarray.open_dataset(nc_file_path) shp_prj = geopandas....
  • 63
0 votes
0 answers
214 views

List longitude and latitude pairs in a netCDF file

Is there a command line tool/solution (like cdo or nco or gdal or rio) to list/print the pairs of (longitude, latitude) values in a netCDF file (yet not one of: netcdf4-python, rio, xarray, rioxarray, ...
0 votes
1 answer
45 views

GeoServer Java error when adding layer from NetCDF based store

Using xarray I have subsetted surface current data from the https://resources.marine.coperncus.eu OPeNDAP server. I save the subset as a NetCDF4 file. I am able to add the NetCDF file as a store in ...
  • 11
0 votes
1 answer
198 views

Unusually formated NetCDF to raster in R

Having issues relating information stored in an NetCDF in a way I haven't seen before. nc file located here: https://www.dropbox.com/s/x1eexenioclwe0l/ISCCP_HXG_total_PAR_1984_01_01_03.nc?dl=0 Can ...
0 votes
1 answer
58 views

Latitude represented as a Matrix

I have some NetCDF data where I have a few variables lat : dimensions - (x,y) lon : dimensions - (x,y) x : dimensions - (x,) y : dimensions - (y,) temp : dimensions - (year, y, x) I am struggling a ...
0 votes
0 answers
77 views

Exporting individual geotiff files from Multidimensional Raster (.crf) file using ArcGIS Pro

I had hundreds of netCDF files, which I created a mosaic database with - I then aggregated the daily data to monthly average and now have much fewer files. I want a break the new multidimensional ...
0 votes
0 answers
117 views

Issue in Changing CRS for GTIFF file to gdal_translate into netCDF format

Short Issue description: I obtained the ELSUS v2 Landslide susceptibility map data from the European Soil Data Center. GeoTIFF files included in the databases downloaded contain LAEA coordinate CRS ...
  • 1
0 votes
0 answers
15 views

Rasterising GOES-R Derived Motion Winds

I have CONUS Derived Motion Winds netCDF data from the GOES-R 17 satellite, retrieved from the AWS repository (specifically OR_ABI-L2-DMWC). I am trying to rasterise this into a GeoTiff (specifically ...
1 vote
1 answer
114 views

Changes to GDAL NetCDF driver between 3.2 and 3.4

I am preparing data in python using xarray and rioxarray, then exporting to NetCDF. On one machine with micha@RMS:Kinneret$ gdalinfo --version GDAL 3.2.2, released 2021/03/05 the extent of the ...
  • 15.1k
1 vote
1 answer
122 views

Creating separate rasters from NetCDF with multiple time steps

I have a NetCDF of daily precipitation, where I need each time step as a separate ASCII file. I can import the NetCDF into ArcMap using the "Make NetCDF Raster Layer". When I try running the ...
  • 61
0 votes
1 answer
674 views

Xarray computing of a new variable on the basis of the existing one

I have netcdf file with calculated average temperature (°F). My goal is to create new data variable within the same file with cooling / heating degree days using that average. This format is totally ...

1
2 3 4 5
14