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

Error when issuing ncks command, unexpected bytes object instead of string

When I issue an NCO call usign pynco for ncks I am getting an error, it looks like a bytes object is being sent instead of a string, resulting in this: pydev debugger: starting (pid: 7864) 2018-02-05 11:30:53 INFO Start time: 2018-02-05…
James Adams
  • 8,448
  • 21
  • 89
  • 148
0
votes
0 answers

How to extract and save the surface layer of the netcdf file using NCO language

i have multiple .nc files (huge sizes). i'd like to save only the surface layer information of all variables. I'm wondering can anyone tell me how to do this in ncl language. i tried as below, following…
0
votes
1 answer

Extract and sum certain layers of NetCDF variable

I have a NetCDF file, here is a truncated output of ncdump -h: dimensions: lat = 720 ; lon = 1440 ; cft = 64 ; natpft = 14 ; double PCT_CFT(cft, lat, lon) ; PCT_CFT:long_name = "percent cft" ; PCT_CFT:units = "unitless" ; …
Janina
  • 441
  • 1
  • 4
  • 13
0
votes
1 answer

How to provide more than one input file argument for Nco.ncrcat()

I want to call the NCO command ncrcat via the Python NCO bindings. From what I can tell there is only the ability to specify a single input file argument, and my ncrcat command requires two. The command I'm trying to replicate in my Python code: $…
James Adams
  • 8,448
  • 21
  • 89
  • 148
0
votes
2 answers

How can I get a list of netCDF variables with particular dimensions?

{ dimensions: grp = 50 ; time = UNLIMITED ; // (0 currently) depth = 3 ; scalar = 1 ; spectral_bands = 2 ; x1AndTime = 13041 ; x2AndTime = 13041 ; midTotoAndTime = 13041 ; variables: double time(time) ; double…
maximusdooku
  • 5,242
  • 10
  • 54
  • 94
0
votes
1 answer

Using NCKS in NCO with large dataset with changing file names

I am trying to extract one variable from large NetCDF files hosted on a FTP server. One option that works well is to download the files one by one with wget, get the variable I want in a new .nc file using ncks and delete the original file. However,…
Cynthia GS
  • 522
  • 4
  • 20
0
votes
1 answer

NCO, Library not loaded

I am trying to run the NCO executable ncks in the terminal window. I found that I needed to create a .bashrc file to initially get started in addition to installing NCO from MacPorts. Now when I run ncks I get this error. dhcp-v219-194:~ mlaf$…
laff
  • 1
  • 2
0
votes
1 answer

How can I reduce the dimension size in a netCDF file?

I have a netCDF file dimensions: i1 = 3 ; x = 11 ; s1 = 1 ; mid1 = 8 ; mid2 = 8 ; variables: double Height(i1,x) ; double Temp(s1, x) ; short Soil(s1, x) ; double Liq(mid1, x) ; I want to reduce the mid1 size to…
maximusdooku
  • 5,242
  • 10
  • 54
  • 94
0
votes
1 answer

nco, reduce dim, netcdf

I have a netcdf file dimensions: lsmlat = 1400 ; lsmlon = 2800 ; time = UNLIMITED ; // (1 currently) lsmpft = 1 ; variables: double LATIXY(lsmlat, lsmlon) ; LATIXY:long_name = "latitude" ; …
user3652962
  • 453
  • 1
  • 4
  • 13
0
votes
2 answers

Copy the last day of month and add it to the end in netcdf file with nco

I am working in nco and came across this difficult problem. I have to rearrange a 360 day calender into the normal gregorian calender of 365 days. In the 360 day calender each month has 30 days. My idea was to add one day to a month that should…
David Halley
  • 417
  • 3
  • 6
  • 18
0
votes
2 answers

Split Netcdf variable and re-write the file

I have a netcdf file that contains air quality data. There are 4 dimensions: time : 24 hours (midnight to midnight) level : 1 to 8 (this is the height in meters (0, 50, 250, 500, 1000, 2000, 3000, 5000 m)) latitude : 1 to 400 longitude : 1 to…
John
  • 4,711
  • 9
  • 51
  • 101
0
votes
1 answer

Scale a specific field in a netcdf file keeping metadata

I would like to scale a specific field in a netcdf file by a constant. Using CDO I know how to scale all fields by a constant $c: cdo mulc,$c in.nc out.nc but to apply this to a specific field I would have to cut out the variable, apply the…
ClimateUnboxed
  • 7,106
  • 3
  • 41
  • 86
0
votes
2 answers

Using nco to convert NetCDF file with monthly data into daily files

I have a year of data as monthly NetCDF files, and I'd like to turn them into daily files. I know I can use ncks to extract 24 hours, like this ncks -d time,0,23 -o output.nc input.nc but I'd like to automatically chunk the whole month into days,…
Tor
  • 658
  • 6
  • 19
0
votes
1 answer

Combining temp/lat/lon netcdf files via nco

I am trying to calculate mean mean daily temperature from daily maximum and daily minimum netcdf files, so performed following tasks. But it is not giving me result. Could you please help me on this? C:\nco>ncks -A…
0
votes
1 answer

How to extract time series with NCO

I have a single netcdf file with monthly precipitation data from 1998-2016. The extent of the file is (14.75,-90.5,15.75,-88.75) with a cell size of 0.25 by 0.25. So 8 columns and 5 rows. How can I make time series graphs using NCO for specific…
marie_r
  • 67
  • 1
  • 7