<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Jalal,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Thanks for sending the script. I do not understand what you are trying to do, however, because you are referencing several variables that don't even exist. It looks like you did a printVarSummary of the data variables from the "<a href="http://uvt.nc">uvt.nc</a>" data file, which is the original data file that was used for this particular example.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">In your script, you are referencing "grid_lont", "grid_latt", "aqual", but I don't see them being calculated or read off a file.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">What I'm trying to get you to do is look at the variables you are trying to plot, so you can better understand why they are not plotting on the map correctly. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">What are grid_lont and grid_latt ? Why are they in your script? What is "aqual"? You are plotting this variable, but I don't see where it is being calculated. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you are struggling with plotting data over a map, then I suggest looking at our "plotting data on a map" examples page:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/plot_data_on_map.shtml">http://www.ncl.ucar.edu/Applications/plot_data_on_map.shtml</a></div><div class="gmail_default"><br></div><div class="gmail_default">This will help explain how to examine your data so you can better understand how to plot it.</div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br><br>--Mary<br></div><div class="gmail_default" style="font-size:small"></div></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Nov 20, 2018 at 2:11 AM Md. Jalal Uddin <<a href="mailto:dmjalal90@gmail.com">dmjalal90@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Dear Mary,</div><div><br></div><div>Please find the variable overview as follows:</div><div><br></div><div><div>Variable: u</div><div>Type: float</div><div>Total Size: 32768 bytes</div><div> 8192 values</div><div>Number of Dimensions: 3</div><div>Dimensions and sizes: [time | 1] x [lat | 64] x [lon | 128]</div><div>Coordinates:</div><div> time: [0..0]</div><div> lat: [-87.8638..87.8638]</div><div> lon: [-180..177.1875]</div><div>Number Of Attributes: 5</div><div> lev : 500</div><div> _FillValue : -999</div><div> long_name : Zonal Wind</div><div> short_name : U</div><div> units : m/s</div><div><br></div><div>Variable: v</div><div>Type: float</div><div>Total Size: 32768 bytes</div><div> 8192 values</div><div>Number of Dimensions: 3</div><div>Dimensions and sizes: [time | 1] x [lat | 64] x [lon | 128]</div><div>Coordinates:</div><div> time: [0..0]</div><div> lat: [-87.8638..87.8638]</div><div> lon: [-180..177.1875]</div><div>Number Of Attributes: 5</div><div> lev : 500</div><div> _FillValue : -999</div><div> long_name : Meridional Wind</div><div> short_name : V</div><div> units : m/s</div><div>(0) Zonal Wind (m/s) : min=-13.8651 max=40.7452</div><div>(0) Meridional Wind (m/s) : min=-13.8738 max=12.5208</div></div><div><br></div><div><div><br></div><div>I did not find grid_lont and grid_latt in the data (<a href="http://uvt.nc" target="_blank">uvt.nc</a>, <a href="http://www.ncl.ucar.edu/Applications/Data/" target="_blank">http://www.ncl.ucar.edu/Applications/Data/</a>). Please find the script in the attachment.</div><div><br></div><div>fatal:Variable (grid_lont) is undefined</div><div><br></div><div>What can I do?</div><div><br></div><div>Best Regards,</div><div>Jalal</div><div><br></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Nov 20, 2018 at 1:18 AM Mary Haley <<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small">Dear Jalal,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You sent your message over the weekend, which is why it was not answered right away. </div><div class="gmail_default" style="font-size:small"><br class="m_-1207185970019396209m_-2081371336318008970gmail-Apple-interchange-newline">Are you getting any errors or warnings from this script? It's crucial to include this information when you have a question about NCL.<br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Usually the reason why data doesn't appear on a map correctly is because the lat/lon data being provided in the script is not correct for the data you are trying to plot.</div><div class="gmail_default" style="font-size:small"><div class="gmail_default"><br class="m_-1207185970019396209m_-2081371336318008970gmail-Apple-interchange-newline">It looks like you are doing everything correctly, as you have these two lines which tell NCL where to place the data on the map:</div><div class="gmail_default"><br></div><div class="gmail_default"><div class="gmail_default"> res@sfXArray = grid_lont ; Required to tell NCL where to </div><div class="gmail_default"> res@sfYArray = grid_latt ; overlay data on globe. </div><div class="gmail_default"><br></div><div class="gmail_default">Did you look at grid_lont and grid_latt? I suggest doing a printMinMax to make sure that the lat/lon values look correct:<br></div><div class="gmail_default"><br></div><div class="gmail_default">printMinMax(grid_lont,0)</div><div class="gmail_default">printMinMax(grid_latt,0)</div><div class="gmail_default"><br></div><div class="gmail_default">These values should be around 23 latitude and 90 longitude, if this data is over Bangladesh.</div></div></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">A useful debugging tool is to use the gsn_coordinates procedure to draw the location of your grid_lont and grid_latt arrays on your map. For example, after this call:</div><br><font face="monospace, monospace"> plot = gsn_csm_contour_map(wks,aqual,res)<br></font><br>add the lines:<br><font face="monospace, monospace"><br>mkres <span class="gmail_default" style="font-size:small"> </span>= True</font></div><div dir="ltr"><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">mkres@gsnCoordsLat = grid_latt</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">mkres@gsnCoordsLon = grid_lont</font></div><font face="monospace, monospace">;mkres@gsMarkerSizeF = 5 ; may need to adjust this if markers are too large or too small<br>gsn_coordinates(wks,<span class="gmail_default" style="font-size:small">plot</span>,<span class="gmail_default" style="font-size:small">aqual</span>,<span class="gmail_default" style="font-size:small">mk</span>res)</font></div><div dir="ltr"><font face="monospace, monospace"><br></font>For more information on gsn_coordinates, see some examples at:<br><br><a href="http://www.ncl.ucar.edu/Applications/datagrid.shtml" target="_blank">http://www.ncl.ucar.edu/Applications/datagrid.shtml</a><div class="gmail_default" style="font-size:small">If you continue to have problems, then it would really help if you could do one or more of the following:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Provide the output from doing a printVarSummary and printMinMax on all the variables you are trying to plot *and* grid_lont and gridlatt.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Provide the full script and the data. If the data is > 2 MB, then put it somewhere that we can download it, or use ftp:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/ftp_files.shtml" target="_blank">http://www.ncl.ucar.edu/ftp_files.shtml</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">Thank you,</div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><div class="gmail_default"><br></div><div class="gmail_default"><br></div></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Nov 19, 2018 at 2:11 AM Md. Jalal Uddin <<a href="mailto:dmjalal90@gmail.com" target="_blank">dmjalal90@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Could anyone tell me why I am not getting temperature contour for Bangladesh?</div><br><div class="gmail_quote"><div dir="ltr">On Sun, Nov 18, 2018 at 4:19 PM Md. Jalal Uddin <<a href="mailto:dmjalal90@gmail.com" target="_blank">dmjalal90@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi all,</div><div><br></div><div>I followed overlay_11.ncl example (<a href="https://www.ncl.ucar.edu/Applications/overlay.shtml" target="_blank">https://www.ncl.ucar.edu/Applications/overlay.shtml</a>) code and data; however, I am getting the temperature contour. I tried to mask out over Bangladesh.</div><div><br></div><div>How can I get the temperature contour?</div><div><br></div><div>Best regards,</div><div>Jalal</div><div dir="ltr">-- <br><div dir="ltr" class="m_-1207185970019396209m_-2081371336318008970m_176085375801555576m_-8519643474916782385gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font color="#000000" size="2"><b>Md. Jalal Uddin</b></font></div><div dir="ltr">MSc in Applied Meteorology (English Language)<br>Nanjing University of Information, Science and Technology, China</div><div dir="ltr"><span style="letter-spacing:0.2px">B.Sc. in Disaster Management (Hons.) </span><br></div><div dir="ltr"><span style="letter-spacing:0.2px">Patuakhali Science and Technology University, Bangladesh.</span></div><div dir="ltr">Cell: +8613260859092, <span style="letter-spacing:0.2px">+8801792052662</span></div><div dir="ltr"><font size="2">Web: <a href="http://www.dmjalal90.weebly.com" target="_blank">www.dmjalal90.weebly.com</a> <br>Facebook: jalal.hossen.39 <br>LinkedIn: <a href="https://bd.linkedin.com/in/md-jalal-uddin-80a026b0" target="_blank">https://bd.linkedin.com/in/md-jalal-uddin-80a026b0</a> <br>Twitter: dmjalal90 <br>Skype: dmjalal90</font><br></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 clear="all"><div><br></div>-- <br><div dir="ltr" class="m_-1207185970019396209m_-2081371336318008970m_176085375801555576gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font color="#000000" size="2"><b>Md. Jalal Uddin</b></font></div><div dir="ltr">MSc in Applied Meteorology (English Language)<br>Nanjing University of Information, Science and Technology, China</div><div dir="ltr"><span style="letter-spacing:0.2px">B.Sc. in Disaster Management (Hons.) </span><br></div><div dir="ltr"><span style="letter-spacing:0.2px">Patuakhali Science and Technology University, Bangladesh.</span></div><div dir="ltr">Cell: +8613260859092, <span style="letter-spacing:0.2px">+8801792052662</span></div><div dir="ltr"><font size="2">Web: <a href="http://www.dmjalal90.weebly.com" target="_blank">www.dmjalal90.weebly.com</a> <br>Facebook: jalal.hossen.39 <br>LinkedIn: <a href="https://bd.linkedin.com/in/md-jalal-uddin-80a026b0" target="_blank">https://bd.linkedin.com/in/md-jalal-uddin-80a026b0</a> <br>Twitter: dmjalal90 <br>Skype: dmjalal90</font><br></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>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_-1207185970019396209gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font color="#000000" size="2"><b>Md. Jalal Uddin</b></font></div><div dir="ltr">MSc in Applied Meteorology (English Language)<br>Nanjing University of Information, Science and Technology, China</div><div dir="ltr"><span style="letter-spacing:0.2px">B.Sc. in Disaster Management (Hons.) </span><br></div><div dir="ltr"><span style="letter-spacing:0.2px">Patuakhali Science and Technology University, Bangladesh.</span></div><div dir="ltr">Cell: +8613260859092, <span style="letter-spacing:0.2px">+8801792052662</span></div><div dir="ltr"><font size="2">Web: <a href="http://www.dmjalal90.weebly.com" target="_blank">www.dmjalal90.weebly.com</a> <br>Facebook: jalal.hossen.39 <br>LinkedIn: <a href="https://bd.linkedin.com/in/md-jalal-uddin-80a026b0" target="_blank">https://bd.linkedin.com/in/md-jalal-uddin-80a026b0</a> <br>Twitter: dmjalal90 <br>Skype: dmjalal90</font><br></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>