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
23 views

Reproject NetCDF from Azimuthal to Mercator projection in QGIS

How can I convert Azimuthal projection to classical Mercator projection? I need it for a scientific project on soil temperatures and permafrost, but no matter how hard I try to reproject the map, I ...
Gostrain's user avatar
0 votes
1 answer
9 views

How to set logoUrl to display the logo image in the THREDDS data server?

According to https://docs.unidata.ucar.edu/tds/5.2/userguide/tds_config_ref.html#server-information: The best way to use your own logo is to put it in the ${tds.content.root.path}/thredds/public/ ...
Amirhossein's user avatar
0 votes
0 answers
30 views

Computing spatial (zonal) statistics of gridded data (NetCDF file) for polygons in a shapefile (EU NUTS2 regions)

I have the shapefile of NUTS2 region, with crs:EPSG:4326 I also have a NetCDF file which is a 950*1000 cell. I want to compute mean per polygon based on the data in the NetCDF file with Python. I'm ...
Anis's user avatar
  • 1
0 votes
0 answers
9 views

GeoServer not showing values for NetCDF 0/1 file

I have a simple NetCDF file consisting in 4 dimensions (fulmini, lat, lon, time - being the latter the result of a selection of all the data from a certain time), and I'm trying to load it in ...
Mattia Scalas's user avatar
0 votes
0 answers
15 views

Projection failing for NetCDF file using NetCDF4 in python

I am trying to create a netCDF file from an excel sheet that contains precipitation data. The excel file is organized with latitude and longitude in columns: a column with latitudes, a column with ...
Idalh's user avatar
  • 61
0 votes
1 answer
74 views

Extract time series subset from NetCDF for many spatial points using R [closed]

I have been following mdsumner's response on Extract time series from .nc files for many locations simultaneously which is a similar question, but am having some trouble. Here is my code: library(...
Hailey's user avatar
  • 3
0 votes
0 answers
31 views

Performance difference between xarray open_mfdataset and open_dataset

I'm dealing with CMIP6 Scenariomip data, I have eight ESMs precipitation grid that each one is composed by multiple netcdf files. There is one ESMs's netcdf files are seperately reserved every decade, ...
孟泽楷's user avatar
1 vote
1 answer
44 views

While exporting the rasters using rioxarray, nodata value is undefined after the mask

I have used xarray to open the netcdf file, and using rioxarray exported the raster as a .tif file. However, the exported raster doesn't have definition for nodata value, and hence, the GIS software ...
hillsonghimire's user avatar
0 votes
0 answers
35 views

Create a NetCDF file from Excel for wind speed and direction in R Studio

I have an Excel spreadsheet of wind data that contains the wind speed and direction recorded at 5-minute intervals. I would like to create a NetCDF file for this data so the wind vector data can be ...
AotearoaNico's user avatar
-1 votes
1 answer
40 views

Projection of CMIP data

How to get the spatial projection from NetCDF file in Python? I am working with CMIP6 data.
Jay's user avatar
  • 1
0 votes
0 answers
21 views

Remove bands from netcdf in qgis

I have a netcdf file with 84 bands. How can remove the first 12 bands and save it as netcdf in QGIS? I have already checked the other questions in StackExchange but I have not found a solution.
AUS85's user avatar
  • 446
0 votes
0 answers
19 views

Converting sat_zenith_tn variable into geotiff file using R

