<div dir="ltr"><div class="gmail_default" style="font-size:small">Please subscribe to ncl-talk if you want help with NCL, and send your questions there. I did not see your "<a href="mailto:jiban_samudra18@yahoo.com">jiban_samudra18@yahoo.com</a>" in the ncl-talk membership list.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Dave, Rick, and I all sent you scripts a few weeks ago, but it looks like you are not using the fixed scripts we sent you. The script you sent has several things wrong with it, that we had fixed for you previously:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">[1] You have several resources misspelled:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"> res@cnfillon=True<br> rescnLineson=False<br> res@lbLabAutoStride=True<br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">should be:</div><div class="gmail_default" style="font-size:small"><br></div> res@cnFillOn=True<br> rescnLinesOn=False<br> res@lbLabelAutoStride=True<div class="gmail_default" style="font-size:small;display:inline">​     ; This is the default, so you don't need to set it.​</div><br><br><div class="gmail_default" style="font-size:small">​[2] You didn't use the contour levels that we created for you before.  It looks like you have unequally spaced contour levels, so you must provide these for NCL.​</div><div><br></div>







res@cnLevelSelectionMode = "ExplicitLevels"<br>res@cnLevels             = (/1,1.5,2,2.25,2.5,2.75,3,3.5,4,4.5,5.2,5.6,6,6.4,6.8,7.2,7.6,8.5,11.8,12.4,14.0,14.5,15,30/)<p class="gmail-p2" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:Monaco;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s5" style="font-variant-ligatures:no-common-ligatures;color:rgb(208,59,255)"><br></span></p><div class="gmail_default" style="font-size:small">[3] You created the lat/lon coordinates, but you didn't attach them to the variable:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><div class="gmail_default">lon = (360./numlon)*(ispan(0,numlon-1,1)+0.5)</div><div class="gmail_default">lat = (180./numlat)*(ispan(0,numlat-1,1)+0.5)-90</div><div class="gmail_default"><br></div><div class="gmail_default">lat@units="degrees_north"</div><div class="gmail_default">lon@units="degrees_east"</div><div class="gmail_default">data_actual!0 = "lat"</div><div class="gmail_default">data_actual!1 = "lon"</div><div class="gmail_default">data_actual&lat = lat</div><div class="gmail_default">data_actual&lon = lon</div><div class="gmail_default"><br></div><div class="gmail_default">Note that you don't need a do loop to calculate lat/lon.  This is another thing we tried to show you in a previous script.</div><div class="gmail_default"><br></div></div>[4] If you want the value 0.0 to be treated as missing, use the "where" function:<br><br>data_actual@_FillValue = -999.<br>data_actual = where(data_actual.eq.0,data_actual@_FillValue,data_actual)<br><div><br></div><div><div class="gmail_default" style="font-size:small">​I've attached the modified script and the resultant PNG. I didn't have time to clean it up, so I'll leave that to you. Please look over this script carefully and try to understand it this time.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">As for adding vectors, you will need to add code like this at the end of the contouring code, and you need to make sure u and v have lat/lon attached to them the same way I did for asc_wind_speed in the attached script.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace">vcres = True</font></div><div class="gmail_default"><font face="monospace, monospace">;;vcres@vcMinDistanceF  = 0.005    ; thins the vectors</font></div><div class="gmail_default"><font face="monospace, monospace">;;vcres@vcRefLengthF    = 0.01      ; changes the NDC length of the reference vector</font></div><div class="gmail_default"><font face="monospace, monospace"><br></font></div><div class="gmail_default"><font face="monospace, monospace">vector_plot=gsn_csm_vector(xwks,u,v,vcres)</font></div><div class="gmail_default"><font face="monospace, monospace"><br></font></div><div class="gmail_default"><font face="monospace, monospace">overlay(plot,vector_plot)</font></div><div class="gmail_default"><font face="monospace, monospace">draw(plot)</font></div><div class="gmail_default"><font face="monospace, monospace">frame(xwks)</font></div><div class="gmail_default"><br></div><div class="gmail_default">To see more about customizing vectors, see the examples at:</div><div class="gmail_default"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/vector.shtml">http://www.ncl.ucar.edu/Applications/vector.shtml</a><br></div><div class="gmail_default"><br></div><div class="gmail_default"><br></div><div class="gmail_default">I don't know what u and v are on the file, so this is something you will figure out yourself.  </div><div class="gmail_default"><br></div><div class="gmail_default">If you have more questions, please subscribe to ncl-talk and post a new message. </div><div class="gmail_default"><br></div><div class="gmail_default">Thanks for your consideration, and good luck.<br><br></div></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 30, 2018 at 4:04 AM, jayanti pal <span dir="ltr"><<a href="mailto:jiban_samudra18@yahoo.com" target="_blank">jiban_samudra18@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:courier new,courier,monaco,monospace,sans-serif;font-size:13px"><span class=""><div><div><br></div><div><br></div><div class="m_-7045945902145558704ydp1839a23csignature"><span style="font-weight:bold;font-size:medium;font-family:'Courier New',courier,monaco,monospace,sans-serif">Dr. Jayanti Pal</span><div><span style="font-size:medium;font-family:'Courier New',courier,monaco,monospace,sans-serif">Post-doc Fellow</span></div><div><span style="font-size:medium;font-family:'Courier New',courier,monaco,monospace,sans-serif">Department of Atmospheric Sciences</span></div><div><span style="font-size:medium;font-family:'Courier New',courier,monaco,monospace,sans-serif">Institute of Atmospheric and Environmental Sciences</span></div><div><span style="font-size:medium;font-family:'Courier New',courier,monaco,monospace,sans-serif">University of Calcutta</span></div><div><span style="font-size:medium;font-family:'Courier New',courier,monaco,monospace,sans-serif">Contact: <span style="font-style:italic;font-weight:bold;color:rgb(203,0,142)"><a href="mailto:jiban_samudra18@yahoo.com" target="_blank">jiban_samudra18@yahoo.com</a></span>,<span style="font-weight:bold;font-style:italic;color:rgb(156,0,92)"> <a href="mailto:jayantibright@gmail.com" target="_blank">jayantibright@gmail.com</a></span></span></div><div><span style="font-weight:bold;font-size:medium;font-family:'Courier New',courier,monaco,monospace,sans-serif">Ph. <a href="tel:(801)%20390-6997" value="+18013906997" target="_blank">8013906997</a></span></div></div></div>
            <div><br></div><div><br></div>
            
            </span><div id="m_-7045945902145558704ydpcb78dbcdyahoo_quoted_7610757827" class="m_-7045945902145558704ydpcb78dbcdyahoo_quoted">
                <div style="font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;color:#26282a"><span class="">
                    <div>----- Forwarded message -----</div>
                    <div><b>From:</b> jayanti pal <<a href="mailto:jiban_samudra18@yahoo.com" target="_blank">jiban_samudra18@yahoo.com</a>></div><div><b>To:</b> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a> <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>></div></span><span class=""><div><b>Sent:</b> Tuesday 30 January 2018, 4:24:31 PM IST</div><div><b>Subject:</b> Fw: scatsat-1 data plotting</div><div><br></div>
                    </span><div><div id="m_-7045945902145558704ydpcb78dbcdyiv4767179324"><div><div style="font-family:courier,monaco,monospace,sans-serif;font-size:13px"><div><div><span class=""> <div>Sir</div><div><br clear="none"></div><div>I am new to ncl. I tried to plot scatsat-1 data with ncl. But figure is not correctly plotted.</div><div>I have attached the code I have used, Hdf file, actual plot (in color) and ncl plot (in black).</div></span><div>In this hdf file there are four variables: Asending wind speed, asending wind direction , descending wind speed, desending wind direction.</div><div>I want to plot this four variable in a single plot where speeds are in contour and directions are in vector. Also I want to plot this over Indian region (Lat: 0-40 and Lon : 60-100).<br clear="none"></div><div><br clear="none"></div><div>Please help me. I have to plot those data urgently as I have to submit project review.</div><div><br clear="none"></div><div>Sincerely<br clear="none"></div><br clear="none"></div><span class=""><div><br clear="none"></div><div><br clear="none"></div><div class="m_-7045945902145558704ydpcb78dbcdyiv4767179324ydpbbf552d2signature"><span style="font-weight:bold;font-size:medium;font-family:'Courier New',courier,monaco,monospace,sans-serif">Dr. Jayanti Pal</span><div><span style="font-size:medium;font-family:'Courier New',courier,monaco,monospace,sans-serif">Post-doc Fellow</span></div><div><span style="font-size:medium;font-family:'Courier New',courier,monaco,monospace,sans-serif">Department of Atmospheric Sciences</span></div><div><span style="font-size:medium;font-family:'Courier New',courier,monaco,monospace,sans-serif">Institute of Atmospheric and Environmental Sciences</span></div><div><span style="font-size:medium;font-family:'Courier New',courier,monaco,monospace,sans-serif">University of Calcutta</span></div><div><span style="font-size:medium;font-family:'Courier New',courier,monaco,monospace,sans-serif">Contact: <span style="font-style:italic;font-weight:bold;color:rgb(203,0,142)"><a href="mailto:jiban_samudra18@yahoo.com" target="_blank">jiban_samudra18@yahoo.com</a></span>,<span style="font-weight:bold;font-style:italic;color:rgb(156,0,92)"> <a href="mailto:jayantibright@gmail.com" target="_blank">jayantibright@gmail.com</a></span></span></div><div><span style="font-weight:bold;font-size:medium;font-family:'Courier New',courier,monaco,monospace,sans-serif">Ph. <a href="tel:(801)%20390-6997" value="+18013906997" target="_blank">8013906997</a></span></div></div></span></div>
            <div><br clear="none"></div><div><div class="h5"><div><br clear="none"></div>
            
            <div class="m_-7045945902145558704ydpcb78dbcdyiv4767179324yqt6662039091" id="m_-7045945902145558704ydpcb78dbcdyiv4767179324yqt20992"><div class="m_-7045945902145558704ydpcb78dbcdyiv4767179324ydpc3010154yahoo_quoted" id="m_-7045945902145558704ydpcb78dbcdyiv4767179324ydpc3010154yahoo_quoted_8179514659">
                <div style="font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;color:#26282a">
                    <div>----- Forwarded message -----</div>
                    <div><b>From:</b> jayanti pal <<a href="mailto:jiban_samudra18@yahoo.com" target="_blank">jiban_samudra18@yahoo.com</a>></div><div><b>To:</b> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a> <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>></div><div><b>Sent:</b> Tuesday 2 January 2018, 12:47:33 PM IST</div><div><b>Subject:</b> Fw: scatsat-1 data plotting</div><div><br clear="none"></div>
                    <div><div id="m_-7045945902145558704ydpcb78dbcdyiv4767179324ydpc3010154yiv0045637508"><div><div style="font-family:courier,monaco,monospace,sans-serif;font-size:13px"><div><div><div>Sir</div><div><br clear="none"></div><div>I am new to ncl. I tried to plot scatsat-1 data with ncl. But figure is not correctly plotted.</div><div>I have attached the code I have used, Hdf file, actual plot (in color) and ncl plot (in black).</div><div><br clear="none"></div><div>Please help me. I have to plot those data urgently.</div><div><br clear="none"></div><br clear="none"></div><div><br clear="none"></div><div class="m_-7045945902145558704ydpcb78dbcdyiv4767179324ydpc3010154yiv0045637508ydpad98a390signature"><span style="font-weight:bold;font-size:medium;font-family:'Courier New',courier,monaco,monospace,sans-serif">Dr. Jayanti Pal</span><div><span style="font-size:medium;font-family:'Courier New',courier,monaco,monospace,sans-serif">Post-doc Fellow</span></div><div><span style="font-size:medium;font-family:'Courier New',courier,monaco,monospace,sans-serif">Department of Atmospheric Sciences</span></div><div><span style="font-size:medium;font-family:'Courier New',courier,monaco,monospace,sans-serif">Institute of Atmospheric and Environmental Sciences</span></div><div><span style="font-size:medium;font-family:'Courier New',courier,monaco,monospace,sans-serif">University of Calcutta</span></div><div><span style="font-size:medium;font-family:'Courier New',courier,monaco,monospace,sans-serif">Contact: <span style="font-style:italic;font-weight:bold;color:rgb(203,0,142)"><a href="mailto:jiban_samudra18@yahoo.com" target="_blank">jiban_samudra18@yahoo.com</a></span>,<span style="font-weight:bold;font-style:italic;color:rgb(156,0,92)"> <a href="mailto:jayantibright@gmail.com" target="_blank">jayantibright@gmail.com</a></span></span></div><div><span style="font-weight:bold;font-size:medium;font-family:'Courier New',courier,monaco,monospace,sans-serif">Ph. <a href="tel:(801)%20390-6997" value="+18013906997" target="_blank">8013906997</a></span></div></div></div>
            <div><br clear="none"></div><div><br clear="none"></div>
            
            <div class="m_-7045945902145558704ydpcb78dbcdyiv4767179324ydpc3010154yiv0045637508yqt5815119728" id="m_-7045945902145558704ydpcb78dbcdyiv4767179324ydpc3010154yiv0045637508yqt19030"><div class="m_-7045945902145558704ydpcb78dbcdyiv4767179324ydpc3010154yiv0045637508ydp84d5ae79yahoo_quoted" id="m_-7045945902145558704ydpcb78dbcdyiv4767179324ydpc3010154yiv0045637508ydp84d5ae79yahoo_quoted_5635597887">
                <div style="font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;color:#26282a">
                    <div>----- Forwarded message -----</div>
                    <div><b>From:</b> jayanti pal <<a href="mailto:jiban_samudra18@yahoo.com" target="_blank">jiban_samudra18@yahoo.com</a>></div><div><b>To:</b> <a href="mailto:eoshelp@hdfgroup.org" target="_blank">eoshelp@hdfgroup.org</a> <<a href="mailto:eoshelp@hdfgroup.org" target="_blank">eoshelp@hdfgroup.org</a>></div><div><b>Sent:</b> Friday 22 December 2017, 12:28:59 PM IST</div><div><b>Subject:</b> scatsat-1 data plotting</div><div><br clear="none"></div>
                    <div><div id="m_-7045945902145558704ydpcb78dbcdyiv4767179324ydpc3010154yiv0045637508ydp84d5ae79yiv3642235653"><div><div style="font-family:courier,monaco,monospace,sans-serif;font-size:13px"><div><div>Sir</div><div><br clear="none"></div><div>I am new to ncl. I tried to plot scatsat-1 data with ncl. But figure is not correctly plotted.</div><div>I have attached the code I have used, Hdf file, actual plot (in color) and ncl plot (in black).</div><div><br clear="none"></div><div>Please help me. I have to plot those data urgently.</div><div><br clear="none"></div><div>Thanking you,<br clear="none"></div><div><br clear="none"></div><div class="m_-7045945902145558704ydpcb78dbcdyiv4767179324ydpc3010154yiv0045637508ydp84d5ae79yiv3642235653ydpb715be5dsignature"><span style="font-weight:bold;font-size:medium;font-family:'Courier New',courier,monaco,monospace,sans-serif">Dr. Jayanti Pal</span><div><span style="font-size:medium;font-family:'Courier New',courier,monaco,monospace,sans-serif">Post-doc Fellow</span></div><div><span style="font-size:medium;font-family:'Courier New',courier,monaco,monospace,sans-serif">Department of Atmospheric Sciences</span></div><div><span style="font-size:medium;font-family:'Courier New',courier,monaco,monospace,sans-serif">Institute of Atmospheric and Environmental Sciences</span></div><div><span style="font-size:medium;font-family:'Courier New',courier,monaco,monospace,sans-serif">University of Calcutta</span></div><div><span style="font-size:medium;font-family:'Courier New',courier,monaco,monospace,sans-serif">Contact: <span style="font-style:italic;font-weight:bold;color:rgb(203,0,142)"><a href="mailto:jiban_samudra18@yahoo.com" target="_blank">jiban_samudra18@yahoo.com</a></span>,<span style="font-weight:bold;font-style:italic;color:rgb(156,0,92)"> <a href="mailto:jayantibright@gmail.com" target="_blank">jayantibright@gmail.com</a></span></span></div><div><span style="font-weight:bold;font-size:medium;font-family:'Courier New',courier,monaco,monospace,sans-serif">Ph. <a href="tel:(801)%20390-6997" value="+18013906997" target="_blank">8013906997</a></span></div></div></div></div></div></div></div>
                </div>
            </div></div></div></div></div></div>
                </div>
            </div></div></div></div></div></div></div></div>
                </div>
            </div></div></div></blockquote></div><br></div>