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
1 answer
22 views

Define raster extent

I have a raster data set I imported to ArcGIS from a netCDF file. ArcGIS doesn't read the projection or extent correctly due to issues with the input file. However, I have the correct values for these ...
user avatar
  • 23
1 vote
1 answer
21 views

R Terra: Write multiple time series variables to NetCDF

I have multiple variables in a timeseries which I want to save as NetCDF. But when I combine all variables with terra::sds() the time information disappears. I tried the following: library("terra&...
user avatar
  • 199
1 vote
0 answers
23 views

How to delete an island in NetCDF file using QGIS

I have a NetCDFf file (https://drive.google.com/drive/folders/10XvLZPC9vX9odkfU6aV6qBIxRe9IQvyZ?usp=sharing) The variable in the plot below is inside yelmo2d.nc --> z_srf The file contains height ...
user avatar
  • 263
1 vote
1 answer
15 views

Spatially merging two netCDF raster layers into one layer while using ArcMap

I tried to merge two .nc-files into one within ArcMap. There is one file containing the specific values for North America and one containing the values for South America (see the image below). My ...
user avatar
0 votes
1 answer
28 views

Converting a NetCDF with multiple variables to GeoTIFF calling GDAL_TRANSLATE function from Python

gdal_translate -a_srs EPSG:4326 NETCDF:"file_name.nc":variable_name output_file_name.tif -a_ullr -9.21200 53.28058 -8.88045 53.11338 I am working on some NetCDF files that include multiple ...
user avatar
1 vote
1 answer
27 views

How to convert crs_wkt starting with GEOGCRS to a ogc_wkt string (to use rioxarray.reproject_match)

I have two xarray data arrays (1. land_data, 2. climate_data) that I want to reproject and match (rio.reproject_match()): climate_data_matched = climate_data.rio.reproject_match(land_data) Land data ...
user avatar
  • 33
0 votes
1 answer
11 views

Calculate seasonal precipitation and temperature from CRU TS 4.05 in ArcGIS Pro

The Goal: To calculate the average spring (Mar-Apr-May) and summer (Jun-Jul-Aug) precipitation and temperature for a series of specific, discrete locations. These points represent sites (I'm an ...
user avatar
  • 1
0 votes
1 answer
28 views

Add projection to rioxarray dataset in Python

I've downloaded a netcdf from the Climate Data Store and would like to write a CRS to it, so I can clip it for a shapefile. However, I get an error when assigning a CRS. Below my script and what is ...
user avatar
  • 111
1 vote
1 answer
52 views

What is origin of term "network" in Network Common Data Form (NetCDF) format specification

I see (on Wikipedia) that the NetCDF format evolved from a specification for storing multidimensional data called the "Common Data Format". Semantically... the word "network" has a ...
user avatar
0 votes
0 answers
26 views

Making NetCDF feature layer in ArcMap

I am using ArcMap 10.6. I have multiple netCDF files in a folder, where I try to iterate through them using the "Iterate Files" tool in the ModelBuilder. For each nc file, I simply want to ...
user avatar
0 votes
2 answers
40 views

Converting a epoch time number to a datetime stamp in a dataframe

I worked on this a few days and got fairly far with it but I still cannot figure out how, or why, I fail to convert the epoch time stamp to a datetime. I tried several methods but I since changed the ...
user avatar
  • 1,159
1 vote
0 answers
21 views

How to use raster calculator to sum multiple bands' value of a raster layer in QGIS Graphical Modeler?

I have 12 bands in a raster layer which I would like to sum up to produce a single layer. Interestingly, the raster calculator tool does the job while running it (QGIS interface)[ but fails to do so ...
user avatar
1 vote
0 answers
19 views

Mapping netCDF file in the right location with different value and location files

I'm looking to work with data from the Sentinel-3 Sat of ESA. I downloaded data in a zip with multiple netCDF files. I want to open the data in QGIS in order to visualise it. I figure out that the ...
user avatar
  • 27
0 votes
0 answers
22 views

Xarray to NetCDF with transform applied

I have a process that uses rioxarray to crop GeoTIFFs and create a nice xarray dataset. This works well. When I export to new GeoTIFFs they are perfect, coordinates and data are fine. When I try to ...
user avatar
1 vote
1 answer
39 views

QGIS: Wrong projection of NetCDF along with shapefile

I'm working with a map data in the NetCDF format in QGIS but can't find a way to align it with a vector polygon. Map sources: NetCDF raster (thk bands): https://zenodo.org/record/3604142#.YmERmPNBxqs ...
user avatar
  • 13
1 vote
1 answer
90 views

Error trying to open NetCDF file with xarray from s3 bucket

I'm trying to open a .nc file from an S3 bucket using xarray, but I'm getting an error. Here's the method I'm using: import xarray as xr aws_url = 's3://nasanex/NEX-GDDP/BCSD/rcp85/day/atmos/tasmax/...
user avatar
  • 448
0 votes
0 answers
20 views

Masking a NetCDF with a shapefile with multipolygon in Python

I am trying to mask a NetCDF file with a shapefile following this example The files can be available here. import xarrary as xr import geopandas as gpd import pylab as plt hs=gpd.read_file('folder/...
user avatar
  • 157
1 vote
1 answer
57 views

Read ERA5 netcdf as raster in R with correct extent (lat/lon)

I'm attempting to read a netCDF file from ERA5 using the raster package in R. An example file is downloadable here. As ERA5 detail here, global ERA5 data was interpolated to a regular lat/lon grid ...
user avatar
0 votes
0 answers
84 views

How should we display GeoPackage on Mapbox GL JS?

We used wgrib2 to convert weather radar data into NetCDF format. We converted it to GeoPackage format using gdal_translate. We created a Color Map on QGIS 3.10 and the GeoPackage appeared as expected. ...
user avatar
  • 101
0 votes
1 answer
27 views

QGIS: Multi Overlay Analysis of NetCDF-4 Raster Files to Calculate Average Values over 5 years

Issue: I have a dataset that ranges from 2016 to 2021. The file types that I am going to use for the analysis are Aqua Modis and NetCDF-4. My data contains 650 rows and I am using parameters such as ...
user avatar
2 votes
1 answer
92 views

Mask rotated/curvilinear grid (NetCDF) with rectilinear grid (geotiff)

I have two datasets: Climate: avg one month temperature NetCDF File (CF Convention 1.6) grid_mapping_name: rotated_latitude_longitude (with rlat and rlong coordinates defining the grid) curvilinear ...
user avatar
  • 33
4 votes
1 answer
103 views

Problem(s) using WCS’s rangesubset parameter with netCDF Coverage Views in GeoServer

Use case My use case is to store environmental data downloaded from the Copernicus Marine Environment Monitoring Service (CMEMS) as netCDF files in GeoServer and make them available via Web Coverage ...
user avatar
  • 51
0 votes
0 answers
75 views

xarray NetCDF with groups to GeoTIFF

I am trying to convert NetCDF files, available from this link, to raster or geotiff files using Python 3. After reading the a NetCDF file using the package netcdf4, it appears to have groups: CO2, ...
user avatar
1 vote
0 answers
56 views

NetCDF file with Lat/Lon as variables, not as coordinates

I am a beginner in using NetCDF files. I would like to transform several NetCDF into GeoTIFF but the Lat/Lon info is in variables and not as dimensional coordinates. I can't work with these files. I ...
user avatar
1 vote
0 answers
112 views

Converting from 2D lat/lon matrix into 1D lat/lon array

I am working with a NetCDF file, that has no coordinates. My lat/lon values are sorted in the variables in a form of a matrix, in a way lat (x,y) and lon(x,y). My goal here is to extract a lat and a ...
user avatar
2 votes
1 answer
51 views

CRS issue converting a GeoTIFF to NetCDF with GDAL

I'm trying to convert a GeoTIFF with CRS EPSG:2056 to NetCDF. Similar questions suggest to do: gdal_translate -of netcdf input.tif output.nc Unfortunately this doesn't encode the CRS information in ...
user avatar
  • 21
1 vote
1 answer
45 views

Band Composite NetCDF file

I have multiple NetCDF files which were converted into tif files using the tools Make NetCDF Raster Layer & Copy Raster tool in ArcGIS Pro 2.6. As output, I now have multiple tif files with many ...
user avatar
1 vote
1 answer
74 views

Merge ERA5-Land and ERA5 time series

I am merging some ERA5-Land and ERA5 (netCDF) time series: extract individual ERA5 and ERA5-Land maps and apply scale and offset factors -- this by looping the following for BAND in $(seq 1 8784) ;...
user avatar
3 votes
0 answers
77 views

NetCDFs with more than 4 dimensions in GeoServer

I have two very similar NetCDFs. "temp_4.nc", that I can load into GeoServer, and "temp_5_e.nc", that I can't. Both file have a single data variable "temp". In the first ...
user avatar
0 votes
0 answers
45 views

NaN values after masking NetCDF with an shapefile in Python

I want to mask a global NetCDF dataset (datacube) to Germany. before I have already spatially resized it with slice. It is the GLEAM dataset v3.5a variable evaporation. I will do some analysis in ...
user avatar
  • 1
2 votes
1 answer
31 views

How do I change my x and y axes from a range of 0-1 to -180-180 in R? I'm using netndf datasets

I have temperature anomaly arrays for the months of February 2008-2021 that I have turned into a raster brick. I am now plotting these in ggplot2. See below code: febanomaly_raster <- brick(anomaly....
user avatar
0 votes
0 answers
23 views

How to convert transverse_mercator to regular lat/lon

I want to transform this file from transvers_mercator to a regular lat/lon netcdf file. My input file: netcdf toto { dimensions: x = 548 ; y = 704 ; variables: char transverse_mercator ; ...
user avatar
  • 1
2 votes
1 answer
70 views

Value error when merging .nc files: xarray could not find any dimension coordinates to use to order the datasets for concatenation

I want to merge multiple .nc files into one. Each of the .nc files corresponds to a timestep which should be added together to have one .nc file with all data for all dates. When I execute the ...
user avatar
3 votes
1 answer
60 views

Querying a custom dimension of a NetCDF raster with WMS

I have a NetCDF raster with mean temperatures, having this structure: Dimensions: (horizon: 13, percentiles: 3, lat: 213, lon: 274) Coordinates: * lon (lon) float32 -79.71 -79.63 -79....
user avatar
  • 225
1 vote
0 answers
59 views

Calculate growing degree days using NetCDF file in R [closed]

I have a NetCDF file containing temperature values over a certain region from 1984 - 1985, with 1-hour intervals, so that means that I have 17544 maps. I need to do two things and I got a bit stuck ...
user avatar
  • 11
1 vote
0 answers
134 views

Extract data from NetCDF file with tripolar projection for lat & long coordinates

I have coordinates obtained from Google Maps (latitude and longitude). I also downloaded a number of NetCDF4 files for different years and months that contain sea surface temperature (SST) from the ...
user avatar
  • 19
0 votes
0 answers
66 views

Copernicus variables without CRS

I have a problem when import my NetCDF files in R. When I import .nc file which downloaded from Copernicus (CMIP6 product - Sea surface height above geoid - CanESM5-CanOE (Canada)), I use raster(), ...
user avatar
  • 43
0 votes
0 answers
21 views

Loading multiple multi-dimensional NetCDF files into QGIS

I have many multi-dimensional (24 layers) NetCDF files that I need to load into QGIS, then export the individual files out. The `add layer' feature asks for 'which layers to load' for each file, which ...
user avatar
0 votes
0 answers
21 views

Batch Processing - gdalwarp - NetCDF with multiple layers

I have approximately 10000 NetCDF files, each with 4 different layers. I need to use gdalwarp within QGIS for all these files. Using batch processing, I can select files by *.nc pattern but this does ...
user avatar
0 votes
0 answers
20 views

View NetCDF tables in ArcGIS

The Multidimension Tools in ArcMap allow extracting tables of data from NetCDF files. When I batch run the Make NetCDF Table View tool 10x (eg extracting time series at multiple locations), only the ...
user avatar
0 votes
1 answer
56 views

Adding 4d netCDF Raster Data Source into GeoServer

I´m using GeoServer 2.20.1 with the netCDF plugin (geoserver-2.20.1-netcdf-plugin.zip) on a Tomcat 9 locally on my Mac (localhost:8080). I´m trying to add a 4d netcdf file structure (filename: ...
user avatar
1 vote
1 answer
197 views

Reprojecting NetCDF naming data from rotated pole coordinate system to WGS84 in R

I am using data from UKCP Local Projections at 2.2km Resolution. The data does not have any stored coordinate reference system. However, the associated documentation explains that UKCP use rotated ...
user avatar
0 votes
0 answers
43 views

Assigning georeference to NetCDF

I am trying to understand how to georeference a NetCDF DEM raster file (topo_d3.nc) using gdal_translate, by 'distributing' the raster pixels between the UL-LR coordinates - which I have extracted ...
user avatar
  • 1
0 votes
0 answers
28 views

Assigning temporal properties to dimension when reading NetCDF data in QGIS

I have a NetCDF v4 files that has a time dimension. This time dimension has timestamps as per common CF Conventions. Other tools are able to open and deal with this dimension specifically. In QGIS (I ...
user avatar
  • 113
0 votes
1 answer
54 views

Fix NetCDF dimensions of stars object

I downloaded some CMIP6 data from Copernicus data service and I believe the NetCDF file came with malformed dimension information. When I try to get the lon or lat dimensions (st_get_dimension_values) ...
user avatar
  • 2,256
1 vote
0 answers
53 views

Saving GEOS projection data into a NetCDF file

I have full disc data in GEOS projection and I would like to save this data into a NetCDF4 file. As the NetCDF file needs to have basic dimensions of lat, long and time (which can be set to 'None') ...
user avatar
1 vote
2 answers
136 views

Indexing Copernicus Global Land Service data into ODC

I would like to index Copernicus Global Land Service data (that we can find in this site: https://land.copernicus.vgt.vito.be/manifest/) into Open Data Cube. How can I do it without the need to ...
user avatar
0 votes
0 answers
42 views

NetCDF file is rotated QGIS

I downloded IMERG precipitation data as NetCDF files but when I use QGIS to open them, the raster files are rotated. Does anyone know how to solve this?
user avatar
0 votes
0 answers
87 views

How to fix rioxarray.exceptions.DimensionMissingCoordinateError: x missing coordinates?

I'm trying to reproject a NetCDF file without an assigned projection. I was successful in assigning projection. But, while attempting to reproject the file, I receive the following error: rioxarray....
user avatar
  • 375
2 votes
3 answers
193 views

Zonal statistics with GDAL only (not Python)

I'm helping an undergrad with her dissertation. She has monthly mean data from ERA-5 for three variables in netcdf format for the past 20 years. She wants a CSV or Excel file which contains the zonal ...
user avatar
  • 51

1
2 3 4 5
12