[ncl-talk] lcmask_4.ncl_error

Beata Szabo szabo.b at czechglobe.cz
Thu Sep 22 05:57:34 MDT 2016


Dear All, I applied lcmask_4.ncl script from
https://www.ncl.ucar.edu/Applications/Scripts/lcmask_4.ncl. It is able to
create lambert conic projected map if I use large European area
geographical values :
minlat = 30
maxlat = 75
minlon = -20
maxlon = 40

I tried to run this script to create lambert projected map about Iberian
Peninsula with:
minlat = 36
maxla = 44
minlon = -10
maxlon = 3

but I got error messages
fatal:divide: Division by 0, Can't continue
fatal:Div: operator failed, can't continue
fatal:["Execute.c":8128]:Execute: Error occurred at or near line 43 in
file lambert_IP.ncl

fatal:["Execute.c":8128]:Execute: Error occurred at or near line 198 in
file lambert_IP.ncl

where line 43 is:
  slope_lft = (lat2_ndc-lat1_ndc)/(lon2_ndc-lon1_ndc)
and line 198 is:
 add_lc_labels(wks,plot(0),minlat,maxlat,minlon,maxlon)

I attached the script. Can someone suggest me how I can fix this error?
Thank you for your help in advance!
Beata


Dr. Beata Szabo-Takacs
Global Change Research Institute CAS
Bělidla 986/4a
60300 Brno
Czech Republic
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lambert_IP.ncl
Type: application/octet-stream
Size: 8162 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160922/5a0f544f/attachment.obj 


More information about the ncl-talk mailing list