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

Extract a given variable from multiple Netcdf files and concatenate to a single file

I am trying to extract a single variable (DUEXTTAU) from multiple NC files, and then combine all the individual files into a single NC file. I am using nco, but have an issue with ncks. The NC filenames…
peteron30
  • 69
  • 7
0
votes
2 answers

How to remove the scaling and offset attributes of a variable in a netcdf file to get the actual data values

I have a variable which has the dimensions time x lat x lon x levels and I am trying to read this in my global climate model. The problem I am facing is that the data is scaled and offset in the original file and it is a hassle to incorporate this…
tech_climate
  • 153
  • 6
0
votes
1 answer

How to modify netcdf file with PyNCO ncap2?

I'm trying to use NCO command ncap2 in python script for changing time units in the climatology NetCDF-file: from nco import Nco nco = Nco() nco.ncap2(input='in.nc', output='out.nc', options =['-s', '\\"time@units=\\"days since 00-12-30…
dkush
  • 1
0
votes
1 answer

Concatenate netcdf files with multiple 'record' dimensions

Let's consider those two files: from netCDF4 import Dataset as dset for i in range(2): with dset('test_{}.nc'.format(i),'w') as f: f.createDimension('A',5) f.createDimension('B',8) …
Seb
  • 1,765
  • 9
  • 23
0
votes
2 answers

How to make time variable continuous in a netcdf forcing climatology file?

I am having a forcing NetCDF climatology file that has 4 dimensions, i.e. time, lat, long and lev. I am reading this file using Flexible Modelling System (FMS) from GFDL. I want to keep the time continuous, or something like a periodic boundary…
tech_climate
  • 153
  • 6
0
votes
1 answer

NCO (NetCDF operators) doesnt seem to have installed ncrcat (Anaconda)

So I've installed nco using the following command: conda install -c conda-forge nco which gives me nco version 7.8.1 However, when I try to run ncrcat I get: ncrcat is not recognized as an internal or external command, operable program or batch…
EvanBaker
  • 11
  • 2
0
votes
1 answer

Did I install pynco incorrectly? How to troubleshoot using NCO in python

I recently came across NCO, which I wanted to use within Python. How do I know if I've correctly installed pynco/if it is operating correctly? I installed both nco and pynco through conda-forge/conda in my working environment (named py37), but…
pbjelly
  • 1
  • 1
0
votes
1 answer

ncks: Argument list too long

I am trying to extract point information from a .nc file using two ids given in a data.txt head of data.txt AID CID 730 285 535 290 736 291 can you help if there is any problem with this code? I am using Ubuntu in widows and anaconda Linux and…
solomon h
  • 1
  • 1
0
votes
0 answers

how to call nco package into jupyter notebook

I want to work with algebraic operation on netcdf files. I saw that the package nco does that. I have installed the package though conda but when i call it in jupyter notebook, it says "ModuleNotFoundError: No module named 'NCO'" In the…
John Perez
  • 117
  • 10
0
votes
2 answers

NCO netcdf4 operations - ncwa (Averaging)

I am having trouble trying to combine three files to be averaged. I am not so sure how to even start. I have three files "nday1.06.nc , nday1.07.nc, nday.08.nc" each with the variables "filling on), ('SST',
posh8593
  • 21
  • 4
0
votes
1 answer

renaming dimension in netcdf file

I am a beginner with nco and I would appreciate some advice on my workflow and some help with a problem I an struggling with. I have these data which contain 3D salinity values at two different time steps: dimensions: t = 780 ; z = 54 ; …
shamalaia
  • 2,282
  • 3
  • 23
  • 35
0
votes
1 answer

Windows exe for ncremap nco tools

I can obtain windows exes for nco tools from here: http://nco.sourceforge.net/#Executables but the ncremap exe is not available within that package. Is there anywhere else I can get the ncremap windows exe from?
user308827
  • 21,227
  • 87
  • 254
  • 417
0
votes
1 answer

NCO: Copying data from one netcdf file into another only for a specific area

I have two NetCDF files with the exact same dimensions (time,lat,lon). Below is the header of one of the files. netcdf file1 { dimensions: lon = 360 ; lat = 177 ; time = 360 ; variables: double lon(lon) ; …
F. Brazil
  • 199
  • 1
  • 1
  • 10
0
votes
1 answer

NCO/pynco: ncks command unable to find/move file, file is present

I'm using pynco to run a ncks command from within a Python script. It's reporting an error when trying to perform a move within the nco_fl_mv() function: $ C:/home/Anaconda3/Library/bin/ncks --dmn=lon,0,28,1…
James Adams
  • 8,448
  • 21
  • 89
  • 148
0
votes
1 answer

NCO concatenate hourly to daily output

I'm very new to NCO. The tool looks powerful to me but I'm still a bit confused about the syntax. I want to concatenate model data from a 3-hourly output to daily netCDF files. I want to loop over year, month and day. E.g., input files in netCDF…
sno
  • 1