Skip to main content

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

ArcGIS 10.5 issue retrieving distinct time series data from NetCDF file using 'Make NetCDF Table View'

I’m using the "Make NetCDF Table View" tool in ArcMap to extract time series data from a NetCDF file. I’ve tested this tool with other .nc files and it works as expected. However, when ...
mcva's user avatar
  • 129
0 votes
1 answer
30 views

CDO combined commands not working

I am working in R and have netCDF files that I need to pre-process beforehand. One file can be downloaded here: https://drive.google.com/file/d/14tbMvFaYSvHpDWTOdbSSdverkowEhNyV/view?usp=share_link ...
Mtrs's user avatar
  • 1
0 votes
0 answers
35 views

NetCDF format not recognized for import into QGIS (Mac) v. 3.38

I am having trouble importing NetCDF files into QGIS on the Mac platform. I am running the latest version of QGIS installed through Macports to get maximum performance with an M1 processor vs the ...
keeneh's user avatar
  • 1
1 vote
0 answers
116 views

Reading Eumetsat METOP native file format .nat with python

I downloaded testwise a file from the Eumetsat Data Service (IASI_SND_02_M01_20240519062358Z_20240519080557Z_N_O_20240519072825Z.nat). However, the file is in their native format .nat. I gave it a try ...
i.i.k.'s user avatar
  • 1,753
0 votes
0 answers
14 views

Clip NetCDF data by point shapefile in Python [duplicate]

I have .nc files containing global chl-a data. I want to clip these files using a point shapefile and get the chl-a values specifically for those points. However, every similar code that I have come ...
saba moshtaghi's user avatar
0 votes
0 answers
76 views

In R: raster:brick() read NetCDF file for one location produces error: cells are not equally spaced

I wrote a script to download SST data as NetCDF and convert it to a data.frame in R. I use raster::brick() to read the data and convert it with raster::as.data.frame(xy = T) to a data.frame. If I do ...
OnLeRo's user avatar
  • 73
0 votes
0 answers
57 views

Clip a NetCDF file using gdal_translate or gdalwarp

I'm trying to clip this .nc file using either gdal_translate or gdalwarp. However I don't think I'm getting the correct output. I'm able to clip the file in Python using either of the following ...
John's user avatar
  • 141
-1 votes
1 answer
38 views

Latitude inversion when opening nc file with nc_open

I'm facing an issue when opening a nc file in R using the nc_open function. The images contained in this nc file are inverted in the latitude axe. This could append because I'm working in the South ...
Aurélien Lengrand's user avatar
0 votes
0 answers
61 views

Issues downloading data using CopernicusMarine R package

Not quite sure what's going on here. I'm simply trying to run one of the examples here but nothing is happening. My credentials are registered, which I tested using cms_list_stac_files() and ...
seak23's user avatar
  • 191
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 ...
Aurélien Lengrand's user avatar
0 votes
0 answers
39 views

Observations of NetCDF variable are all masked

I am completely new to NetCDF4 dataset and I am trying to figure out how to extract the relevant variable I am interest to I think I have managed to correctly download and import the data in python. ...
nanniprim's user avatar
0 votes
0 answers
26 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
0 answers
56 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
14 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
32 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
288 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
1 answer
107 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
139 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
67 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
71 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
27 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
49 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
79 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
58 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
53 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
112 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
  • 661
0 votes
1 answer
70 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
105 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
19 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
62 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
  • 141
1 vote
1 answer
36 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
19 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
24 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
425 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
121 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
67 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
44 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
48 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,297
0 votes
1 answer
179 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
173 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
  • 826
0 votes
2 answers
278 views

How to reproject raster created from NetCDF file?

I have a NetCDF file that I turn into a RasterBrick and would like to reproject. However, this results in an error. How can I solve this? > dat class : RasterBrick dimensions : 1100, 1200, ...
k42's user avatar
  • 191
0 votes
1 answer
611 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
393 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
28 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
55 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
63 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
101 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
241 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
58 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

1
2 3 4 5
15