CDO - Support: RE: how to change time format in a nc file e.g. 1981-01-01 to...
Just google...https://code.mpimet.mpg.de/projects/cdo/embedded/cdo.pdfhttps://nco.sourceforge.net/
View ArticleCDO - Support: RE: remap - non-standard remapping needed
I guess the answer is no, CDO can't do this.
View ArticleCDO - Open discussion: RE: How to calculate eca_cwd index
Hi Guilherme,in Python CDO can return an xarray Dataset or DataArray. Here, I recommend to use the Dataset because eca_cwd returns two variables, consecutive_wet_days_index_per_time_period and...
View ArticleCDO - Support: RE: How to compute the Warm spell days index wrt 90th...
Hi Dino,from the user 'Climate indices with CDO' documentation (https://code.mpimet.mpg.de/projects/cdo/embedded/cdo_eca.pdf):eca_hwfi - Warm spell days index w.r.t. 90th percentile of reference period...
View ArticleCDO - Support: RE: Interpolate a field and put it in an existing netcdf file
Hi Sebastien,it is not clear what you want to do?1. remap the data of the LR.nc file to the grid of HR.nc cdo -remapbil,HR.nc LR.nc outfile.nc 2. remap the data of the HR.nc file to the grid of LR.nc...
View ArticleCDO - Open discussion: RE: Remapbil (Abort): Unsupported Error
Hi Nazanin,can you show us the output of 'ncdump -h' of the 'first file' or maybe upload only one timestep?
View ArticleCDO - Support: RE: 75th percentile of 15days sample centered on a day (7 days...
Hi Vik,if you are new to CDO and you get an error it is always good to have a look at the documentation. The operator shifttime (see...
View ArticleCDO - Open discussion: RE: Remapbil (Abort): Unsupported Error
The units attribute for lon and lat are missing. Add it with NCO's ncatted: ncatted -O -a units,lon,c,c,"degrees_east" units,lat,c,c,"degrees_north" infile.nc
View ArticleCDO - Open discussion: RE: Remapbil (Abort): Unsupported Error
You can use the grid of the first netCDF file for remapping.For example:infile1.nc: 1.0 degree resolutioninfile2.nc: 0.25 degree resolution cdo -remapbil,infile1.nc infile2.nc infile2_on_grid1.nc
View ArticleCDO - Open discussion: RE: Remapbil (Abort): Unsupported Error
Can you upload the files?
View ArticleCDO - Open discussion: RE: Remapbil (Abort): Unsupported Error
Is only one timestep of prate_daily_198007.nc and TRMM_precip_daily.nc also too large?Ok, let's see what could it be (just guessing).Does the prate_daily_198007.nc file contain multiple grids for...
View ArticleCDO - Support: RE: interpolation to a grid with missing data on it
What about setting the missing values to zero before remapping? cdo -remapdis,grid.txt,4 -setmisstoc,0 infile outfile
View ArticleCDO - Support: RE: interpolation to a grid with missing data on it
Maybe you have to set the environment REMAP_EXTRAPOLATE='off' (default is True) before you call cdo (see https://code.mpimet.mpg.de/projects/cdo/embedded/cdo.pdf#subsection.2.12.4). export...
View ArticleCDO - Support: RE: interpolation to a grid with missing data on it
export REMAP_EXTRAPOLATE='off' export CDO_GRIDSEARCH_RADIUS=0.001 cdo remapdis,grid.txt,4 input.nc output.nc
View ArticleCDO - Support: RE: interpolation to a grid with missing data on it
Btw, the grid.txt file does not contain the area of all stations in input.nc.The grid defined in grid.txt is the area where x- and y-axis grid lines both are drawn. The upper right where cut off.
View ArticleCDO - Open discussion: RE: Mergetime problem: resulting in a shift in time...
Hi Aiden,I guess you are using another cdo command line to generate the data for the plot because timmean will return only one timestep.What is the full cdo call? Maybe some files for July contains...
View ArticleCDO - Support: RE: Unable to open .nc file (unknown error)
Hi Andrea,which CDO version do you use? CDO version >2.0.5 works: cdo sinfon ITSNOW_SWE_201011.nc Warning (cdfScanVarAttr): NetCDF: Variable not found - >latitude< Warning (cdfScanVarAttr):...
View ArticleCDO - Support: RE: Unable to open .nc file (unknown error)
That is a really old version. Have a look at the installation page https://code.mpimet.mpg.de/projects/cdo/wiki/Win32 (scroll down to Windows 10) or you can install CDO via conda in the Windows...
View ArticleCDO - Support: RE: Unable to open .nc file (unknown error)
I don't know which version is provided by cygwin. I recommend to use conda.
View ArticleCDO - Support: RE: replace data data in file1 from file2 with a condition
Hi Sagar,the files are not CF-convention conform which makes it a lot harder to come to a result. There are multiple problems like multiple time entrys but all the same time 0000-00-00 00:00:00 and the...
View ArticleCDO - Support: RE: Change values for a period in NETCDF dataset using cdo
Hi Divyam,you can split the netCDF file into single months per year with the operator splityearmon, exchange the file of the erroneous month, and use mergetime operator to merge the file back into a...
View ArticleCDO - Support: RE: Replacing Fill Values/Missing Values with NaNs
Hi Simon,there is no need to replace the missing values because the _FillValue attribute is set and so the missing values are used like NaNs.If you have a look at the files with e.g. panoply you'll see...
View ArticleCDO - Support: RE: How to mask ERA5 data
Have a look at the CDO FAQ https://code.mpimet.mpg.de/projects/cdo/wiki/FAQ#How-can-I-create-a-1x1-degree-landsea-maskand https://code.mpimet.mpg.de/boards/53/topics/10933
View ArticleCDO - Support: RE: How to mask ERA5 data
Generate a land mask file of the same grid as input ERA5 data.Assuming that the u- and v-data are stored in separate files u_131.grb and v_132.grb.1. Retrieve the grid description of the ERA5 uv data...
View ArticleCDO - Open discussion: RE: hot to setmiss after smooth
I don't know if I understand the question right.Do you mean the following: assuming you have two files a.nc and b.nc, you want to have the missing values from file b.nc also in a.nc?Then try cdo ifthen...
View ArticleCDO - Open discussion: RE: WRF file in QGIS
Hi Beatrice,can you upload one time step of your infile.nc and the grid you want to interpolate to?
View ArticleCDO - Support: RE: Processing unstructured nc file
Hi Matias,this is not a CDO problem, but I can still help briefly here. There is a conflict caused by the scalar variable nvel and the dimension nvel. I renamed the scalar variable nvel to nvel2 and...
View ArticleCDO - Open discussion: RE: How to extract the data only along a satellite...
Hi Ankan,can you upload both files?
View ArticleCDO - Support: RE: Option to select which dimensions to be removed with...
Hi Brian,I think the best way is to do the following: # display the time stamp of the file cdo -s -showtimestamp dimension_time_height_test.nc # reduce one element dimensions cdo --reduce_dim -copy...
View ArticleCDO - Support: RE: Option to select which dimensions to be removed with...
Ah, that is really great. The undocumented things are always cool. 👍
View ArticleCDO - Support: RE: smoothing timeseries
Have a look at the time interpolation operators at https://code.mpimet.mpg.de/projects/cdo/embedded/cdo.pdf#subsection.2.12.15
View ArticleCDO - Support: RE: cdo sellonlatbox error
Maybe this is another way to get the wanted result: ncatted -O -a grid_mapping,Multi-model\ convergence,d,, \ -a proj4,Multi-model\ convergence,d,, \ CMIP5_agreement_RCP85.nc tmp.nc cdo...
View ArticleCDO - Support: RE: Averaging along a longitude/latitude
The value lon max must be greater than lon min. So try to find a minimal value range that includes the 128°.Try something like cdo -sellonlatbox,127.5,128.5,5.,20. infile outfile
View ArticleCDO - Open discussion: RE: Variable Interpolation
The input for remapbil and 'input' itself have to be streams which means they have to be files. Use the data files or write the datasets with their coordinates to files, first.
View ArticleCDO - Open discussion: RE: How to create two separate data for daylight hours...
Hi Ankan,try (for bash shell) tday="6:30,7:30,8:30,9:30,10:30,11:30,12:30,13:30,14:30,15:30,16:30,17:30,18:30" tnight="18:30,19:30,20:30,21:30,22:30,23:30,0:30,1:30,2:30,3:30,4:30,5:30" cdo -O...
View ArticleCDO - Support: RE: select circle around a point
Hi Ricardo,IMO CDO can't do this. You can use Python/Xarray for example to do this.
View ArticleCDO - Support: RE: regriding data with CDO
Hi Serge,one attribute of the coordinate variables lon and lat has the wrong name 'unit', it has to be 'units'. IMO there is no way to directly rename an attribute of a coordinate variable, but you can...
View ArticleCDO - Support: RE: cdo remap from ERA5 grid (lonlat) to gx1 grid (generic)
Hi Wilma,your target grid is a curvilinear grid where a pole is defined over greenland. So the remapped data is correct.Plot with Python shows the same as panoply:
View ArticleCDO - Support: RE: Conditional calculation
Use the expr operator cdo -expr,'vapor_pressure=((Twet >= 0) ? e=6.107 * exp(17.38*Tmin/(239+Tmin)) : e=6.107*exp(22.44*Tmin/(272.4+Tmin))) -merge infile1 infile2 outfile
View ArticleCDO - Support: RE: How to subtract 1D from 3D netcdf using CDO
Hi Lyndon,you can use the -expr operator for the calculation.Example: 3d input file 'infile_3d.nc' contains variable 'tsurf'; 1d input file 'infile_1d.nc' contains also variable 'tsurf', therefore, we...
View ArticleCDO - Support: RE: Conditional calculation
I'd understand that the variables were stored in different file. cdo -expr,'e=((Twet >= 0) ? 6.107 * exp(17.38*Tmin/(239+Tmin)) : 6.107*exp(22.44*Tmin/(272.4+Tmin)))' infile outfile
View ArticleCDO - Support: RE: How to solve a white spot at the 1980-09-12 day in a...
Hi Jose,the problem is that we have neither the data nor the error message. And what is a 'normal viewer'? The only thing that can be said about your problem is that if there is a bug in a time step,...
View ArticleCDO - Support: RE: Bug after Detrending Antarctic Sea Ice Data
Double post see https://code.mpimet.mpg.de/boards/1/topics/15555
View ArticleCDO - Open discussion: RE: cdo distgrid (Abort): Gridsize must not change!
Hi Ingrid,your data file contains two grids, a curvilinear and a generic grid. To use the distgrid operator choose a variable first. cdo -distgrid,3,3 -selname,pr pr_hyras_1_2019_v5-0_de.nc hyras_
View ArticleCDO - Support: RE: How to solve a white spot at the 1980-09-12 day in a...
Your data contains missing values and the docu says about it in https://code.mpimet.mpg.de/projects/cdo/embedded/cdo.pdf#subsection.2.11.1: Missing values are not fully supported. Support is only...
View ArticleCDO - Open discussion: RE: maxc overwriting missing
Hi Brendan,that's right, maxc sets all values less than the constant to the value of the constant, which is probably the intention. To set the values below the constant to missing value, I would rather...
View ArticleCDO - Open discussion: RE: maxc overwriting missing
@UweThe results of cdo expr,"topo=max(topo,1000)" land.nc outfile.nc and cdo -expr,'topo = ((topo >= 1000)) ? topo : topo/0.0' land.nc outfile.nc are different. Shouldn't it be the same?
View ArticleCDO - Open discussion: RE: maxc overwriting missing
Forget it, I should pay attention to what I wrote myself above. And it's not even Monday yet...
View ArticleCDO - Support: RE: How to subtract 1D from 3D netcdf using CDO
Without the data files I am not able to see what happened. Can you upload the files?Assuming that- the file test_zonal.nc contains the 1d data- the file test_500hPa.nc contains the 3d datathan the...
View ArticleCDO - Support: RE: Remove missing values when using outputtab
Hi Riccardo,IMO not with CDO but you can use a shell script to do remove the lines where value is missing value.
View Article
More Pages to Explore .....