<div dir="ltr"><div>Zoe:</div><div><br></div><div>Attached is a simple script that reads/plot the hdf5 [HDF-EOS] file<br></div><div>---<br></div><div>If you are 'new' to NCL, please look at the excellent DKRZ manual:<br></div><div> <a href="https://www.ncl.ucar.edu/Document/Manuals/NCL_User_Guide/NCL_User_Guide_v1.1_A4.pdf" target="_blank"><b>https://www.ncl.ucar.edu/Document/Manuals/NCL_User_Guide/NCL_User_Guide_v1.1_A4.pdf</b></a></div><div><br></div><div>There is no 'magic': all languages [computer and spoken] require the user to spend time to learn.<br></div><div>---</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 9, 2019 at 7:56 AM Toni Klemm via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">Hi Zoe,<div><br></div><div>Could you send your new script with the changes I suggested. Although I’ve never worked with HDF data, it should have worked.</div><div><br></div><div>The file you sent contains the variable <span style="font-family:Courier;background-color:rgb(148,228,254)">Deep_Blue_Aerosol_Optical_Depth_550_Land_Mean</span>, which you are extracting in line 9 of your original code. </div><div><br></div><div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier"><span> short Deep_Blue_Aerosol_Optical_Depth_550_Land_Mean(YDim=180, XDim=360);</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier"><span style="font-kerning:none"> :valid_range = 0S, 5000S; // short</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier"><span style="font-kerning:none"> :_FillValue = -9999S; // short</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier"><span style="background-color:rgb(148,228,254)"> :long_name = "Deep blue aerosol optical depth at 0.55 microns for land (corrected): Mean";</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier"><span style="font-kerning:none"> :units = "none";</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier"><span style="font-kerning:none"> :scale_factor = 0.0010000000474974513; // double</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier"><span style="font-kerning:none"> :add_offset = 0.0; // double</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier"><span style="font-kerning:none"> :Masked_With_QA_Usefulness_Flag = "True";</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier"><span style="font-kerning:none"> :Level_2_Pixel_Values_Read_As = "Real";</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier"><span style="font-kerning:none"> :Derived_From_Level_2_Data_Set = "Deep_Blue_Aerosol_Optical_Depth_550_Land";</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier"><span style="font-kerning:none"> :Included_Level_2_Nighttime_Data = "False";</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier"><span style="font-kerning:none"> :Quality_Assurance_Data_Set = "Quality_Assurance_Land";</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier"><span style="font-kerning:none"> :Statistic_Type = "Simple";</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier"><span style="font-kerning:none"> :QA_Byte = 4S; // short</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier"><span style="font-kerning:none"> :QA_Useful_Flag_Bit = 0S; // short</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier"><span style="font-kerning:none"> :QA_Value_Start_Bit = 1S; // short</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier"><span style="font-kerning:none"> :QA_Value_Num_Bits = 2S; // short</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier"><span style="font-kerning:none"> :Aggregation_Data_Set = "None";</span></div></div><div><span style="font-kerning:none"><br></span></div><div>The variable has a number of attributes, which you see above, the third of which is <span style="font-family:Courier;background-color:rgb(148,228,254)">long_name</span>. That is what NCL uses to determine the title of your map, unless you tell it something else, for example by setting </div><div><br></div><div><div><span style="background-color:rgb(148,228,254)"><font face="Courier">res@tiMainString = </font><span style="font-family:Courier">“[your custom map title]</span><span style="font-family:Courier">"</span></span></div></div><div><br></div><div>Make sure there is no semicolon in front of <span style="font-family:Courier">res@tiMainString</span> !</div><div><br></div><div>If it still doesn’t work, please attach your script, and I can take a look what is wrong. </div><div><br></div><div>Also, check out Panoply (<a href="https://www.giss.nasa.gov/tools/panoply/" target="_blank">https://www.giss.nasa.gov/tools/panoply/</a>) to view your HDF files and all the metadata and attributes (and netCDF files, too) It’s a great program and has helped me a lot figuring out problems with my data.</div><div><br></div><div>Good luck,</div><div>Toni</div><div><div>
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div><br><br><b>Toni Klemm, Ph.D.<br></b>Postdoctoral Research Associate<br>Department of Ecosystem Science and Management<br>College of Agriculture and Life Sciences<br>Texas A&M University, College Station, TX<br><a href="http://www.toni-klemm.de" target="_blank">www.toni-klemm.de</a> | <a href="http://www.twitter.com/toniklemm" target="_blank">@toniklemm</a><br>Editorial Board member, <a href="http://www.eccforum.org" target="_blank">Early Career Climate Forum</a><br><br><br><br><br><br><br><br></div></div></div></div>
</div>
<div><br><blockquote type="cite"><div>On Sep 8, 2019, at 4:03 PM, zoe jacobs <<a href="mailto:zoejacobs1990@gmail.com" target="_blank">zoejacobs1990@gmail.com</a>> wrote:</div><br class="gmail-m_407325509754590808Apple-interchange-newline"><div><div dir="ltr">Dear Toni, <div><div>Please check the attached file.</div><div>Best wishes,</div></div><div><div class="gmail_chip gmail_drive_chip" style="width:396px;height:18px;max-height:18px;background-color:rgb(245,245,245);padding:5px;color:rgb(34,34,34);font-family:arial;font-style:normal;font-weight:bold;font-size:13px;border:1px solid rgb(221,221,221);line-height:1"><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__drive.google.com_file_d_1JUtlZ7FFggSaPd5IosGMDBOmbF1YcfeN_view-3Fusp-3Ddrive-5Fweb&d=DwMFaQ&c=u6LDEWzohnDQ01ySGnxMzg&r=zmhRVp0i4wZ5_1Ujh0fnRXAExHgKLTQu0rZLW7PxKA4&m=UsnBcgdnIR3NL175E-6P7QWpWE7wKOO9TXnYD8t44QI&s=JyjJcvay9k7mR_eBhQONqhQn2N02piSnWG1cYoF7UDU&e=" style="display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;padding:1px 0px;border:medium none;width:100%" target="_blank"><img style="vertical-align: bottom; border: medium none;" src="https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png"> <span dir="ltr" style="color:rgb(17,85,204);text-decoration:none;vertical-align:bottom">01-01.hdf</span></a></div><div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 9, 2019 at 12:56 AM Toni Klemm <<a href="mailto:toni-klemm@tamu.edu" target="_blank">toni-klemm@tamu.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Could you attach your netCDF file if it’s not too big? Also, please also respond to <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a> so that the conversation is archived for future reference.<div><br></div><div>Toni<br><div>
<div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="font-family:Calibri;font-size:14px;font-style:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="background-color:rgb(255,255,255)"><font><br class="gmail-m_407325509754590808gmail-m_-5043041822023189143gmail-m_-5225214817975201404Apple-interchange-newline"><font color="#333300"><br></font></font></span></div><div style="font-family:Calibri;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><font color="#333300"><b style="background-color:rgb(255,255,255)">Toni Klemm</b><b><span style="background-color:rgb(255,255,255)">, </span><span style="background-color:rgb(255,255,255)">Ph.D.</span></b></font><div><div><span style="background-color:rgb(255,255,255)"><font color="#333300">Postdoctoral Research Associate</font></span></div><div><span style="background-color:rgb(255,255,255)"><font color="#333300">Department of Ecosystem Science and Management</font></span></div><div><span style="background-color:rgb(255,255,255)"><font color="#333300">College of Agriculture and Life Sciences</font></span></div><div><span style="background-color:rgb(255,255,255)"><font color="#333300">Texas A&M University, College Station, TX</font></span></div><div><span style="color:rgb(51,51,153);background-color:rgb(255,255,255)"><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.toni-2Dklemm.de_&d=DwMFaQ&c=u6LDEWzohnDQ01ySGnxMzg&r=zmhRVp0i4wZ5_1Ujh0fnRXAExHgKLTQu0rZLW7PxKA4&m=UsnBcgdnIR3NL175E-6P7QWpWE7wKOO9TXnYD8t44QI&s=OPWK3YEYM3ciFs1ObreyjdHO1Wkv43QCVjWgI3V2xNQ&e=" target="_blank">www.toni-klemm.de</a> | </span><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__twitter.com_ToniKlemm&d=DwMFaQ&c=u6LDEWzohnDQ01ySGnxMzg&r=zmhRVp0i4wZ5_1Ujh0fnRXAExHgKLTQu0rZLW7PxKA4&m=UsnBcgdnIR3NL175E-6P7QWpWE7wKOO9TXnYD8t44QI&s=KUlUjvom6bloeTRmtIELV_mWMAA_MVxqyHQhj7_1ca0&e=" target="_blank">@toniklemm</a></div></div><div>Editorial Board member, <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.eccforum.org_&d=DwMFaQ&c=u6LDEWzohnDQ01ySGnxMzg&r=zmhRVp0i4wZ5_1Ujh0fnRXAExHgKLTQu0rZLW7PxKA4&m=UsnBcgdnIR3NL175E-6P7QWpWE7wKOO9TXnYD8t44QI&s=sRvWLTsJ-deu-64UBXdoeH0NYUaZnYVNNrTmSz9EYzM&e=" target="_blank">Early Career Climate Forum</a></div><div><br></div><div><br></div></div></div></div></div></div></div></div></div></div><br class="gmail-m_407325509754590808gmail-m_-5043041822023189143gmail-m_-5225214817975201404Apple-interchange-newline">
</div>
<div><br><blockquote type="cite"><div>On Sep 8, 2019, at 3:14 PM, zoe jacobs <<a href="mailto:zoejacobs1990@gmail.com" target="_blank">zoejacobs1990@gmail.com</a>> wrote:</div><br class="gmail-m_407325509754590808gmail-m_-5043041822023189143gmail-m_-5225214817975201404Apple-interchange-newline"><div><div dir="ltr">Dear Toni,<div>Thank you for your advice. But, it did not work. NCL derives the title automatically from the file and I do not know how! </div><div>best wishes,</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Sep 8, 2019 at 11:18 PM Toni Klemm <<a href="mailto:toni-klemm@tamu.edu" target="_blank">toni-klemm@tamu.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hi Zoe,<div><br></div><div>Remove the semicolon at the beginning of this line in your script:</div><div><br></div><div><font face="Courier">; res@tiMainString = "Deep blue aerosol optical depth”</font></div><div><br></div><div>and replace that line with:</div><div><br></div><div><font face="Courier">res@tiMainString = </font><span style="font-family:Courier">"</span><span style="font-family:Courier">"</span></div><div><br></div><div>This way the map title should be blank.</div><div><br></div><div>As a side note, if no map or plot title is explicitly provided in the script, NCL defaults to what is written in the metadata field <font face="Courier">long_name</font>.</div><div><br></div><div>Good luck,</div><div>Toni</div><div><div>
<div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div dir="auto" style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="font-family:Calibri;font-size:14px;font-style:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="background-color:rgb(255,255,255)"><font><br class="gmail-m_407325509754590808gmail-m_-5043041822023189143gmail-m_-5225214817975201404gmail-m_-8874820467676001495Apple-interchange-newline"><font color="#333300"><br></font></font></span></div><div style="font-family:Calibri;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><font color="#333300"><b style="background-color:rgb(255,255,255)">Toni Klemm</b><b><span style="background-color:rgb(255,255,255)">, </span><span style="background-color:rgb(255,255,255)">Ph.D.</span></b></font><div><div><span style="background-color:rgb(255,255,255)"><font color="#333300">Postdoctoral Research Associate</font></span></div><div><span style="background-color:rgb(255,255,255)"><font color="#333300">Department of Ecosystem Science and Management</font></span></div><div><span style="background-color:rgb(255,255,255)"><font color="#333300">College of Agriculture and Life Sciences</font></span></div><div><span style="background-color:rgb(255,255,255)"><font color="#333300">Texas A&M University, College Station, TX</font></span></div><div><span style="color:rgb(51,51,153);background-color:rgb(255,255,255)"><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.toni-2Dklemm.de_&d=DwMFaQ&c=u6LDEWzohnDQ01ySGnxMzg&r=zmhRVp0i4wZ5_1Ujh0fnRXAExHgKLTQu0rZLW7PxKA4&m=UTWVYnFKZ8Q2Yv4W6_804zllkROE5jc4YQDSxEiV7bo&s=1C0Kr40EBujBrul5R_nhNwVSQ8In7Bb-iTGHTQfEooo&e=" target="_blank">www.toni-klemm.de</a> | </span><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__twitter.com_ToniKlemm&d=DwMFaQ&c=u6LDEWzohnDQ01ySGnxMzg&r=zmhRVp0i4wZ5_1Ujh0fnRXAExHgKLTQu0rZLW7PxKA4&m=UTWVYnFKZ8Q2Yv4W6_804zllkROE5jc4YQDSxEiV7bo&s=Q9Wyvz-XcEd96oXOQz-5kJ8lV2M83wI48IiWXOd3KlI&e=" target="_blank">@toniklemm</a></div></div><div>Editorial Board member, <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.eccforum.org_&d=DwMFaQ&c=u6LDEWzohnDQ01ySGnxMzg&r=zmhRVp0i4wZ5_1Ujh0fnRXAExHgKLTQu0rZLW7PxKA4&m=UTWVYnFKZ8Q2Yv4W6_804zllkROE5jc4YQDSxEiV7bo&s=_IMTKMzkAj7om4knQYkX4SPyy_RjKKY6Qa91Ip05V6I&e=" target="_blank">Early Career Climate Forum</a></div><div><br></div><div><br></div></div></div></div></div></div></div></div></div></div><br class="gmail-m_407325509754590808gmail-m_-5043041822023189143gmail-m_-5225214817975201404gmail-m_-8874820467676001495Apple-interchange-newline">
</div>
<div><br><blockquote type="cite"><div>On Sep 8, 2019, at 1:34 PM, zoe jacobs via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>> wrote:</div><br class="gmail-m_407325509754590808gmail-m_-5043041822023189143gmail-m_-5225214817975201404gmail-m_-8874820467676001495Apple-interchange-newline"><div><div dir="ltr">Hi all,<div>I have plotted AOD [ Aerosol Optical Depth], from MODIS data (hdf file). However, I need to remove the title on my map ( the image attached). Would you please give me suggestions on how to remove the title? I also attached my script.</div><div>Best wishes,</div></div>
<span id="gmail-m_407325509754590808gmail-m_-5043041822023189143gmail-m_-5225214817975201404gmail-m_-8874820467676001495cid:f_k0bbe2c90"><a_modis.png></span><span id="gmail-m_407325509754590808gmail-m_-5043041822023189143gmail-m_-5225214817975201404gmail-m_-8874820467676001495cid:f_k0bbejzr1"><aod-modis.ncl></span>_______________________________________________<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="https://urldefense.proofpoint.com/v2/url?u=http-3A__mailman.ucar.edu_mailman_listinfo_ncl-2Dtalk&d=DwICAg&c=u6LDEWzohnDQ01ySGnxMzg&r=zmhRVp0i4wZ5_1Ujh0fnRXAExHgKLTQu0rZLW7PxKA4&m=c977kCbW5XgIWAVaYwrsuObLHJRSNx_W6C9EWccIlvg&s=Bs-os1nWvYnqVIl324moV7Uds-QIg5bxnOk39RjKu1U&e=" target="_blank">https://urldefense.proofpoint.com/v2/url?u=http-3A__mailman.ucar.edu_mailman_listinfo_ncl-2Dtalk&d=DwICAg&c=u6LDEWzohnDQ01ySGnxMzg&r=zmhRVp0i4wZ5_1Ujh0fnRXAExHgKLTQu0rZLW7PxKA4&m=c977kCbW5XgIWAVaYwrsuObLHJRSNx_W6C9EWccIlvg&s=Bs-os1nWvYnqVIl324moV7Uds-QIg5bxnOk39RjKu1U&e=</a> </div></blockquote></div><br></div></div></blockquote></div>
</div></blockquote></div><br></div></div></blockquote></div>
</div></blockquote></div><br></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></blockquote></div>