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
2
votes
1 answer

Select data along non-conventional dimension with CDO or NCO

I have a large number of NetCDF files from which I would like to extract a small number of variables for one location, and merge them into a new NetCDF file. The dimensions of the files are: dimensions: time = 18 ; level = 65 ; levelh =…
Bart
  • 9,825
  • 5
  • 47
  • 73
2
votes
3 answers

Need assistance in Appending two netcdf files based choosing time period

I have two netcdf files: 1) BB_001.nc with 337 records with record variable as time; 2) BB_002.nc which is continuation of the simulation with 385 records (record variable is also time). Therefore, these two files have one overlap record. $ ncdump…
ssorou1
  • 23
  • 2
2
votes
2 answers

NetCDF: How to mask/filter out non-land values in global dataset, preferably using Python and/or NCO?

I have a global data at 0.25 degree resolution that I'd like to mask so that it only contains data values over land. The data covers full 360 degrees in the lon dimension and from -60 to 60 degrees in the lat dimension. The file header, as well as…
James Adams
  • 8,448
  • 21
  • 89
  • 148
2
votes
2 answers

nco cut daily netcdf file to 10 minute files

I have a daily netcdf file (20060101) and the time dimension has 144 steps, so 10 minutes time steps within the file. Now I want to create one netcdf file for each 10 min time step with nco. So at the end it should create 144 files. I already found…
Krystian
  • 887
  • 5
  • 21
  • 52
2
votes
1 answer

converting float to byte in netcdf file

I have a large netcdf file with a standard float field which consists of only 0.0 or 1.0. I would like to convert it to a byte type from the command line to save some space and also make it easier to read in the array to a byte type in fortran. I…
ClimateUnboxed
  • 7,106
  • 3
  • 41
  • 86
2
votes
1 answer

extracting data from a domain ncfile

I am trying to extract data from each grid cell in a user-specified (non rectangular) domain defined by lat / lon boundaries. My input file is on a curvilinear grid. I have tried various methods python ,cdo, ncks, but I still cannot figure it out.…
pwprnt
  • 521
  • 3
  • 9
  • 27
2
votes
2 answers

nco - how to remove "cut" values from a specific area

I have a netcdf file a such: dimensions: time = 8760 ; lon_lat = 35047 ; temperature = 8760 ; variables: float temp(temperature, lon_lat) ; temp:units = "C" ; float time(time) ; float longitude(lon_lat) ; …
tom
  • 125
  • 6
2
votes
2 answers

How to append new data into existing netcdf file

I have a multivariable ncdf that I created and wanted to add additional data to each variable. the lat and long dimensions will remain the same but I want to extend the time dimension by appending new data to each variable. The new data set has the…
Yami
  • 21
  • 1
  • 3
2
votes
2 answers

Extract monthly data from hourly resoluted netcdf file in nco

As the title indicates, I want to extract a time period e.g january for a variable, wind_speed, from a .nc file that consists of wind speeds with 3-hourly resolution during one year. I would like to do this in nco if possible. I tried the following…
David Halley
  • 417
  • 3
  • 6
  • 18
2
votes
2 answers

Computing the median of a nc file with nco

As the title indicates, I want to compute the median of a .nc file named sfcWind_1999.nc. On each grid point (lat/lon combination) I want to compute the median in the time dimension. Is there any nco attribute that does this?
David Halley
  • 417
  • 3
  • 6
  • 18
2
votes
1 answer

Subtract value from netCDF dimension

How can I use nco tools or any other netcdf toolkit to subtract a specific value from one of the dimensions in a netCDF? E.g. ncdump –v time –t file.nc gives me: time = 10, 11, 12, 13 … How can I subtract 10 from each value in the time dimension…
user308827
  • 21,227
  • 87
  • 254
  • 417
2
votes
1 answer

Trouble concatenating netcdf files with ncrcat

I have a list of netcdf files that I am trying to concatenate along the time dimension. I am attempting to use the steps outlined here, which seem simple enough. However, I am running into some errors (likely some small/stupid oversight on my…
hm8
  • 1,381
  • 3
  • 21
  • 41
2
votes
1 answer

NetCDF concatenation w/ncrcat, files with different lon ranges

I'm attempting to concatenate two NetCDF files along the time (record) axis. The lon dimension has the same number of values in both files, but the first file's lon coordinate values range from 0.5 to 359.5, and the second file's lon coordinate…
James Adams
  • 8,448
  • 21
  • 89
  • 148
2
votes
1 answer

ncks append slow for multiple small netcdf files

My model produces one netcdf file for every timestep and every variable, named DDDDDDD.VVV.nc, where DDDDDDD is the date and VVV the variable name. For each timestep, I'm using nco to append the files corresponding to the different variables, in…
acapet
  • 98
  • 1
  • 8
2
votes
1 answer

How can I modify a variable and it's corresponding dimension in a netcdf

I am running an idealized experiment with a atmospheric model with output in the format of netcdf. But the netcdf file header does not describe the variable and and dimension clearly. for example : netcdf qc3d { dimensions: Time = UNLIMITED ; //…
Jen
  • 339
  • 1
  • 2
  • 12