<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>[1] From an NCL perspective, there is <b>no need </b>to convert the Grib file to netCDF. Read the Grib file directly within an NCL script. <br></div><div><br></div><div> dirg = "/Volumes/MyPassport/harmonie/Ophelia/output/" <br> filg = "fc2017100612+006.grb"<br> pthg = dirg+filg<br> fg = <b>addfile</b>(pthg,"r")<br> ;print(fg) ; same as: ncl_filedump fc2017100612+006.grb <br><br>;---Extract desired variable<br><br><b> varName = "SHTFL_GDS3_HTGL_acc6h"<br> x = fg->$varName$</b><br><br></div><div><br></div><div>[2] As with WRF data which you used before, variable on curvilinear grids must use <br></div><div><br></div><div> x@lat2d = ....</div><div> x@lon2d = ...</div><div> <br></div><div> See attached. <br></div><div><br></div><div>============<br></div><div>[3] If for some reason you want the <b>whole file</b> converted to netCDF, use:</div><div><br></div><div><b>%></b> <a href="https://www.ncl.ucar.edu/Document/Tools/ncl_convert2nc.shtml"><b>ncl_convert2nc</b></a> fc2017100612+006.grb</div><div><br></div><div>If you want an explicit 'time' dimension, add the 'itime' option<br></div><div><br></div><div><pre><span style="font-family:arial,helvetica,sans-serif"><b>%></b> <a href="https://www.ncl.ucar.edu/Document/Tools/ncl_convert2nc.shtml"><b>ncl_convert2nc</b></a> fc2017100612+006.grb</span> <span style="color:rgb(0,0,255)"><b>-itime</b></span></pre></div><div><br></div><div>[3] If you want selected variable subset use:</div><div><br></div><div>%> <b>ncl_convert2nc </b>fc2017100612+006.grb -<span style="color:rgb(0,0,255)"><b>v SHTFL_GDS3_HTGL_acc6h,g3_lat_0,g3_lon_1</b></span><br></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 6, 2019 at 9:32 AM Lara Quitián Hernández <<a href="mailto:laraquitianhernandez@gmail.com">laraquitianhernandez@gmail.com</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 dir="ltr">Hi, <div><br></div><div>Of course, I send you the file.</div><div><br></div><div>I'm thinking that maybe the problem is the wrong conversion from the grib file to the NetCDF file. </div><div>So, I also send you the grib file and the script I have used to carry out that conversion.</div><div><div><br class="gmail-m_221308222276767091gmail-Apple-interchange-newline">Thank you so much. </div><div><br></div><div>Regards, </div><div>Lara</div><br class="gmail-m_221308222276767091gmail-Apple-interchange-newline"></div><div class="gmail_chip gmail_drive_chip" style="width:396px;height:18px;max-height:18px;background-color:rgb(245,245,245);padding:5px;font-family:arial;font-weight:bold;font-size:13px;border:1px solid rgb(221,221,221);line-height:1"><a href="https://drive.google.com/file/d/1orn2uzzyLyndUkwENHHBypjAQw18u4uN/view?usp=drive_web" style="display:inline-block;max-width:366px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration-line:none;padding:1px 0px;border:medium none" 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="vertical-align:bottom;text-decoration:none">fc2017100612+006.grb</span></a><img style="opacity: 0.55; float: right; display: none;"></div><div class="gmail_chip gmail_drive_chip" style="width:396px;height:18px;max-height:18px;background-color:rgb(245,245,245);padding:5px;font-family:arial;font-weight:bold;font-size:13px;border:1px solid rgb(221,221,221);line-height:1"><a href="https://drive.google.com/file/d/1Df6twhGWbE5jcdeIzMBROhOaEIDonmBh/view?usp=drive_web" style="display:inline-block;max-width:366px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration-line:none;padding:1px 0px;border:medium none" 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="vertical-align:bottom;text-decoration:none">fc2017100612+006.nc</span></a><img style="opacity: 0.55; float: right; display: none;"></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El mié., 6 mar. 2019 a las 17:23, Rick Brownrigg (<<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@ucar.edu</a>>) escribió:<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 dir="ltr"><div>Hi,</div><div><br></div><div>Its really difficult to say, based upon the information available. What makes you say the map is not correctly registered? Are you able to send me you data set?</div><div><br></div><div>Rick</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 6, 2019 at 9:17 AM Lara Quitián Hernández <<a href="mailto:laraquitianhernandez@gmail.com" target="_blank">laraquitianhernandez@gmail.com</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 dir="ltr"><div>Good afternoon, <div><br></div><div>I'm trying to plot <span class="gmail-m_221308222276767091gmail-m_5683665089998562187gmail-m_1714610562862997953gmail-gr_ gmail-m_221308222276767091gmail-m_5683665089998562187gmail-m_1714610562862997953gmail-gr_53 gmail-m_221308222276767091gmail-m_5683665089998562187gmail-m_1714610562862997953gmail-gr-alert gmail-m_221308222276767091gmail-m_5683665089998562187gmail-m_1714610562862997953gmail-gr_gramm gmail-m_221308222276767091gmail-m_5683665089998562187gmail-m_1714610562862997953gmail-gr_inline_cards gmail-m_221308222276767091gmail-m_5683665089998562187gmail-m_1714610562862997953gmail-gr_run_anim gmail-m_221308222276767091gmail-m_5683665089998562187gmail-m_1714610562862997953gmail-Grammar gmail-m_221308222276767091gmail-m_5683665089998562187gmail-m_1714610562862997953gmail-multiReplace" id="gmail-m_221308222276767091gmail-m_5683665089998562187gmail-m_1714610562862997953gmail-53" style="display:inline;border-bottom:2px solid transparent;background-repeat:no-repeat">a NetCDF ECMWF</span> variable (surface heat flux), but I am obtaining the field values and geophysical contours situated in different places. I have tried to modify the projection and other map issues, but I'm not able to fix it. </div><div><br></div><div>¿Could anyone help me?</div><div><br></div><div><div>I enclose the obtained figure and a summary of the variable's info.</div><br class="gmail-m_221308222276767091gmail-m_5683665089998562187gmail-m_1714610562862997953gmail-Apple-interchange-newline"></div><div>Thanks in advance. </div><div><br></div><div>Best regards, </div><div>Lara</div><div><br class="gmail-m_221308222276767091gmail-m_5683665089998562187gmail-m_1714610562862997953gmail-Apple-interchange-newline"></div></div><div><img src="cid:ii_jsxejo1o1" alt="Captura de pantalla 2019-03-06 a las 17.13.46.png" class="gmail-m_221308222276767091gmail-m_5683665089998562187gmail-m_1714610562862997953CToWUd gmail-m_221308222276767091gmail-m_5683665089998562187gmail-m_1714610562862997953a6T" width="562" height="396"><br></div><div><img src="cid:ii_jsxed9y50" alt="SHF2_Ophelia_10-06-2017(12+)_3.png" width="516" height="516"><br></div><div><div><br></div>-- <br><div dir="ltr" class="gmail-m_221308222276767091gmail-m_5683665089998562187gmail-m_1714610562862997953gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><img src="https://docs.google.com/uc?export=download&id=0B5glieJcogGocjdGWHA3NWIwdmc&revid=0B5glieJcogGocU45NUpENzV4UWhCWk9tb1ZGdXB5MEtGYjJjPQ"><br><div><br></div><div><div><b><font color="#000000"><span style="font-size:12.8px">Lara Quitián Hernández, </span></font><span style="color:rgb(0,0,0);font-size:12.8px">PhD Student</span></b><font color="#000000"><b><br style="font-size:12.8px"></b><div><span style="font-size:12.8px">Department of Earth Physics and Astrophysics</span></div><div><span style="font-size:12.8px">Faculty of Physical Sciences</span></div><span style="font-size:13px">Ciudad Universitaria, Plaza Ciencias, 1</span></font></div><div><font color="#000000"><span style="font-size:12.8px">28040 Madrid. Spain</span><br style="font-size:12.8px"><span style="font-size:12.8px">Email: </span><a href="mailto:mlunar@aemet.es" style="font-size:12.8px" target="_blank">lquitian@ucm.es</a></font></div></div><div><br></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="gmail-m_221308222276767091gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><img src="https://docs.google.com/uc?export=download&id=0B5glieJcogGocjdGWHA3NWIwdmc&revid=0B5glieJcogGocU45NUpENzV4UWhCWk9tb1ZGdXB5MEtGYjJjPQ"><br><div><br></div><div><div><b><font color="#000000"><span style="font-size:12.8px">Lara Quitián Hernández, </span></font><span style="color:rgb(0,0,0);font-size:12.8px">PhD Student</span></b><font color="#000000"><b><br style="font-size:12.8px"></b><div><span style="font-size:12.8px">Department of Earth Physics and Astrophysics</span></div><div><span style="font-size:12.8px">Faculty of Physical Sciences</span></div><span style="font-size:13px">Ciudad Universitaria, Plaza Ciencias, 1</span></font></div><div><font color="#000000"><span style="font-size:12.8px">28040 Madrid. Spain</span><br style="font-size:12.8px"><span style="font-size:12.8px">Email: </span><a href="mailto:mlunar@aemet.es" style="font-size:12.8px" target="_blank">lquitian@ucm.es</a></font></div></div><div><br></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>