<div dir="ltr">Thank you very much for your answer and recommendations. <br><div><br></div><div>Best regards, </div><div>Lara</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El mar., 4 jun. 2019 a las 5:05, Rick Brownrigg (<<a href="mailto:brownrig@ucar.edu">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 Lara,</div><div><br></div><div>There are a number of approaches, and not knowing the specifics, its hard to know how to advise best:</div><div><br></div><div>- if "print"ing is otherwise working for you, and there are no other superfluous print statements in the script, perhaps something like "ncl -Q myscript.ncl >myAsciiFile.txt" (The -Q suppresses the printing of the version and copyright info).</div><div><br></div><div>- Alternatively, create a NetCDF file from the GRIB file, and then use ncdump or some other NetCDF tool to dump the contents. Creating NetCDF from NCL is pretty easy:</div><div><br></div><div> <a href="http://ncl.ucar.edu/Applications/list_io.shtml" target="_blank">http://ncl.ucar.edu/Applications/list_io.shtml</a></div><div><br></div><div>- Finally, if the files are fairly large in binary form, they will of course be considerably larger in ASCII form: i) NCL's string handling in the face of large amounts of string data is notoriously bad, ii) reading large amounts of ASCII data can be slow, iii) is there a good reason to prefer ASCII over, say, NetCDF (its an honest question -- if the answer is "yes", then yes!).</div><div><br></div><div>Hope that helps...</div><div>Rick<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 3, 2019 at 5:29 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">Hi, <div><br></div><div>I have just verified it. I have all permits on that directory: drwxrwxrwx</div><div><br></div><div>I will continue working on it. </div><div><br></div><div>Thanks a lot. </div><div><br></div><div>Best regards, </div><div>Lara</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El lun., 3 jun. 2019 a las 13:23, Lyndz (<<a href="mailto:olagueralyndonmark429@gmail.com" target="_blank">olagueralyndonmark429@gmail.com</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">Hi,<div><br></div><div>Maybe yes (that it is related to the memory issue of your PC) or it could be something else. Check if you have a write access to the grib files or the location where you are saving the text files. </div><div><br></div><div>---</div><div>Lyndz</div><div><div><div dir="ltr" class="gmail-m_484075553762662585gmail-m_-9023709154766615629gmail-m_5489277090106271735gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br><div><br></div></div></div></div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 3, 2019 at 7:32 PM 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">Hi!<div><br></div><div>I did not know that command! Thanks a lot. But I'm afraid I have another problem. I received this error message: "Segmentation fault (core dumped)". It seems to be a memory problem. What should I do?</div><div>Each file has a 223MB size. It isn't so much, isn't it?</div><div><br></div><div>Best regards, </div><div>Lara</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El lun., 3 jun. 2019 a las 11:57, Lyndz (<<a href="mailto:olagueralyndonmark429@gmail.com" target="_blank">olagueralyndonmark429@gmail.com</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><div dir="ltr" class="gmail-m_484075553762662585gmail-m_-9023709154766615629gmail-m_5489277090106271735gmail-m_3833589138975925128gmail-m_-972347147500917362gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi,</div><div dir="ltr"><br></div><div dir="ltr">If I got your question correctly, I think you dont need to read the file.</div><div dir="ltr"><br></div><div>ncl_filedump <font color="#073763">PFHARMOPHELIA+0084.grib > </font><span style="color:rgb(7,55,99)">PFHARMOPHELIA+</span><span style="color:rgb(7,55,99)">0084.txt</span></div><div><span style="color:rgb(7,55,99)"><br></span></div><div><span style="color:rgb(7,55,99)">-----</span></div><div><span style="color:rgb(7,55,99)"><br></span></div><div>Lyndz</div></div></div></div></div></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 3, 2019 at 4:53 PM 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">Good morning, <div><br></div><div>I'm working with a specific model output file (grib format). I would like to write all the available variables of my input file on an ASCII file. Could you please help me with the function that does that?<br><br>I'm now using the print() function but it would be easier to have the ASCII file saved on my computer. <br></div><div><font color="#073763"><br></font></div><div><i><font color="#073763">; read file<br>;************************************************<br>file = addfile("../PFHARMOPHELIA+0084.grib", "r")<br>print(file)</font></i><br></div><div><br></div><div>Thanks in advance. </div><div>Best regards</div><div><br></div><div>Lara<br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_484075553762662585gmail-m_-9023709154766615629gmail-m_5489277090106271735gmail-m_3833589138975925128gmail-m_-972347147500917362gmail-m_-6287197074353731150gmail_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_484075553762662585gmail-m_-9023709154766615629gmail-m_5489277090106271735gmail-m_3833589138975925128gmail_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>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_484075553762662585gmail-m_-9023709154766615629gmail_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>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_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>