<html><head></head><body><div class="ydpceecd72eyahoo-style-wrap" style="font-family:bookman old style, new york, times, serif;font-size:16px;"><div><div dir="ltr" data-setdir="false">Dear Setareh,</div><div dir="ltr" data-setdir="false"><div><div>I suggest you read the variables from the fout file again. For example, if there is a variable named "V10" in fout, you just need to read that variable from fout, as follows:</div><div>V10_zero=fout->V10</div><div><br></div><div>This V10_zero has the same coordinates as V10 in the original file, but its values are zero.</div><div>I hope this is correct.</div></div></div><div dir="ltr" data-setdir="false"><i style="font-family: old times, serif;"><font size="2"><br></font></i></div><div dir="ltr" data-setdir="false"><i style="font-family: old times, serif;"><font size="2">-----------------------------------------------------------------------------</font></i><br></div><div class="ydpceecd72esignature"><div dir="ltr" style="font-family:old times, serif;font-size:16px;"><div><div dir="ltr" style="color:rgb(0, 0, 0);font-family:old times, serif;font-size:16px;"><i><font size="2">Sincerely,</font></i></div><div dir="ltr" style="color:rgb(0, 0, 0);font-family:old times, serif;font-size:16px;"><i><font size="2">Ehsan Taghizade<br></font></i></div></div><br></div></div></div>
<div><br></div><div><br></div>
</div><div id="yahoo_quoted_6819469700" class="yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
On Thursday, January 25, 2024 at 06:17:12 PM GMT+3:30, Setareh Rahimi via ncl-talk <ncl-talk@mailman.ucar.edu> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div id="yiv5053542009"><div><div>Dear Dennis,</div><div>I noticed an issue. When I use the attached script it converts all values to zero, but the data is no georefrenced any more. So how can I fix this please?</div><div>Thanks in advance.</div><div>Best regards, <br clear="all"><br clear="all"><div><div dir="ltr" class="yiv5053542009gmail_signature">S.Rahimi<br clear="none"><br clear="none"></div></div></div><div><br clear="none"></div><div id="yiv5053542009yqt39142" class="yiv5053542009yqt2455004915"><div><br clear="none"><div class="yiv5053542009gmail_quote"><div dir="ltr" class="yiv5053542009gmail_attr">On Sun, Jan 21, 2024 at 18:44 Dennis Shea <<a rel="nofollow noopener noreferrer" shape="rect" ymailto="mailto:shea@ucar.edu" target="_blank" href="mailto:shea@ucar.edu">shea@ucar.edu</a>> wrote:<br clear="none"></div><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;" class="yiv5053542009gmail_quote"><div dir="ltr"><div>Attached is a script that does what you requested.</div><div><br clear="none"></div></div><br clear="none"><div class="yiv5053542009gmail_quote"></div><div class="yiv5053542009gmail_quote"><div dir="ltr" class="yiv5053542009gmail_attr">On Sat, Jan 20, 2024 at 6:40 AM Setareh Rahimi via ncl-talk <<a rel="nofollow noopener noreferrer" shape="rect" ymailto="mailto:ncl-talk@mailman.ucar.edu" target="_blank" href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</a>> wrote:<br clear="none"></div></div><div class="yiv5053542009gmail_quote"><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;" class="yiv5053542009gmail_quote"></blockquote></div><div class="yiv5053542009gmail_quote"><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;" class="yiv5053542009gmail_quote"><div dir="ltr"><br clear="all"><div>Dear NCL users,</div><div><br clear="none"></div><div>I have a NetCDF file (attached) that contains some variables. I would like to change the values of all variables to zero for all grid points. So how can I do this using NCL, please?</div><div><br clear="none"></div><div>This file is an input file for the WRF-Chem model, and I do not want to change the format of the file, only want to change the values to zero.</div><div><br clear="none"></div><div>Please kindly advise me in this regard.</div><div><br clear="none"></div><div>Thanks in advance.</div><div>Kind regards,</div><span class="yiv5053542009gmail_signature_prefix">-- </span><br clear="none"><div dir="ltr" class="yiv5053542009gmail_signature">S.Rahimi<br clear="none"><br clear="none"></div></div></blockquote></div><div class="yiv5053542009gmail_quote"><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;" class="yiv5053542009gmail_quote">
_______________________________________________<br clear="none">
ncl-talk mailing list<br clear="none">
<a rel="nofollow noopener noreferrer" shape="rect" ymailto="mailto:ncl-talk@mailman.ucar.edu" target="_blank" href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</a><br clear="none">
List instructions, subscriber options, unsubscribe:<br clear="none">
<a rel="nofollow noopener noreferrer" shape="rect" target="_blank" href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br clear="none">
</blockquote></div>
</blockquote></div></div></div>
</div></div><div class="yqt2455004915" id="yqt55389">_______________________________________________<br clear="none">ncl-talk mailing list<br clear="none"><a shape="rect" ymailto="mailto:ncl-talk@mailman.ucar.edu" href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</a><br clear="none">List instructions, subscriber options, unsubscribe:<br clear="none"><a shape="rect" href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br clear="none"></div></div>
</div>
</div></body></html>