Project

General

Profile

remap GEBCO bathymetry

Added by German Aragon 5 months ago

Hello everybody,

I am suffering some problems trying to reduce the resolution of GEBCO 2023 topobathymetry (7GB netcdf, downloadable from https://www.bodc.ac.uk/data/open_download/gebco/gebco_2023/zip/)

I am trying this remap discommand:

cdo -v --single remapdis,r360x180 GEBCO_2023.nc test.nc
 OpenMP:  num_procs=16  max_threads=1
cdo    remapdis: Point search radius = 180 deg
cdo    remapdis: Extrapolation enabled!
cdo    remapdis: Set max_remaps to 2
Killed

I am working on machine with 15GB in wsl2 ubuntu 22.04LTS and my cdo configuration read as:

cdo -V

Climate Data Operators version 2.0.4 (https://mpimet.mpg.de/cdo)
System: x86_64-pc-linux-gnu
CXX Compiler: g++ -std=gnu++14 -g -O2 -ffile-prefix-map=/build/cdo-hTyRvi/cdo-2.0.4=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fopenmp -pthread
CXX version : g++ (Ubuntu 11.2.0-16ubuntu1) 11.2.0
C Compiler: gcc -g -O2 -ffile-prefix-map=/build/cdo-hTyRvi/cdo-2.0.4=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -fPIC  -fopenmp -pthread -pthread
C version : gcc (Ubuntu 11.2.0-16ubuntu1) 11.2.0
F77 Compiler: f77 -g -O2 -ffile-prefix-map=/build/cdo-hTyRvi/cdo-2.0.4=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong
F77 version : GNU Fortran (Ubuntu 11.2.0-16ubuntu1) 11.2.0
Features: 15GB 16threads C++14 OpenMP45 Fortran PTHREADS HDF5 NC4/HDF5/threadsafe OPeNDAP SZ UDUNITS2 PROJ MAGICS CURL FFTW3 SSE2
Libraries: HDF5/1.10.7 proj/8.2.1 curl/7.81.0 magics/4.10.1
CDI data types: SizeType=size_t  DateType=int64_t
CDI file types: srv ext ieg grb1 grb2 nc1 nc2 nc4 nc4c nc5
     CDI library version : 2.0.4
 ecCodes library version : 2.24.2
  NetCDF library version : 4.8.1 of Sep 29 2021 09:36:14 $
    hdf5 library version : library undefined
    exse library version : 1.4.2
    FILE library version : 1.9.1

Any clue, help is really welcome! Thank you all in advance!


Replies (1)

RE: remap GEBCO bathymetry - Added by German Aragon 5 months ago

If I used the same command without --single, wich should be more demanding in terms of memory:

cdo -v remapdis,r360x180 GEBCO_2023.nc test.nc

 OpenMP:  num_procs=16  max_threads=1
cdo    remapdis: Point search radius = 180 deg
cdo    remapdis: Extrapolation enabled!
cdo    remapdis: Set max_remaps to 2
Exception caught when trying to allocate 3732480000 vector elements: std::bad_alloc in ../../../src/field.cc:30
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Aborted

    (1-1/1)