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
2 answers

How to multiply variables of a netcdf file with different constants using NCO or CDO?

I have a netCDF file containing different variables (val1, val2, val3). The names of the variables are indicated, in fact, they are completely different from each other. I want to multiply the variables with different constants such as: val1*c1…
Nat
  • 325
  • 2
  • 13
2
votes
1 answer

Nco failed to initialize UDUnits2 library

I have no experience in Nco,but when i try to concatenate files using (ncrcat),I get the following error,I tried nco 4.2.0, 4.6.3,4.7.5,4.9.5 with no change,4.2 worked however time dimension had the same values for all time intervals,.I'm working on…
user13854503
2
votes
2 answers

Memory error using ncks to set time as record dimension

I am trying to use ncks to set the time as record dimension in a large (14 GB) file and getting the following error $ ncks -O --mk_rec_dmn time vorticity_1979_1.40625deg.nc test.nc nco_def_var_chunking(): ERROR Total requested chunk size =…
Manmeet Singh
  • 405
  • 2
  • 11
2
votes
1 answer

How to remove seasonality from time series data?

How can I remove seasonality data from a timeseries with the data stored in a netcdf file? I would like to find a solution using Linux, while I used Grads and Ferret for visualization. Thanks a lot!
Minh Hiếu
  • 39
  • 1
  • 8
2
votes
1 answer

Fill nan values in a netcdf file using another netcdf file

I'm trying to fill nan values in a NetCDF file (let's call is 'Target' file) by getting the values from another NetCDf file ('Source' file). [the two example files can be downloaded from here] I was thinking of doing this in python using the…
Seji
  • 371
  • 1
  • 10
2
votes
2 answers

Concatenate netcdf files with different variables - using nco

I want to concatenate two sets of netcdf files using nco, where each set has about 30 files. Set 1 contains: longitude, latitude, time and v. Set 2 contains: longitude, latitude, time and u. I have tried: ncks *.nc out.nc but I get: Error…
Goose_08
  • 23
  • 1
  • 6
2
votes
1 answer

Change units of time dimension in NetCDF file from months to months since

I currently have multiple NetCDF files with 4 dimensions, (latitude, longitude, time, and depth). Each represents a single year of monthly data. The unit of time is "month", 1-12, and therefore quite useless if I want to merge these files across…
zoek
  • 141
  • 1
  • 7
2
votes
2 answers

Faster way of Appending/combining thousands (42000) of netCDF files in NCO

I seem to be having trouble properly combining thousands of netCDF files (42000+) (3gb in size, for this particular folder/variable). The main variable that i want to combine has a structure of (6, 127, 118) i.e (time,lat,lon) Im appending each file…
WDS
  • 337
  • 3
  • 16
2
votes
2 answers

How to disaggregate an accumulated netcdf variable in time using ncl, cdo or nco?

I have a 3D nc variable PP = (time, lat, lon) of accumulated precipitation for an entire year and I want to calculate daily values. I want to do something link in the example, but couldn't find any examples. I've tried to do a loop in which the…
11162273
  • 23
  • 3
2
votes
1 answer

Splitting an netcdf file with nco using a variable as a splitting criteria

I have a netcdf file structured as bellow: File AA_14.nc (NC_FORMAT_CLASSIC): 8 variables (excluding dimension variables): short year[time] units: - short doy[time] units: days since 2008-01-01 long_name: day…
Marin
  • 21
  • 3
2
votes
1 answer

NCO/pynco: ncea can't find files from within Python

I am trying to run ncea from within python to make monthly averages from daily files over many years of data. The command: ncea -v analysed_sst,sea_ice_fraction /mnt/r01/data/goes-poes_ghrsst/daily/200301*.nc 200301-gp-monthly.nc runs fine in the…
melhawaii
  • 31
  • 4
2
votes
1 answer

How to reorganize netcdf level by increasing order

I got a netcdf data but with strange level sequence. I like the level data to range from 1000, 900, 800, .. to 100 however my data shows 300, 400, 1000, 900, 800, ... 100 What's the cleanest method to reorganize this data by rising or decreasing…
Jen
  • 339
  • 1
  • 2
  • 12
2
votes
1 answer

NCO: can we remove dimension without modifying coordinates attribute?

I have a netcdf file : dimensions: y = 453 ; x = 453 ; plev = 1 ; time = UNLIMITED ; // (1460 currently) variables: double plev(plev) ; plev:name = "plev" ; plev:standard_name = "air_pressure" ; plev:long_name = "pressure" ; …
L. Corre
  • 23
  • 1
  • 3
2
votes
1 answer

NetCDF : set variable as constant in time

I am dealing with netCDF files with the following structure : netcdf YYY { dimensions: Time = UNLIMITED ; // (XXX currently) lat = XX ; lon = XX ; variables: double U_p_500hPa(Time, lat, lon) ; U_p_500hPa:units = "m/s" ; …
Enzoupi
  • 541
  • 5
  • 10
2
votes
1 answer

force NCKS to try to append when used in batch script

I want to use ncks in a batch script to select a variable an append it to a file: ncks -v ${var} $infile $outfile But interactively it asks me whether I want to exit, overwrite or append. On the help page of the command there is this tip: "Some…
ClimateUnboxed
  • 7,106
  • 3
  • 41
  • 86