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

ncks error when variable name has spaces

ncks -v name of var inp.nc out.nc I have a netCDF file with a hyperslab called name of var However, since the hyperslab has a space in the name, it leads to an error" ncks: ERROR recieved 3 filenames; need no more than two How to fix this?
user308827
  • 21,227
  • 87
  • 254
  • 417
0
votes
1 answer

Extracting variable from group in netCDF

I have a netCDF file with the foll. ncdump: netcdf test_nc { dimensions: time = UNLIMITED ; // (20 currently) latitude = 360 ; longitude = 720 ; N = 3 ; strlen = 1 ; variables: float data_array(time, latitude, longitude, N)…
user308827
  • 21,227
  • 87
  • 254
  • 417
0
votes
1 answer

cdo showname displays different variables than ncdump

I am confused why cdo and ncdump display different variables. I have found that WRF data does not have a coordinate variable of time, like typical ncfiles (http://www.ncl.ucar.edu/Applications/wrfnetcdf.shtml) . So I have added a time variable to…
pwprnt
  • 521
  • 3
  • 9
  • 27
0
votes
0 answers

Can't concatenate netCDF files with ncrcat

I am looping over a model that outputs daily netcdf files. I have a 7-year time series of daily files that, ideally, I would like to append into a single file at the end of each loop but it seems that, using nco tools, the best way to merge the data…
SnowFrog
  • 1,162
  • 4
  • 19
  • 38
0
votes
1 answer

Extract part of many netcdf files using dimensions from another file in unix

I have several thousand .nc files that each need to be trimmed to match the size (lat/lon) of another group of files. I only want data from 70-90N, but the long files contain global data. Running ncdump on longFile1.nc gives dimensions: …
rinzler12
  • 29
  • 4
0
votes
3 answers

NetCDF file - why is file 1/3 size after fixing record dimension?

I am struggling to get to grips with this. I create a netcdf4 file with the following dimensions and variables (note in particular the unlimited point dimension): dimensions: point = UNLIMITED ; // (275935 currently) realization = 24…
ccbunney
  • 2,282
  • 4
  • 26
  • 42
0
votes
2 answers

Change resolution of half-degree netCDF to quarter degree netCDF using nco tools

I can change the resolution of a netCDF file to a coarser one by doing something like this: ncks --dmn lon,0,1384,5 --dmn lat,0,583,4 original.nc reduced.nc How do I go the other way? I.e. change resolution of coarser scale netCDF to finer scale?
user308827
  • 21,227
  • 87
  • 254
  • 417
0
votes
1 answer

Automate subtraction of NetCDF files by filename

I have a directory of NetCDF files with names of the following format: foo_d1_t1.nc foo_d1_t2.nc foo_d1_t3.nc foo_d1_t4.nc foo_d2_t1.nc foo_d2_t2.nc foo_d2_t3.nc foo_d2_t4.nc ... where "d" refers to the day and "t" to the timestep. The files…
Ruari Rhodes
  • 59
  • 1
  • 6
0
votes
1 answer

VHDL Accumulator - Infix errors

I'm trying to create an accumulator to use in an NCO, but getting some strange errors. I'm fairly new to VHDL so any help is appreciated, here's my code: library IEEE; use IEEE.STD_LOGIC_1164.all; -- for std_logic and std_logic_vector use…
0
votes
2 answers

Read Multiple ncdf files and make average in R

By using R ill try to open my NetCDF data that contain 5 dimensional space with 15 variables. (variable for calculation is in matrix 1000X920 ) This problem actually look like the same with the other question before. I got explanation from here and…
totti saga
  • 3
  • 1
  • 4
0
votes
2 answers

Using all elements of a list as argument to a system command (netCDF operator) in a python code

I've a python code performs some operator on some netCDF files. It has names of netCDF files as a list. I want to calculate ensemble average of these netCDF files using netCDF operator ncea (the netCDF ensemble average). However to call NCO, I need…
Vakratund
  • 169
  • 1
  • 2
  • 10
0
votes
3 answers

Computing the value range for a netcdf 3D variable

I have a large series of netcdf files representing daily snapshots of data. I am hoping to hook these up to a software which is asking me to add to the namelist the maximum and minimum values for a variable in the files. How can I enquire about the…
BexERoss
  • 5
  • 4
-1
votes
1 answer

Calculating annual mean from monthly output using ncra --mro

I'm using a simple nco command on a file with monthly ocean data to calculate annual averages. I perform the same command twice, on two files with identical formatting and output, one contains 1000 years of data, the other has 750 years. I cannot…
-1
votes
2 answers

NetCDF variables contain non-matching latitudes

I have two netcdf data (precipitation and potential evapotranspiration). I have clipped both data based on bounding box, so both has same dimension. I try to do simple calculation, but receiving an error Precipitation and PET variables contain…
user97103
  • 235
  • 1
  • 7
-1
votes
2 answers

GeoTIFF to NetCDF with time variable enabled

I have thousand GeoTIFF files (monthly precipitation from 1981) and would like to convert it into single NetCDF with time dimension enabled. I have read various similar thread in StackOverflow and GIS StackExchange, but could not find the best…
user97103
  • 235
  • 1
  • 7
1 2 3
16
17