<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Dear colleague,<div>&nbsp; &nbsp; &nbsp; I tried to install Pyngl on my computer in order to draw 2D figures with ISCCP grids. Before this, I had used condo to install python2 and other python tools in /obs/xxwang/anaconda2/.</div><div><br></div><div>&nbsp; &nbsp; &nbsp; 1) To install Pyngl, I followed the suggestion on your website:</div><div>&nbsp; &nbsp; &nbsp; <font color="#831100">conda create --name pyn_test python=2</font></div><div><font color="#831100">&nbsp; &nbsp; &nbsp; source activate pyn_test</font></div><div><font color="#831100">&nbsp; &nbsp; &nbsp; conda install --channel ncar --channel khallock pynio pyngl</font></div><div><br></div><div>&nbsp; &nbsp; &nbsp; Then I modified my .bashrc by add the new path : &nbsp;export PATH="/obs/xxw/anaconda2/bin:<font color="#7c2a00">/obs/xxw/anaconda2/envs/pyn_test/bin</font>:$PATH&nbsp;»</div><div>&nbsp; &nbsp; &nbsp; I can see the environments:</div><div>&nbsp; &nbsp; &nbsp; pyn_test &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;* &nbsp;/obs/xxw/anaconda2/envs/pyn_test</div><div>&nbsp; &nbsp; &nbsp; root &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /obs/xxw/anaconda2</div><div><br></div><div>&nbsp; &nbsp; &nbsp; Then I tried to import Nio, but I have an error:&nbsp;ImportError: No module named Nio</div><div><br></div><div>&nbsp; &nbsp; &nbsp; Could you help me to figure out why ?&nbsp;</div><div><br></div><div>&nbsp; &nbsp; &nbsp;2) I have another question about using the Pyngl for plotting data on ISCCP grids. Maybe this question would be (too) simple….</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp;I have my data on ISCCP equal area grids (0.25 degree in latitude, and varying espace in longitude, with more grids near equator and less grids near pole). My data are global data. In my test:</div><div>&nbsp; &nbsp; &nbsp; ISCCP latitude : lat_isccp, 1D, (256915,) ),</div><div>&nbsp; &nbsp; &nbsp; ISCCP longitude: lon_isccp, (1D, (256915,))&nbsp;</div><div>&nbsp; &nbsp; &nbsp; data: emis (1D , (256915,)). &nbsp;&nbsp;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp;I would like to plot emis data on 2D map. I do not know if I should define&nbsp;<span style="white-space: pre-wrap;">resources.mpProjection ?&nbsp;</span><span style="white-space: pre-wrap;">how to show figure on screen, or h</span><span style="white-space: pre-wrap;">ow to save this figure ? or If I have several parameters to plot, I guess that I can use these configurations for all the figures (except &nbsp;</span>resources.tiMainString &nbsp;)<span style="white-space: pre-wrap;">?  </span></div><div>&nbsp; &nbsp; &nbsp; &nbsp;In the below is my example code for plotting one parameter ‘emis’ . I adapted from your SEAM example.</div><div><br></div><div>&nbsp; &nbsp; &nbsp; wks_type = "ps"</div><div>&nbsp; &nbsp; &nbsp; wks = Ngl.open_wks(wks_type, "isccp")</div><div>&nbsp; &nbsp; &nbsp; resources = Ngl.Resources()</div><div>&nbsp; &nbsp; resources.sfXArray &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= lon_isccp</div><div>&nbsp; &nbsp; resources.sfYArray &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= lat_isccp</div><div>&nbsp; &nbsp; resources.nglSpreadColorStart = 176</div><div>&nbsp; &nbsp; resources.nglSpreadColorEnd &nbsp; = 2</div><div>&nbsp; &nbsp; resources.cnFillOn &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= True</div><div>&nbsp; &nbsp; resources.cnFillMode &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= "AreaFill"</div><div>&nbsp; &nbsp; resources.cnFillPalette &nbsp; &nbsp; &nbsp; = "BlAqGrYeOrReVi200"</div><div>&nbsp; &nbsp; resources.cnLinesOn &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = False</div><div>&nbsp; &nbsp; resources.cnLineLabelsOn &nbsp; &nbsp; &nbsp;= False</div><div>&nbsp; &nbsp; resources.lbBoxLinesOn &nbsp; &nbsp; &nbsp; &nbsp;= False</div><div>&nbsp; &nbsp; resources.lbLabelFontHeightF &nbsp;= 0.015</div><div>&nbsp; &nbsp; resources.tiMainString &nbsp; &nbsp; &nbsp; &nbsp;= "Emis"</div><div>&nbsp; &nbsp; resources.nglDraw &nbsp;= False</div><div>&nbsp; &nbsp; resources.nglFrame = False</div><div><br></div><div>&nbsp; &nbsp; zt = np.transpose(emis)</div><div>&nbsp; &nbsp; contour = Ngl.contour(wks,zt,resources)</div><div>&nbsp; &nbsp;&nbsp;<span style="white-space: pre-wrap;">Ngl.end()</span></div><div><span style="white-space: pre-wrap;"><br></span></div><div><span style="white-space: pre-wrap;">    Thank you very much for your help  in advance !!</span></div><div><span style="white-space: pre-wrap;"><br></span></div><div><span style="white-space: pre-wrap;"><br></span></div><div><span style="white-space: pre-wrap;">Best regards</span></div><div><span style="white-space: pre-wrap;"><br></span></div><div><span style="white-space: pre-wrap;">Xiaoni W</span></div><div><br></div><div><br></div><div>&nbsp;</div><div>&nbsp; &nbsp;</div><div>&nbsp; &nbsp; &nbsp;</div></body></html>