cdo maskregion - segmentation fault!!
Added by Byman Hamududu about 14 years ago
I have processed several netcdf files using the cdo functions (statistics & maths) and now I would like mask these files so that I get data over the catchment only
cdo maskregion,kwanzareg /home/byman/A1B_CCSM3_MM_50km_1961-2100_pr.nc 1961-2100_pr.nc
I get this error: Segmentation fault
The file kwanzareg is attached to this message. When I use only 4 points (as in the example in user guide) it works. My question is what is the format is myregion file for the polygon. In the user guide it says ASCII formatted files Is this grid ascii (esri)...,. I am not very sure. The attached file contains only 2 columns: lons and lat.... and I get an error
Please if you can
Byman
Replies (11)
RE: cdo maskregion - segmentation fault!! - Added by Uwe Schulzweida about 14 years ago
Hi Byman,
sorry, we can't reproduce this error. Could you please give us access to your datafile, it would help us to solve the problem.
Your parameter file with the coordinates of the polygon is correct formatted!
Cheers,
Uwe
RE: cdo maskregion - segmentation fault!! - Added by Byman Hamududu about 14 years ago
Ok thanks for replying... Here is a nc file. This a climatology data (1961 -2000) file and so contains only 12 months as time steps. So I would wish to mask this (these) file only for catchment polygon of some basins and the earlier attached file was x & y coordinates of the polygon for 1 catchment. Hope you have both now and can help. regards Byman
RE: cdo maskregion - segmentation fault!! - Added by Uwe Schulzweida about 14 years ago
Thanks for this netCDF file. I tried it with this file on different machines and can't reproduce this error.
Could you please also send us the output of 'cdo -V' and if possible a short description of the architecture
of your computing platform.
Cheers, Uwe
RE: cdo maskregion - segmentation fault!! - Added by Byman Hamududu about 14 years ago
Here is the output of cdo -V
byman@byman-Latitude-D630:~$ cdo -V
Climate Data Operators version 1.4.6 (http://code.zmaw.de/projects/cdo)
Compiler: gcc -std=gnu99 -g -O2
version: gcc (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5
with: NC4 PTHREADS Z
Compiled: by root on byman-Latitude-D630 (i686-pc-linux-gnu) Nov 8 2010 22:46:09
CDI library version : 1.4.6 of Nov 8 2010 22:46:02
CGRIBEX library version : 1.4.6 of Sep 15 2010 08:38:12
netCDF library version : 4.1.1 of May 11 2010 16:17:45 $
HDF5 library version : 1.8.4
SERVICE library version : 1.2.0 of Nov 8 2010 22:45:47
EXTRA library version : 1.2.0 of Nov 8 2010 22:45:42
IEG library version : 1.2.0 of Nov 8 2010 22:45:45
FILE library version : 1.7.0 of Nov 8 2010 22:45:42
byman@byman-Latitude-D630:~$
And my description of my system is like this
Ubuntu 10.10 on x86
*-memory
description: System memory
size: 4026MiB
*-cpu
product: Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz
vendor: Intel Corp.
physical id: 1
bus info: cpu@0
version: 6.15.11
size: 2201MHz
capacity: 2201MHz
width: 64 bits
RE: cdo maskregion - segmentation fault!! - Added by Byman Hamududu almost 14 years ago
Hello
I am still waiting for anyone's reply on the above. No one has responded.... will anyone help? Uwe you I sent what you requested me to send.
regards
Byman
RE: cdo maskregion - segmentation fault!! - Added by Uwe Schulzweida almost 14 years ago
Hi Byman,
thanks for the information. We will have access to an Ubuntu system during the next week.
Regards,
Uwe
RE: cdo maskregion - segmentation fault!! - Added by Byman Hamududu almost 14 years ago
Thanks, I can wait. Regards
RE: cdo maskregion - segmentation fault!! - Added by Ralf Mueller almost 14 years ago
Hi Byman!
I tried your call on ubuntu 9.04 32bit (cdo 1.4.6 and current development version) with out that issue. Do you use 32bit or 64bit?
On 10.10 32bit I could reproduce this segfault. There is a CDO package in the ubuntu/debian repository (version 1.4.4). If you do not need recently added features, you could use this version instead (JIC: installation with sudo apt-get install cdo
). I tested your call with 1.4.4 and it didn't crash.
regards
ralf
RE: cdo maskregion - segmentation fault!! - Added by Ralf Mueller almost 14 years ago
This bug is fixed in the current development tree, so it will automatically make it into the next release.
regards
ralf
RE: cdo maskregion - segmentation fault!! - Added by Byman Hamududu almost 14 years ago
Thank you very much Ralf and sorry for taking long to reply.. I was busy trying other ways
I will try with cdo 1.4.4 but I have to remove cdo 1.4.6 .... I need to check what I loose when I do remove 1.4.6.
Thank you very for you help
Byman
RE: cdo maskregion - segmentation fault!! - Added by Byman Hamududu almost 14 years ago
I just wanted to report that I still get the 'segmentation fault' error even when I switched back to cdo-1.4.4. I will wait for coming version, hoping it is soon...
regards Byman