<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Dear Nitin,<div class="">if your goal it’s just to plot with a reverse axis why can’t you do everything in NCL without writing another file? However, if the variables are&nbsp;emiss_dom(time,lat,lon) I would do this:</div><div class=""><div class=""><br class=""></div><div class=""><font face="Menlo" class="">begin</font></div><div class=""><font face="Menlo" class=""><br class=""></font></div><div class=""><font face="Menlo" class="">in1=addfile("emiss_2000_BC_T63.nc",&nbsp;“r")</font></div><div class=""><font face="Menlo" class="">in2=addfile("emiss_aerocom_II_BC_anthro_2000_T63_ori.nc", "w")</font></div><div class=""><font face="Menlo" class="">&nbsp; &nbsp; &nbsp;&nbsp;</font></div><div class=""><font face="Menlo" class="">dum=in1-&gt;emiss_dom</font></div><div class=""><font face="Menlo" class="">in2-&gt;dum(:,::-1,:)</font></div><div class=""><br class=""></div><div class=""><font face="Menlo" class="">(…)</font></div></div><div class=""><br class=""><div class="">Please note that there is no need to use the “w” option if you are only reading in1. However, I think that this script will give you some trouble, because I don’t know how is the file in2 written. &nbsp;Trying to modify the order of variable in a file that is already defined it’s not really a good thing :)&nbsp;</div><div class="">What you should do instead is to create a new file and then populate it with the new data:</div><div class=""><a href="https://www.ncl.ucar.edu/Applications/o-netcdf.shtml" class="">https://www.ncl.ucar.edu/Applications/o-netcdf.shtml</a></div><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class="Apple-interchange-newline">Guido Cioni</div><div class=""><a href="http://guidocioni.altervista.org" class="">http://guidocioni.altervista.org</a>&nbsp;</div><div class=""><br class=""></div></div><br class="Apple-interchange-newline" style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br class="Apple-interchange-newline"></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">Il giorno 08 dic 2015, alle ore 07:50, Nitin Patil &lt;<a href="mailto:nitinpatil85@gmail.com" class="">nitinpatil85@gmail.com</a>&gt; ha scritto:</div><br class="Apple-interchange-newline"><div class=""><span id="cid:58524047-39E3-4A51-A601-1D49C603E495@mpi.zmaw.de">&lt;new.ncl&gt;</span></div></blockquote></div><br class=""></div></body></html>