Re: help

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Fri Oct 15 2010 - 09:44:56 MDT

Dear Mohamed,

Thanks for providing the script. Do you know which line it is seg faulting on?

Also, which version of NCL are you using?

You can usually get this information by temporarily commenting the "begin" and "end" lines, and
running your script with the "-x" option:

   ncl -x GRID-Interpolation.ncl

This will cause every line to be echoed back to you as it is executed, so then you should be able
to see where it seg faults.

It's possible that the seg fault is caused because of running out of memory. It would be helpful to
call "printVarSummary" on some of your variables.

--Mary

On Oct 14, 2010, at 4:51 AM, Mohamad Ibrahim OMAR wrote:

> dear Andrea
> the script is attached
> THANKS
>
>
> Mohamed OMAR
> Egyptian Meteorological Authority
> Scientific Research Department
> Climate Studies Centre
>
>
> --- On Thu, 10/14/10, Andrea Hahmann <ahah@risoe.dtu.dk> wrote:
>
> From: Andrea Hahmann <ahah@risoe.dtu.dk>
> Subject: Re: help
> To: "Mohamad Ibrahim OMAR" <egy_mohamad@yahoo.com>
> Date: Thursday, October 14, 2010, 12:27 PM
>
> Dear Mohamad
>
> Without seeing your script it is very hard to help you :)
> Regards,
> Andrea
> --
>
> Andrea N. Hahmann
> Senior Scientist
> Wind Energy Division
> Risų DTU
>
> Technical University of Denmark
> Risų National Laboratory for Sustainable Energy
> Frederikborgvej 399, P.O. Box 49
> 4000 Roskilde, Denmark
>
> Direct +45 4677 5471
> Mobil: +45 2133 0550
> ahah@risoe.dtu.dk
> www.risoe.dtu.dk
>
>
>
> From: Mohamad Ibrahim OMAR <egy_mohamad@yahoo.com>
> Date: Thu, 14 Oct 2010 02:54:56 -0700 (PDT)
> To: <ncl-talk@ucar.edu>
> Subject: help
>
> I want to interpolate the precip.mon.mean.nc which has the ncdump as following
>
> netcdf precip.mon.mean {
> dimensions:
> lat = 72 ;
> lon = 144 ;
> time = UNLIMITED ; // (369 currently)
> variables:
> float lat(lat) ;
> lat:units = "degrees_north" ;
> lat:actual_range = 88.75f, -88.75f ;
> lat:long_name = "Latitude" ;
> float lon(lon) ;
> lon:units = "degrees_east" ;
> lon:long_name = "Longitude" ;
> lon:actual_range = 1.25f, 358.75f ;
> float precip(time, lat, lon) ;
> precip:long_name = "Average Monthly Rate of Precipitation" ;
> precip:valid_range = 0.f, 100.f ;
> precip:units = "mm/day" ;
> precip:add_offset = 0.f ;
> precip:scale_factor = 1.f ;
> precip:actual_range = 0.f, 85.967f ;
> precip:missing_value = -9.96921e+36f ;
> precip:precision = 32767s ;
> precip:least_significant_digit = 2s ;
> precip:var_desc = "Precipitation" ;
> precip:dataset = "GPCP Version 2.1 Combined Precipitation Dataset" ;
> precip:level_desc = "Surface" ;
> precip:statistic = "Mean" ;
> precip:parent_stat = "Mean" ;
> double time(time) ;
> time:units = "days since 1700-1-1 00:00:0.0" ;
> time:long_name = "Time" ;
> time:delta_t = "0000-01-00 00:00:00" ;
> time:actual_range = 101902., 113103. ;
> time:avg_period = "0000-01-00 00:00:00" ;
>
> // global attributes:
> :Conventions = "COARDS" ;
> :title = "GPCP Version 2.1 Combined Precipitation Dataset" ;
> :history = "created jul 2009 by CAS at NOAA/ESRL PSD" ;
> :platform = "Observation" ;
> :source = "GPCP Polar Satellite Precipitation Data Centre - Emission (SSM/I emission estimates).\n",
> " GPCP Polar Satellite Precipitation Data Centre - Scattering (SSM/I scattering estimates).\n",
> " GPCP Geostationary Satellite Precipitation Data Centre (GPI and OPI estimates and rain gauge analyses). NASA/GSFC Satellite Applications Office (TOVS estimates).\n",
> " GPCP Global Precipitation Climatology Centre (rain gauge analyses)\n",
> " NASA ftp://precip.gsfc.nasa.gov/pub/gpcp-v2.1-v2/psg/" ;
> :documentation = "http://www.esrl.noaa.gov/psd/data/gridded/data.gpcp.html" ;
> :version = "V2.1" ;
> }
>
> to the regcm3 output file as I want to compare it with the other I did this for CRU version 3 but when I did the sam with the GPCP I have the following :
>
>
> Segmentation fault (core dumped)
> can anyone help me
>
> THANKS
>
> Mohamed OMAR
> Egyptian Meteorological Authority
> Scientific Research Department
> Climate Studies Centre
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
> <GRID-Interpolation.ncl>_______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Oct 15 09:45:04 2010

This archive was generated by hypermail 2.1.8 : Tue Oct 19 2010 - 14:38:00 MDT