[ncl-talk] Missing grid lines about zero degree

Arnold.Sullivan at csiro.au Arnold.Sullivan at csiro.au
Sun May 24 23:49:04 MDT 2015


Hi there,

Somehow I get a gap along the zero degree while plot polar region plus using gsn_coordinates to plot grid lat/lon lines.

Is there any way to fill that gap?

The code that I use to plot the grid lines:
;---Data and grid read in:
  mskFile = addfile("access.n96.newu2.nc","r")
  vTemp = rm_single_dims(mskFile->NEWVAR2(0,0,:,::2))
  vMTemp = vTemp

;---Call function to attach lat/lon lines.
  pres                   = True
  pres at gsnCoordsAsLines  = True        ; Default is points
  pres at gsLineThicknessF  = .1
  pres at gsLineColor       = "Gray25"
  pres at gsnCoordsAttach  = True
  gsn_coordinates(wks,plot1,vMTemp,pres)


The input file information:
;---Ncdump the netcdf file:
dimensions:
        LONGITUDE = 192 ;
        LATITUDE_1 = 144 ;
        HYBRID_HT = 85 ;
variables:
        double LONGITUDE(LONGITUDE) ;
                LONGITUDE:units = "degrees_east" ;
                LONGITUDE:point_spacing = "even" ;
                LONGITUDE:modulo = " " ;
                LONGITUDE:axis = "X" ;
        double LATITUDE_1(LATITUDE_1) ;
                LATITUDE_1:units = "degrees_north" ;
                LATITUDE_1:point_spacing = "even" ;
                LATITUDE_1:axis = "Y" ;
        float NEWVAR2(T, HYBRID_HT, LATITUDE_1, LONGITUDE) ;
                NEWVAR2:missing_value = -1.e+34f ;
                NEWVAR2:_FillValue = -1.e+34f ;
                NEWVAR2:long_name = "U[G=NEW_GRID]" ;
                NEWVAR2:history = "From access.n96.uv" ;


Regards,

Arnold
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150525/1d6ce84e/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mapgrid_poar.n96.png
Type: image/png
Size: 1372057 bytes
Desc: mapgrid_poar.n96.png
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150525/1d6ce84e/attachment-0001.png 


More information about the ncl-talk mailing list