Segmentation fault (core dumped) error
Added by ibrahim erkol over 2 years ago
Hi everyone,
I'm trying to apply spatial interpolation with the line of code below. Yet, I keep getting the "Segmentation fault (core dumped)" error.
cdo remapbil,r360x180 pr_day_ACCESS-CM2_ssp245_r1i1p1f1_gn_20150101-20991231_v20191108.nc test.nc
I'd be so glad if you could help me with this error. The NetCDF file is in the attachment.
Best
Replies (1)
RE: Segmentation fault (core dumped) error - Added by Estanislao Gavilan over 2 years ago
Hi Ibrahim,
I can tell why you are having that error. That error is because the dimensions do not agree. Usually that error is related with the compiler and not with the library. Have you tried to use a grid.txt instead of r360x180?You can use this template
gridtype = lonlat
xsize = 360
ysize = 180
xfirst = 0
xinc = 1
yfirst = -90
yinc = 1
Then, you just need to use this command
cdo remapbil,grid.txt pr_day_ACCESS-CM2_ssp245_r1i1p1f1_gn_20150101-20991231_v20191108.nc test.nc
Best regards,
Estanislao