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
1 vote
1 answer
30 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
28 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
34 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
19 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
33 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
70 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
42 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
17 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
  • 23
1 vote
1 answer
74 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
43 views

Processing S4 object of data class .MultipleRasterData in RStudio

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 RStudio using nc_file <- "...
Zunka's user avatar
  • 1
1 vote
0 answers
78 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
13 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
28 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
26 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
18 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
144 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
0 votes
1 answer
35 views

Downloading NetCDF files with R: Manually works but the 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
  • 27
0 votes
0 answers
34 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
24 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
27 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,193
0 votes
1 answer
76 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
78 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
  • 716
0 votes
1 answer
148 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
267 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
40 views

Query multidimensional NetCDF file with xarray

This is just a newbie question about xarray (or any other tool to quickly query and do operations on multidimensional NetCDF files). I have pairs of longitude/latitude coordinates and want to use them ...
Gery's user avatar
  • 2,140
0 votes
0 answers
203 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
22 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
41 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
42 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
69 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
152 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
35 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
30 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
56 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
63 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
23 views

Unable to draw rasters correctly on leaflet (Y axis mismatch) - issue with projection

I am struggling to project ALL rasters that were extracted from netcdf files to be drawn on a leaflet map in RStudio. There doesn't seem to be any projection or matching issues if I use these rasters ...
chlha's user avatar
  • 31
0 votes
0 answers
37 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
155 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,925
1 vote
1 answer
129 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
251 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
305 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
330 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
0 votes
1 answer
819 views

Data extraction for time series, transform multiple netCDF files to spatRaster with terra in R

I would like to extract data from around 13,000 .nc files to create a time series of temperature global data in R. Each of my files contain a day worth of data of global SST (my variable of interest) ...
RGR_288's user avatar
0 votes
0 answers
57 views

Unable to load NetCDF files into GeoServer

I run WRF models that provides output in netcdf. I want the NetCDF files to be loaded into GeoServer so that I can use it with WMS. I used ncks to extract only the temperature variable T2 in the ...
pukarkhanal's user avatar
0 votes
0 answers
28 views

Incorrect longitude coordinates on NetCDF from CAMS it can't allow masking

I've downloaded from Copernicus Atmosphere Monitoring Service some analysis about particulate matter in .nc file format. I need to mask that data and save in the same file format. Using Xarray library ...
MaxDragonheart's user avatar
0 votes
0 answers
62 views

Python: combine datafiles

How can I combine two files to one file with python? I want to combine two files with different area and create them in one file. This file was modis(evi) convert hdf(sinusoidal projection) to netcdf(...
yujin Kim's user avatar
0 votes
0 answers
174 views

Reprojecting NetCDF file from LCC to WGS84: 'Multiple grid mappings exist' error

I try to reproject a NetCDF file to WGS84 so I can clip it with a regional geometry for analysis. The file is a dataset with the CORDEX precipitation variable, climate change scenario rcp 2.6, years ...
Dio Nik's user avatar

1
2 3 4 5
14