[ncl-talk] Add values on a cell-Filled contour plot for a LC projection

LEROUX Marie-Dominique marie-dominique.leroux at meteo.fr
Wed Aug 29 05:44:48 MDT 2018


Hello again, 

All good, I eventually managed to do it using "gsn_add_text" with a loop on the coordinates. 
Thanks a lot, 
MD Leroux 

De: "LEROUX Marie-Dominique" <marie-dominique.leroux at meteo.fr> 
À: "ncl-talk" <ncl-talk at ucar.edu> 
Envoyé: Mercredi 29 Août 2018 11:08:30 
Objet: [ncl-talk] Add values on a cell-Filled contour plot for a LC projection 

Dear Mr or Mrs, 

I am working on a netcdf file based on a Lambert Conformal grid. The data (let's name it RR) has lat/lon coordinates. 
I drew it on a map using 
gsn_csm_contour_map(wks,RR(:,:),opts_RR 
and 
optsRR at cnFillMode = "CellFill" (or "RasterFill" ) 
It works perfectly. 

I am now willing to overlay the data values of RR on each grid point, similar to the graph plotted for example [ http://www.ncl.ucar.edu/Applications/Scripts/text_15.ncl | text_15.ncl ] (http://www.ncl.ucar.edu/Applications/text.shtml) 
However, example text_15.ncl refers to data on an (x,y) grid. 

How do we proceed for a lat/lon grid? 
Perhaps use "gsn_coordinates" like in datagrid_6.ncl example (http://www.ncl.ucar.edu/Applications/datagrid.shtml#ex6) but ask for text (= the value of RR at each grid point) instead of markers? 

Thanks for your help, 
Marie-Dominique LEROUX 
-- 
----- Météo-France ----- 
LEROUX MARIE-DOMINIQUE 
DIROI/EC 
marie-dominique.leroux at meteo.fr 
Fixe : + 262 262921127 

_______________________________________________ 
ncl-talk mailing list 
ncl-talk at ucar.edu 
List instructions, subscriber options, unsubscribe: 
http://mailman.ucar.edu/mailman/listinfo/ncl-talk 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180829/b48e14d6/attachment.html>


More information about the ncl-talk mailing list