Project

General

Profile

Merge grids with similar longitudes and latitudes

Added by David Delft about 8 years ago

Hi all,

I would like to perform an EOF analysis on a wind speed vector field. Therefore I split the wind speeds in a u and v component. I am now trying to merge the two fields (u and v) in order to perform the regular EOF analysis on the doubled domain. However, the two fields have the same longitudes and latitudes, so mergegrid doesn't work. Is it possible to combine these two fields by redefining the longitudes of one of the fields?

Thanks in advance.

Kind regards,

David


Replies (3)

RE: Merge grids with similar longitudes and latitudes - Added by Ralf Mueller about 8 years ago

Hi David!
some sample data would be helpful

RE: Merge grids with similar longitudes and latitudes - Added by David Delft about 8 years ago

The grid is [25x21] and the files contain 93 time steps.

RE: Merge grids with similar longitudes and latitudes - Added by Ralf Mueller about 8 years ago

I had no problems with the current release

ram@luthien:~/Downloads cdo mergegrid windU.nc windV.nc wind.nc                      [12:26:47|16-04-01]
cdo mergegrid: Processed 97650 values from 2 variables over 186 timesteps ( 0.00s )

I use this CDO version

ram@luthien:~/Downloads cdo -V                                                       [12:27:21|16-04-01]
Climate Data Operators version 1.7.1 (http://mpimet.mpg.de/cdo)
Compiled: by ram on luthien (x86_64-unknown-linux-gnu) Feb 29 2016 16:15:28
Compiler: gcc -g -O3 -std=gnu99 -Wall -fopenmp -march=native   
 version: gcc (GCC) 5.3.0
Features: DATA PTHREADS OpenMP4 HDF5 NC4/HDF5 OPeNDAP SZ Z UDUNITS2 PROJ.4 CURL FFTW3 AVX2
Libraries: HDF5/1.8.15 proj/4.92 curl/7.47.1
Filetypes: srv ext ieg grb grb2 nc nc2 nc4 nc4c 
     CDI library version : 1.7.1 of Feb 29 2016 15:53:32
 CGRIBEX library version : 1.7.4 of Feb 19 2016 11:03:41
GRIB_API library version : 1.14.2
  NetCDF library version : 4.3.3.1 of Oct 28 2015 01:20:54 $
    HDF5 library version : 1.8.15
 SERVICE library version : 1.4.0 of Feb 29 2016 15:53:30
   EXTRA library version : 1.4.0 of Feb 29 2016 15:53:29
     IEG library version : 1.4.0 of Feb 29 2016 15:53:29
    FILE library version : 1.8.2 of Feb 29 2016 15:53:29

wind.nc (193 KB) wind.nc
    (1-3/3)