I am trying to convert .nc file to geotiff file of Sentinel-3 data product. However, I know there is dimension difference between coords and sat_zenith_tn. and I got this error:- lst_warp = st_warp(...
Dave Jalpesh's user avatar
0 votes
0 answers
40 views

Problem with ncWMS

I have an AWS EC2 machine running an ERDDAP server on Tomcat, and I'm trying to install ncWMS in order to be able to visualize the data. I've downloadaded the war file and copied it to the Tomcat ...
Hugo Gómez's user avatar
0 votes
0 answers
73 views

Integrating ERDDAP with Leaflet

I have deployed a ERDDAP server on a AWS machine, which has multiple datasets, each of which contains multiple NetCDF files. I'm trying to develop a JavaScript interface, using Leaflet, so that I can ...
Hugo Gómez's user avatar
0 votes
0 answers
49 views

Sharing spatiotemporal data on web using QGIS

I have NetCDF data of predicting the flood and need to show them in web map. I read (and also tried), plugin QGIS2WEB is not friendly with temporal data and Temporal Controller plugin. Is there any ...
VikiM's user avatar
  • 1
0 votes
1 answer
24 views

Saving a STAC - Error in the Item (float32)

I keep getting this error no matter what I do or change when trying to save the catalog. To my knowledge, I don't have a random float somewhere in my code. I do not even know where to begin to debug ...
mendesd's user avatar
  • 35
1 vote
1 answer
77 views

Deciphering the geospatial structure of a particular NetCDF file

I am trying to find the structure of the following NetCDF file: latlon_idgrid_file.nc The mystery here for me is the idgrid variable which has a lon and lat index from 0 to 240 and 208 respectively ...
ODstuck's user avatar
  • 651
0 votes
1 answer
60 views

Processing S4 object of data class .MultipleRasterData

I downloaded ERA5 single level data using Python, where I tried to calculate daily_means from hourly data prior to downloading. I read the returned NetCDF-file into R using: nc_file <- "path/...
Zunka's user avatar
  • 1
1 vote
0 answers
83 views

Error when downloading CMIP6 climate change data in NetCDF format with pyesgf.search

I am trying to download NetCDF files, which contain daily maximum and minimum temperature precipitation data with a historical timeline from 1850 to 2014 and projected into the future for 2015 to 2100 ...
El Memo de Mileto's user avatar
0 votes
0 answers
15 views

Extract values from a raster (imported as a NetCDF file) to table - problematic date/time column

I have a NetCDF file with sea surface height data, which I imported into ArcMap as a raster. I plotted the points and extracted the values at each location using the sample tool. In the raster, each ...
D. Kyriakoudi's user avatar
0 votes
0 answers
38 views

How can I extract the array indices from a xarray.rio.clip operation?

I have a line of code that clips a Dataset from a larger xarray.core.dataset.Dataset. clipped = ds.rio.clip([user_polygon], crs=4326, all_touched=True) I need to process many of these large datasets (...
John's user avatar
  • 121
1 vote
1 answer
29 views

R: reading 3-dim nc data (from gpw)

I am trying to work with Columbia's 3-dimensional gridded population of the world data, v4 (Gridded Population of the World (GPW), v4). it has population estimates in a 1x1 grid for seq(2000,2020,5). ...
ivo Welch's user avatar
  • 115
0 votes
0 answers
18 views

Extract multiple years worth of data from .nc file using shapefiles

I have a .nc file which contains monthly data for southern Africa over 30 years (aka 360 timesteps). I want to mask/extract the data using 13 different shapefiles (of agroecological zones in southern ...
JT95's user avatar
  • 1
0 votes
0 answers
20 views

Where can I find the example data to create a Mosaic of NetCDF files?

I am exploring the possibility of making a mosaic with NetCDF files. However, in the documentation pages (https://docs.geoserver.org/latest/en/user/extensions/netcdf/netcdf.html#mosaic-of-netcdf-files ...
Monica Rossetti's user avatar
3 votes
1 answer
243 views

How to write CRS info to NetCDF in a way QGIS can read? (Python/Xarray)

I have a NetCDF file I have subset by geometry and time, and now I need to save it as a new NetCDF file. The original file does not have the CRS set, thus I am setting it in this one. The problem is ...
MKF's user avatar
  • 571
-1 votes
1 answer
66 views

Downloading NetCDF files with R works Manually but downloaded file is smaller

I am trying to download NetCDF files from: https://ftp.cpc.ncep.noaa.gov/NMME/prob/netcdf/ When I manually downloaded the files I got a file of about 5000 Kb, when it is downloaded with the code below ...
gianca's user avatar
  • 25
0 votes
1 answer
49 views

QGIS crashes with "bad_alloc" when processing NetCDF file using xarray

I need to merge multiple NetCDF files in a QGIS plugin I am developing. I'm using xarray to do so, however, QGIS crashes with the error "Critical: Caught unhandled std::exception: std::bad_alloc&...
Francis Lapointe's user avatar
0 votes
0 answers
30 views

Change dtype of coordinates NetCDF

I was wondering how to change the dtype from float32 to float64 of coordinates. I can run the following code in the terminal ncap2 -s 'lat=double(lat); lon=double(lon)' infile.nc outfile.nc How ever ...
sss's user avatar
  • 1
0 votes
0 answers
36 views

Combine and plot multiple stars proxy objects (being read by read_ncdf)

Here is a great ressource on how to combine data in the stars package: https://tmieno2.github.io/R-as-GIS-for-Economists/merging-stars-objects-using-c-and-st-mosaic.html And here is a great ressource ...
Lenn's user avatar
  • 1,263
0 votes
1 answer
103 views

How to project a Lambert conformal conic NetCDF in meters to a longlat grid in R

I downloaded a Grib file from NOAA that is formatted as a Lambert Conformal Conic with the x/y coordinates given in meters. Here is the original file. I've been trying to convert this to longlat grid. ...
e4a's user avatar
  • 1
0 votes
0 answers
110 views

Why netCDF raster files get so big compared to TIFF files

For a project I'm involved in, I'm currently researching the recommended standard file type for sharing raster data. So far, I wasn't quite happy with the .tif files we used, as they came with many ...
saQuist's user avatar
  • 726
0 votes
1 answer
186 views

How to reproject raster created from netCDF file?

I have a netCDF file that I turn into a RasterBrick and would like to reporject. However, this results in an error. How can I solve this? > dat class : RasterBrick dimensions : 1100, 1200, ...
k42's user avatar
  • 189
0 votes
1 answer
392 views

Extract nearest values from NetCDF file in Python

I have a NetCDF database (link to file) obtained from Copernicus Climate Data of ~43k unevenly spaced values around the world. Instead of being indexed using (lat, lon) it uses a sequence of 'stations'...
terauser's user avatar
0 votes
0 answers
264 views

Access to the coordinates of a NetCDF file

I started working with NetCDF files recently. I'm working with projected Surge Levels; Data is stored as filename.nc files at Copernicus. This is the file. I got it using an API from their website. ...
terauser's user avatar
0 votes
0 answers
26 views

Adding a Mesh File with QGIS (3.22.4 Bialowieza) : Exception std::bad_alloc Error Message

When I try to add a NetCDF file as a mesh file in QGIS, I have the following error message Exception std::bad_alloc The NetCDF file is 202392013465222_BGIForestAgeMPIBGC1.0.0.nc Can someone help me ...
Sof's user avatar
  • 13
1 vote
0 answers
46 views

QGIS loads NetCDF data offset from map

I have a standard NetCDF file with sea surface temperatures, with longitude values ranging from 0 to 360°. When I load it in QGIS, the right half of the data is plotted off the map of the projection ...
Joseph Patton's user avatar
0 votes
0 answers
52 views

Import time when converting NetCDF to PostGIS

I have a series of NetCDF file (from Copernicus, and some calculation) and the info from gdalinfo are: gdalinfo nc/2021-12-01_preprocessed.nc Driver: netCDF/Network Common Data Format Files: nc/...
lsir's user avatar
  • 1
1 vote
0 answers
79 views

Warnings on converting NetCDF using gdalwarp

I have a curvilinear NetCDF file, which currently has a single time step (for a mean across time). The variable I am looking at is DIC at a single depth. I am trying to convert this NetCDF file to ...
summer r's user avatar
0 votes
0 answers
182 views

Optimize the resampling and projection of multiple NetCDF files in R using terra

I have a set of 35 NetCDF files (continental scale), each containing 365 daily layers of climate data with a resolution of 5 km, s. I need to do two main tasks: Subset, s_sub, these files based on a ...
Sarash's user avatar
  • 45
0 votes
0 answers
43 views

Missing Pixel or Grid Value in the output while Calculating Standard Precipitation Index (SPI) using climate_indices library in Python

I am using NetCDF Gridded dataset of IMD Rainfall (NetCDF can be downloaded from here), for calculating the Standard Precipitation Index (SPI), using climate_indices library of Python I have changed ...
Abhilash Singh Chauhan's user avatar
0 votes
0 answers
50 views

.nc file can't be opened on multiple versions of ArcGIS Pro (2.9, 3.1, 3.1.2) nor QGIS. Is there a way to do this?

I'm attempting to open and view this .nc file: https://sbclter.msi.ucsb.edu/data/catalog/package/?package=knb-lter-sbc.74 . I've used multiple methods, including multidimensional raster and NetCDF ...
Declan's user avatar
  • 9
0 votes
0 answers
25 views

Reading multi-dimensional NetCDF files using QGIS [duplicate]

I am trying to load NetCDF files in QGIS using Layer > Add Layer > Add Raster Layer but the software crashes. I wonder if QGIS can load multi-dimensional NetCDF files or not because I have tried ...
Linh Nguyen's user avatar
0 votes
0 answers
58 views

Re-interpolate a curvilinear NetCDF file into a evenly spaced grid

I have a NetCDF that can be downloaded at https://thredds.socib.es/thredds/catalog/operational_models/oceanographical/hydrodynamics/wmop_surface/catalog.html (e.g. downloading "latest.nc"). ...
Liam's user avatar
  • 19
0 votes
1 answer
72 views

ArcGIS Pro - Voxel layer doesn't show even though all coordinate systems match

I created a NetCDF file and then added it as a multidimensional voxel layer to ArcGIS Pro. I then got this warning: Voxel layer can only be drawn in local scenes with the same coordinate system as ...
Horse's user avatar
  • 109
0 votes
0 answers
41 views

ArcGIS Pro says that NetCDF file has NaN NoData

I want to add a multidimensional voxel layer to ArcGIS Pro. When I do so, I'm getting this error: I'm not sure why this happens. First, when I print out the netCDF4 Dataset in Python, I get this, ...
Horse's user avatar
  • 109
1 vote
1 answer
203 views

gdal /vsis3/ on NetCDF from Earthdata

I'm trying to access data from NASA's Earthdata S3 buckets, but I get a "<filename> does not exist in the file system, and is not recognized as a supported dataset name." error after ...
Bert Coerver's user avatar
  • 1,945
1 vote
1 answer
150 views

Loading NetCDF file on QGIS as raster

I have gotten very rusty at QGIS. I am attempting to load a NetCDF file of the average monthly temperature for a midwestern state. I go through the normal [layer-add layer- raster] steps and for some ...
Han's user avatar
  • 13
0 votes
0 answers
290 views

Converting projection type into lonlat gridtype with CDO in Ubuntu

I have an issue with the grids, I am using EUR-11 domain, rotated coordinates and I would like to convert them in lonlat so that I can cut the netCDF file into my study area, where I also have lonlat ...
Ann-Kathrin's user avatar
0 votes
1 answer
350 views

Convert WRF NetCDF to TIFF

I have a NetCDF file, output of a WRF model, which contains a time series of some variables. You can download it here (Warning: 7GB download). Here is the gdalinfo output: Driver: netCDF/Network ...
Andrea's user avatar
  • 69
0 votes
0 answers
409 views

Converting Kelvin into degree Celsius with CDO

I am trying to convert Kelvin into Degree Celcius with cdo in Ubuntu. I am using this code: cdo -addc,-273.15 <infile> <outfile> and this one cdo -setattribute,tas@units="degC" -...
Ann-Kathrin's user avatar

1
2 3 4 5
14