Adam and Joeky,
I looked into this and originally had typed up a response that recommended mpGridSpacingF as Adam did here. But looking into the situation a little further, I discovered that gsnMajorLonSpacingF is actually a resource for tickmark spacing that seems to round any specified lat/lon value to the nearest degree. For example, I tried setting it to 1.4 and got tick spacing of 
1 degree. So it apparently won't work for values less than 1 degree. mpGridSpacingF is for the lat/lon grid inside the map projected area and does work for values less than a degree.
gsnMajorLonSpacingF only applies when you are using the special tick marks that work only for lat/lon projections using the gsn routines. You could instead use the basic map tickmarks by
setting pmTickMarkDisplayMode to "always". This will give you tick marks for small areas of 1 degree or less. The downside is you have to accept what they give you -- which is degrees, 
minutes, and seconds. 
 -dave
On Mar 11, 2013, at 10:34 AM, Adam Phillips wrote:
> Hi Joeky, 
> I am not sure about this as I cannot see the underlying code, but it sounds like those resources are not coded to work below a 1 degree resolution. You can try setting this resource:
> res@mpGridSpacingF = 0.1
> http://www.ncl.ucar.edu/Document/Graphics/Resources/mp.shtml#mpGridSpacingF
> 
> If that doesn't work then the best work around would be to add the grid lines manually using gsn_add_polyline:
> http://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_add_polyline.shtml
> Hope that helps.. If not, let ncl-talk know. 
> Adam
> 
> 
> On 03/10/2013 10:06 AM, juki juki wrote:
>> Hi all ncl user;
>> 
>> Again, I would like to share my problem and hope your advice on it. I am making a contour map for 1^ox1^o degree box. Of course, the latitude and longitude space will be < 1. I tried as
>> 
>> res2gsnMajorLatSpacing =0. 1
>>  res2@gsnMajorLonSpacing = 0.1
>> 
>> and I got the following error:
>> 
>> > fatal:divide: Division by 0, Can't continue 
>> > fatal:Mod: operator failed, can't continue
>> 
>> When I use the value > 1, everthing was ok. Thanks for your help
>> 
>> Joeky
>> 
>> 
>> 
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> 
> -- 
> ______________________________________________________________
> Adam Phillips                                asphilli@ucar.edu
> NCAR/Climate and Global Dynamics Division       (303) 497-1726    
> P.O. Box 3000				  
> Boulder, CO 80307-3000    http://www.cgd.ucar.edu/cas/asphilli
> _______________________________________________
> 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 Mon Mar 11 11:26:14 2013
This archive was generated by hypermail 2.1.8 : Wed Mar 13 2013 - 14:19:38 MDT