<p dir="ltr">It shouldn't be a problem, along_track is still an integer as dimension... Did you try with the command suggested on the webpage that I sent you? Did you try with CDO, which sometime is smarter with “complicated" files? Otherwise you can try to open the nc file with ncl or fortran and manually modify the name of the dimensions to something more default. </p>
<p dir="ltr">Are you files big? Otherwise I can have a look On them and see what it's working </p>
<div class="gmail_quote">Il 26 apr 2016 8:58 PM, "Andrew Kren - NOAA Affiliate" <<a href="mailto:andrew.kren@noaa.gov">andrew.kren@noaa.gov</a>> ha scritto:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Guido,<div><br></div><div>I tried NCO, but it gave me this error, presumably because my time coordinate is called "along_track" and not "time". Is there a workaround for this?</div></div><div class="elided-text"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 26, 2016 at 11:27 AM, Guido Cioni <span dir="ltr"><<a href="mailto:guidocioni@gmail.com" target="_blank">guidocioni@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Andrew,<div>I would suggest you to merge data together BEFORE reading them into NCL. You can easily do that either with NCO and the command <font face="Menlo">ncrcat</font> (see here <a href="http://research.jisao.washington.edu/data_sets/nco/#example8" target="_blank">http://research.jisao.washington.edu/data_sets/nco/#example8</a>) or using CDO with the <font face="Menlo">merge</font> option (see here for the complete guide <a href="https://www.rsmas.miami.edu/users/rajib/cdo.pdf" target="_blank">https://www.rsmas.miami.edu/users/rajib/cdo.pdf</a>). These methods will work <b>without</b> problems as long as you have a well-defined time coordinate in your files and the vertical levels are always the same. </div><div>Cheers</div><div><div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><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;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div><br>Guido Cioni</div><div><a href="http://guidocioni.altervista.org" target="_blank">http://guidocioni.altervista.org</a> </div><div><br></div></div><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br></div>
</div>
<br><div><blockquote type="cite"><div><div><div>Il giorno 26 apr 2016, alle ore 19:22, Andrew Kren - NOAA Affiliate <<a href="mailto:andrew.kren@noaa.gov" target="_blank">andrew.kren@noaa.gov</a>> ha scritto:</div><br></div></div><div><div><div><div dir="ltr">Dear NCL Talk,<div><br></div><div>I have data that is netcdf format of various aircraft microwave retrievals. These retrievals of temperature, moisture, etc, are in units of (lev,time) in each file. I want to join all of the files together so that I can compare the data to dropsondes. However, when I do the addfiles feature, and grab the data using temp_hamsr = <font face="arial, helvetica, sans-serif">factor*(short2flt(q[:]->ham_airT))-273.15, it gives me this error:</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><div style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif">warning:File /scratch4/BMC/shout/Andrew.Kren/hamsr_data/2011/HS3/L2/HAMSR_L2_20110908T185915_20110909T185423_v01.nc dimension sizes do not conform to others in list; skipping file</font></div><div style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif">warning:A valid instance of variable ham_airT was not found in one or more elements of the file list</font></div><div style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif"><br></font></div><div style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif">I know what this error means after looking it up online and on the NCL help page. It is because my leftmost dimension is not time (level instead), which is required to merge them together. Is there any workaround to do this, like reorder when reading in, with what format my data is in? Basically I want to make my code portable so I can join any number of files for a particular storm case, since not all cases have the same amount of time retrievals.</font></div><div style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif"><br></font></div><div style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif">I also attached an ncl_filedump output of the format of the data I am reading. The along track metadata refers to time dimension in this case. </font></div><div style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif"><br></font></div><div style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif">Thanks,</font></div><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div>Andrew Kren, PhD<br>
Research Scientist I, Global Observing Systems Analysis (GOSA) Group<br>
NOAA ESRL Global Systems Division (Rm 3C515)<br>
325 Broadway, Boulder, CO 80305<br>
<a href="tel:%28303%29%20497-5418" value="+13034975847" target="_blank">(303) 497-5418</a><span><font color="#888888"><br>
</font></span></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div></div>
</div></div><span><format_file.txt></span><span><compare_AVAPS_HAMSR_HS3_2011.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="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br></div></blockquote></div><br></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div>Andrew Kren, PhD<br>
Research Scientist I, Global Observing Systems Analysis (GOSA) Group<br>
NOAA ESRL Global Systems Division (Rm 3C515)<br>
325 Broadway, Boulder, CO 80305<br>
<a href="tel:%28303%29%20497-5418" value="+13034975847" target="_blank">(303) 497-5418</a><span><font color="#888888"><br>
</font></span></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>
</div></blockquote></div>