Questions tagged [netcdf]

NetCDF (Network Common Data Form) is a self-describing data format developed by University Corporation for Atmospheric Research (UCAR).

Filter by
Sorted by
Tagged with
2 votes
2 answers
65 views

Efficient way to parse lat-lon grid at certain depth in tripolar model from nc file?

I am working on the ORAS5 dataset which comes as an archive of netCDF files. Currently, I am using python and netcdf4 to process it. My goal is to get surface level ocean currents across the globe (...
mRcSchwering's user avatar
3 votes
0 answers
49 views

Handling large-scale climate dataset in R

I am analyzing ERA5 climate data spanning from 1950 to 2023, covering 73 years. The dataset has a daily temporal resolution and a spatial resolution of 0.25° (1440 x 720). Each yearly data is stored ...
Shunrei's user avatar
  • 31
1 vote
0 answers
36 views

Why does this method for weighting grid cells result in tiny values?

I'm working with a bunch of netCDF files for uni, hence the for loop. Its global coverage data, and because the Earth is not flat, we need to weight the pixels/grid ...
Learn4life's user avatar
1 vote
0 answers
32 views

How to make netcdf plots like panoply in C++

Im trying to make netcdf plots like what panoply does but i am not sure how to get this code ...
Linuxuser1234's user avatar
3 votes
1 answer
88 views

Correlation calculation of masked array:

I have a sea surface temperature time series, and I want to calculate the (Pearson) correlation coefficients among the nodes in the tropics (30.0N to 30S). In the time series, the land information is ...
Ruby's user avatar
  • 33
1 vote
0 answers
269 views

How can I calculate integrated water vapor transport (IVT) in NCL, R or Python?

I have netcdf (ERA5) file (u and v component of wind and specific humidity) between years 1970-2022. Are there any package or script documentation about that?
Skyriver's user avatar
1 vote
0 answers
10 views

Is there a standardized metadata attribute for describing which classification system is used for a (string) variable?

Suppose I have a variable that is a classification of something. In this example, it is a classification of soil texture: ...
alex_danielssen's user avatar
3 votes
0 answers
229 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 ...
arman H's user avatar
  • 31
1 vote
0 answers
95 views

How to convert CORDEX netcdf data to be used for importing data to DHI Mike?

I have the CORDEX netcdf data and I would like to convert them to raw text file that can be used for importing data to DHI Mike. To give more context, I have previously converted the ECMWF netcdf (...
Fati's user avatar
  • 11
3 votes
0 answers
111 views

Efficient way to find spatial extrema in 2-D space time netcdf field

I have a 2-D latitude-time zonal wind netCDF dataset (such as this small sample from ERA-Interim) from which I want to find all local maxima of the zonal wind as a function of latitude, for each time ...
climatestudent's user avatar
5 votes
2 answers
1k views

Python - How to write interpolated raster to netcdf file

Currently i am dealing with a bunch of coordinates (epsg:4326 => lat/lon) and their corresponding value (temperature). The goal is to write these coordinates and their values into a simple netcdf ...
Creative crypter's user avatar
3 votes
0 answers
235 views

Calculating layer thickness in python

I have calculated the $∂θ_\varepsilon/∂z$ with 'Height', 'Latitude', 'Longitude' dimensions. ...
Kas's user avatar
  • 31
1 vote
0 answers
53 views

How to specify a certain place in a (CDS) weather data query?

I am trying to get time series data for a specific place (latitude and longitude) for different weather elements from the CDS datapool. Therefore, I am using the cdsapi package and can run queries ...
N8_Coder's user avatar
  • 111
10 votes
4 answers
401 views

Language to modernize a scientific Fortran codebase

Dear earth science community, I am seeking a language to modernize a large Fortran project that works with geospatial NetCDF files. The requirements for this language include: A rock-solid NetCDF ...
Mike76's user avatar
  • 213
3 votes
0 answers
47 views

What is the difference between the CF standard_names `platform_id` and `platform_name`

The two CF standard names platform_id and platform_name strike me as being redundantly similar. From their definition in the CF standard name table: platform_id: alias: station_wmo_id A variable with ...
alex_danielssen's user avatar
2 votes
1 answer
95 views

Storing borehole interval data (logs) in netcdf

I have a number of datasets that describe geological properties as intervals down a borehole (e.g. unit codes, sample results) In a database, or a flat ASCII file, I would describe these with a ...
alex_danielssen's user avatar
1 vote
0 answers
379 views

how can I write my netCDF file in my wrfinput_d01 format

I have a netCDF data file as my emmission data in netCDF format. I have interpolated it in my wrfinput_d01 resolution by using CDO. I can write my data to a netCDF ...
sara's user avatar
  • 311
1 vote
1 answer
154 views

Temperature at 2 m MERRA2

I need MERRA2 data with Temperature at 2m. I'm checking on https://disc.gsfc.nasa.gov/daac-bin/FTPSubset2.pl but I can't find this variable. Suggestions where I can find them? Or anyone that did ...
onehalf's user avatar
  • 77
1 vote
2 answers
489 views

WRF/Chem: Editing NetCDF (wrfchemi files) for own emissions

Does anybody here have any experience with editing wrfchemi outputs from the prep_chem utility so that I overwrite the file with my own emissions? I am knowledgeable in python, but I am not that well ...
meteo_96's user avatar
  • 311
4 votes
1 answer
624 views

How to determine the orientation of coastline from NetCDF file

I have a NetCDF file (gridded data) with a landsea mask. I would like to determine, for the coastal grid-cells, what the orientation of the coastline is. I need to do this in order to calculate the ...
ouranos's user avatar
  • 637
2 votes
2 answers
387 views

Huge netcdf files handling

Can any one help me to handle huge netcdf files each of 1gb memory in loop and at least 2 files at a time in ncl or linux or python or matlab. for example era_interim daily pressure level datasets.
msarun's user avatar
  • 29
8 votes
1 answer
901 views

Regarding compression, shuffle filter of netcdf4

I read the doc but still have no idea about what are the advantages to enable or disable the shuffle, what level [0-9] of compression is optimal, what's the best choice of chunk size?
wsdzbm's user avatar
  • 243
3 votes
1 answer
2k views

Adding time dimension and corresponding new variable to a netcdf file

I have created a x,y netcdf file and now want to add additional time energy variable. So that for each grid cell I have a energy time value. My script is like this in Python: ...
Sensation's user avatar
6 votes
0 answers
103 views

Generating netCDF file composed of zeros?

I need to generate an all-zeros file as an input file for an Earth Systems model (DGVM) I'm using. I have a file with the same dimensions as the zero file. I have R and MATLAB and use a Fedora machine....
canopyman's user avatar
2 votes
1 answer
2k views

How to prepare GrADS's .ctl file to convert grd file into .nc file in batch mode?

I have lots of grd (GrADS) file and I want to convert those data into netCDF file using cdo. The operation needs all the corresponding ctl file and I will have to prepare all these. So, my question is ...
Amit Ghosh's user avatar
2 votes
0 answers
81 views

Unable to read modis sst netcdf file in matlab [duplicate]

I'm using Matlab to read MODIS Aqua sea surface temperature data. Unfortunately I am not able to do it. It will be great if any of you can help me with that. ...
Swathy sunder's user avatar
5 votes
1 answer
97 views

Digitalizing precipitation data from the image of weather map

I have a set of very old precipitation anomaly maps, from 1995-2006 for Brazil. The data of these maps, is to the best of my knowlegde, lost. I would like to have them digitalized, ie, to NetCDF or ...
kurast's user avatar
  • 163
2 votes
1 answer
239 views

How to correct PSMSL data for GIA?

I have a PSMSL RLR (revised local reference) sea level dataset with records from various tide gauges. Can anyone explain how to correct them for GIA (glacial isostatic adjustment) using the ICE-5G ...
crisvr's user avatar
  • 21
12 votes
1 answer
8k views

Plotting wind barbs in python

I'm trying to plot wind barbs in basemap and I have two separate netCDF files. Here is what I am trying to produce, or something like it: How do I read a uwnd variable in a netCDF file in python? <...
Brian B.'s user avatar
  • 131
7 votes
1 answer
2k views

How to read a NetCDF4 file in Matlab?

I have downloaded the sea surface temperature data from the Ocean Color website, the file is in NetCDF format and contains no of geophysical_data variables like sst,...
Ahsan's user avatar
  • 73
8 votes
1 answer
5k views

CDL File Questions

I'm confused by what exactly a CDL file is and what its purpose is. Unidata specifies the syntax of such a CDL file in its netCDF documentation. Questions: Are CDL files designed to be opened by a ...
user4624937's user avatar
  • 1,811
22 votes
7 answers
3k views

What tools allow a quick comparison of NetCDF output from ocean models?

I am writing my own MATLAB scripts to do most of the visualization and data analysis of model results. I wonder if there is a quicker way for visual comparison of simulation results gained from ...
ZZZ's user avatar
  • 572