<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> 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> 1) To install Pyngl, I followed the suggestion on your website:</div><div> <font color="#831100">conda create --name pyn_test python=2</font></div><div><font color="#831100"> source activate pyn_test</font></div><div><font color="#831100"> conda install --channel ncar --channel khallock pynio pyngl</font></div><div><br></div><div> Then I modified my .bashrc by add the new path : export PATH="/obs/xxw/anaconda2/bin:<font color="#7c2a00">/obs/xxw/anaconda2/envs/pyn_test/bin</font>:$PATH »</div><div> I can see the environments:</div><div> pyn_test * /obs/xxw/anaconda2/envs/pyn_test</div><div> root /obs/xxw/anaconda2</div><div><br></div><div> Then I tried to import Nio, but I have an error: ImportError: No module named Nio</div><div><br></div><div> Could you help me to figure out why ? </div><div><br></div><div> 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> 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> ISCCP latitude : lat_isccp, 1D, (256915,) ),</div><div> ISCCP longitude: lon_isccp, (1D, (256915,)) </div><div> data: emis (1D , (256915,)). </div><div><br></div><div> I would like to plot emis data on 2D map. I do not know if I should define <span style="white-space: pre-wrap;">resources.mpProjection ? </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 </span>resources.tiMainString )<span style="white-space: pre-wrap;">? </span></div><div> In the below is my example code for plotting one parameter ‘emis’ . I adapted from your SEAM example.</div><div><br></div><div> wks_type = "ps"</div><div> wks = Ngl.open_wks(wks_type, "isccp")</div><div> resources = Ngl.Resources()</div><div> resources.sfXArray = lon_isccp</div><div> resources.sfYArray = lat_isccp</div><div> resources.nglSpreadColorStart = 176</div><div> resources.nglSpreadColorEnd = 2</div><div> resources.cnFillOn = True</div><div> resources.cnFillMode = "AreaFill"</div><div> resources.cnFillPalette = "BlAqGrYeOrReVi200"</div><div> resources.cnLinesOn = False</div><div> resources.cnLineLabelsOn = False</div><div> resources.lbBoxLinesOn = False</div><div> resources.lbLabelFontHeightF = 0.015</div><div> resources.tiMainString = "Emis"</div><div> resources.nglDraw = False</div><div> resources.nglFrame = False</div><div><br></div><div> zt = np.transpose(emis)</div><div> contour = Ngl.contour(wks,zt,resources)</div><div> <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> </div><div> </div><div> </div></body></html>