Questions tagged [nco]

NCO is the acronym standing for netCDF Operators, a collection of standalone operators that manipulate data stored in netCDF-accessible formats, including HDF4 and HDF5. It is frequently used on NCAR, NASA, NOAA, and model climate and weather datasets.

NCO is the acronym standing for netCDF Operators, a collection of standalone programs that manipulate data stored in netCDF-accessible formats, including HDF4 and HDF5. It is frequently used on NCAR, NASA, NOAA, and model climate and weather datasets.

References

245 questions
3
votes
2 answers

Netcdf averages time varable when averaging multiple .nc files

I have averaged a bunch of hourly netCDF files (for one year) to create one large netCDF file that contains an average daily value. The time variable represents hours since 2005-1-1 00:00:00 and looks like this: time = 11.5, 35.5, 59.5, 83.5, 107.5,…
elyssac
  • 51
  • 3
3
votes
1 answer

How to add time dimension when concatenating daily TRMM netCDF files using NCO?

I downloaded daily TRMM 3B42 data for a few days from https://disc.gsfc.nasa.gov/datasets. The filenames are of the form 3B42_Daily.yyyymmdd.7.nc4.nc4 but the files do not contain any time dimension. Hence when I use ncecat to concatenate various…
A.Apte
  • 105
  • 5
3
votes
1 answer

Change time axis units from "years since" to "days since" in netcdf file

I have a netcdf file that someone passed me that uses "years since DATE" as the time units: double time(time) ; time:standard_name = "time" ; time:long_name = "time" ; time:calendar = "proleptic_gregorian" ; time:axis = "T" ; …
ClimateUnboxed
  • 7,106
  • 3
  • 41
  • 86
3
votes
3 answers

Modifying variable attribute of netcdf file

I'm trying to modify the calendar type of a time variable in a netcdf file to change from GREGORIAN to gregorian as I think it is causing problems when I try to access the time variables within a later analysis. double Time(Time) ; …
Hayden
  • 107
  • 8
3
votes
1 answer

CDO/NCO - Replicate dataset over a dimension

I have several variables defined as follows: dimensions: t = UNLIMITED ; // (1 currently) y = 3963 ; x = 5762 ; myz = 1 ; z = 98 ; variables: float e1u(t, y, x, myz) ; float e1v(t, y, x, myz)…
Fab
  • 1,145
  • 7
  • 20
  • 40
3
votes
3 answers

Converting longitude in NetCDF from 0:360 to -180:180 using nco

I have two NetCDF files, each for a different period of years, that I want to concatenate. They appear to have identical structures, with time as the unlimited dimension, except that for one, longitude is on the scale of 0:360 and for the other on…
zoek
  • 141
  • 1
  • 7
3
votes
2 answers

NCO cropping a netcdf file using dimension values rather than indices

CDO can crop a netcdf file in terms of latitude and longitude as long as they are defined in a standard way, and I know that NCO can cut out a subset of a netcdf file along any dimension if you know the range of indices that you want, as stated in…
ClimateUnboxed
  • 7,106
  • 3
  • 41
  • 86
3
votes
1 answer

Creating a 3D variable from a 1D variable with NCO

I have a 1D variable describing height in my NetCDF file. I'd like to create an 3D variable that is uniform on the X and Y axes from this column of data. Is there an easy way to do this in NCO?
Scott
  • 43
  • 3
3
votes
2 answers

Not able to append two netcdf files using nco

I am using netcdf operators to append two NCEP netCDF files together. These files are of different sizes but they represent the same atmospheric variable i.e. geopotential height. One is at 1000 hPa and the other file is at 925 hPa.They have the…
gansub
  • 1,164
  • 3
  • 20
  • 47
3
votes
2 answers

netcdf time dimension missing CDO

I downloaded a netcdf file containing 4-5 variables but it has only 2 dimensions (lat and lon). Time is missing and this does not allow me to merge timesteps or do anything useful. Is there any way to fix this hopefully by using CDO? there are 100…
Theo Eurotrip
  • 41
  • 1
  • 3
3
votes
2 answers

average fields across a set of netcdf files, each with identical dimensions, in R

Suppose we have 10 of these files. This netcdf dataset has a variable called tmp which is a 3-dim array: [lon][lat][time]. Now how do I combine these 10 files to get a single file with the variable tmp whose values are the average of the combined…
gudday
  • 45
  • 1
  • 3
2
votes
1 answer

Duplicating Monthly Data to Bi-monthly in a NetCDF File

I have a monthly .nc file from ISIMIP. Here's the time series: time = "2000-01-01", "2000-02-01", "2000-03-01", "2000-04-01", "2000-05-01", "2000-06-01", "2000-07-01", "2000-08-01", "2000-09-01", "2000-10-01", "2000-11-01", "2000-12-01",…
rocinantes
  • 39
  • 4
2
votes
1 answer

set to all NAs a given region in a lat-lon ncfile

I have the following netcdf file which is a global grid with latitude from -90 to 90 and longitude from 0 to 360 degrees. Let's suppose I would like to set to NAs (or missing values) all the gridpoints (or region) included within latitude -90 to 90…
aaaaa
  • 149
  • 2
  • 18
  • 44
2
votes
3 answers

Rename netCDF dimensions

I want to reanme the dimensions of a .nc file, from 'latitude' to 'lat' and from 'longitude to lon', to later be able to combine it with another .nc dataset. This is how my .nc file looks like: Dimensions: (time: 1, latitude: 1037, longitude:…
OlegRuskiy
  • 173
  • 2
  • 12
2
votes
2 answers

Monthly sum of of a variable stored at daily timesteps using cdo (Climate Data Operators)

I have a nc file of 40 years for a variable recorded at daily temporal resolution. I would like to sum these over monthly intervals and have tried the following: cdo monsum inputfile.nc outputfile.nc Although this runs with no error, I only get one…
Raed Hamed
  • 327
  • 1
  • 10
1 2
3
16 17