Project

General

Profile

cdo remapbil error : Segmentation fault (core dumped)

Added by Subhra Sekhar Maity about 2 years ago

I have spatially merged 4 tif tiles using gdal_merge. then converted the merged file to netcdf using gdal_translate. Now I want to regrid the netcdf file for specific lat lon and resolution. But when i use remapbil in cdo I get the error "Segmentation fault (core dumped)". As the file is more than 1.5 GB I am attaching a google drive link.
https://drive.google.com/file/d/1oWzB3-CXyS-2XezCDVDjbFMxQSWGzks5/view?usp=share_link
The grid data (gridfile.txt) for the command
"cdo remapbil,gridfile.txt out.nc out_1.nc" is attached here.
Please help me resolve this problem.


Replies (6)

RE: cdo remapbil error : Segmentation fault (core dumped) - Added by Estanislao Gavilan about 2 years ago

Hi Subhra,

that error could be caused by many problems.You need to be more specific. You need to start...'I am using cdo version XXX in my (windows/linux/mac)'...Then, you can print the attributes of the netcdf that you want to interpolate.

Kind regards,

Estanislao

RE: cdo remapbil error : Segmentation fault (core dumped) - Added by Karin Meier-Fleischer about 2 years ago

Hi Subhra,

if you are already working with tiles and GDAL maybe it is a good idea to have a look at gdalwarp (https://gdal.org/programs/gdalwarp.html). There are some articles just google 'gdal regrid to coarse resolution'. I would expect to get errors using CDO here.

RE: cdo remapbil error : Segmentation fault (core dumped) - Added by Subhra Sekhar Maity about 2 years ago

Karin Meier-Fleischer wrote in RE: cdo remapbil error : Segmentation fault (core dumped):

Hi Subhra,

if you are already working with tiles and GDAL maybe it is a good idea to have a look at gdalwarp (https://gdal.org/programs/gdalwarp.html). There are some articles just google 'gdal regrid to coarse resolution'. I would expect to get errors using CDO here.

Thank you for the suggestion. I'll try this.

RE: cdo remapbil error : Segmentation fault (core dumped) - Added by Karin Meier-Fleischer about 2 years ago

Hm, to remap a file with 1625 Million grid cells to a coarse grid with 17415 cell needs a large memory.

Do you need the complete grid of the input file (all lons and lats) or is it possible to select a smaller region before remapping? To extract a subregion you can use the sellonlatbox operator.

RE: cdo remapbil error : Segmentation fault (core dumped) - Added by Subhra Sekhar Maity about 2 years ago

Karin Meier-Fleischer wrote in RE: cdo remapbil error : Segmentation fault (core dumped):

Hm, to remap a file with 1625 Million grid cells to a coarse grid with 17415 cell needs a large memory.

Do you need the complete grid of the input file (all lons and lats) or is it possible to select a smaller region before remapping? To extract a subregion you can use the sellonlatbox operator.

Thanks for your help. Actually the problem was coming because my system was running out of RAM. In system with higher ram capacity it worked.

    (1-6/6)