<html><head></head><body><div class="ydp17851a63yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div><div dir="ltr" data-setdir="false">Sir, I looked at the chat GPT link and found the explanation useful. My code is working with reassignment operator/ </div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Thank you  </div><div dir="ltr" data-setdir="false"><br></div><div><br></div><div class="ydp17851a63signature">Geeta.</div></div>
        <div><br></div><div><br></div>
        
        </div><div id="yahoo_quoted_1953662571" class="yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">
                
                <div>
                    On Thursday, 19 February 2026 at 09:42:12 am IST, Jonathan Vigh <jvigh@ucar.edu> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div id="yiv8983773983"><div><div dir="ltr"><div>Hi Geeta,</div><div><br clear="none"></div><div>I don't know if anyone has replied to you yet. This appears to be a typical programming challenge, in which arrays that are different shapes can't be assigned in NCL. One of your files probably has a different dimension from the others. </div><div><br clear="none"></div><div>Tools like ChatGPT "know" NCL and can be very helpful in explaining what is going on with your code and offering potential solutions. Here's a link to a chat where I simply put the text of your email into it and asked if it could figure out what was going on. It provided a good explanation and solution. </div><div><a rel="nofollow noopener noreferrer" shape="rect" target="_blank" href="https://chatgpt.com/share/69968a1a-b73c-800f-a291-aab0c2136ec0">https://chatgpt.com/share/69968a1a-b73c-800f-a291-aab0c2136ec0</a></div><div><br clear="none"></div><div>I don't recommend using free-tier AI tools to blindly write or patch code for complex tasks, as I've observed them to lose context and lead one around in circles. However, for debugging errors like this, they are often very helpful. As with anything AI, one always needs to carefully check to ensure that the code solution works.</div><div><br clear="none"></div><div>Best regards,</div><div>Jonathan</div><div><br clear="none"></div><div><br clear="none"></div><div><br clear="none"></div><div><div dir="ltr" class="yiv8983773983gmail_signature"><div dir="ltr"><div dir="ltr"><pre><font face="arial, helvetica, sans-serif">Jonathan Vigh                                            
Scientist V, Environmental Resilience Applications Program       
Research Applications Laboratory (RAL)
NSF National Center for Atmospheric Research (NSF NCAR)
P.O. Box 3000                    tel: +1 (303) 497-8205
Boulder, CO 80307-3000   fax: +1 (303) 497-8171
</font><font face="arial, sans-serif"><a rel="nofollow noopener noreferrer" shape="rect" target="_blank" href="http://staff.ral.ucar.edu/jvigh/">Jonathan's Staff Web Page</a> (CV, publications, etc.)
<a rel="nofollow noopener noreferrer" shape="rect" target="_blank" href="http://hurricanes.ral.ucar.edu/">Tropical Cyclone Guidance Project</a> (real-time hurricane data)</font></pre><pre><font face="arial, sans-serif"><a rel="nofollow noopener noreferrer" shape="rect" target="_blank" href="https://verif.rap.ucar.edu/tcdata/">Tropical Cyclone Data Project</a> (FLIGHT+, VDM+, TC-OBS datasets)</font></pre><pre><a rel="nofollow noopener noreferrer" shape="rect" target="_blank" href="https://wxrisk.io/" style="font-family:Arial, Helvetica, sans-serif;"><span style="font-size:11pt;font-family:Arial;color:rgb(17,85,204);background-color:transparent;vertical-align:baseline;white-space:pre-wrap;">HurricaneRiskCalculator®️</span></a><span style="background-color:transparent;font-size:11pt;font-family:Arial;color:rgb(34,34,34);vertical-align:baseline;white-space:pre-wrap;"> (Now available -- Personalized hurricane wind hazard assessments for decision support)</span></pre><pre><br clear="none"></pre>
</div></div></div></div><br clear="none"></div><br clear="none"><div class="yiv8983773983gmail_quote yiv8983773983gmail_quote_container"><div id="yiv8983773983yqt26372" class="yiv8983773983yqt7994180677"><div dir="ltr" class="yiv8983773983gmail_attr">On Mon, Feb 16, 2026 at 2:15 AM Geeta Geeta 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><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;" class="yiv8983773983gmail_quote"><div><div style="font-family:Helvetica, Arial, sans-serif;font-size:13px;"><div dir="ltr">Hi </div><div dir="ltr">I have multiple files (TEXT files) like this </div><div dir="ltr"><div><div><br clear="none"></div><div>Variable: files</div><div>Type: string</div><div>Total Size: 248 bytes</div><div>            31 values</div><div>Number of Dimensions: 1</div><div>Dimensions and sizes:<span>      </span>[31]</div><div>Coordinates: </div><div>(0)<span>        </span>/mnt/c/Users/ACER/Downloads/CELIOMETER/AWOS/AWOSdata/2024/Aug/CLOUD_ALL_01.his</div><div>(1)<span>       </span>/mnt/c/Users/ACER/Downloads/CELIOMETER/AWOS/AWOSdata/2024/Aug/CLOUD_ALL_02.his</div><div>(2)<span>       </span>/mnt/c/Users/ACER/Downloads/CELIOMETER/AWOS/AWOSdata/2024/Aug/CLOUD_ALL_03.his</div><div>(3)<span>       </span>/mnt/c/Users/ACER/Downloads/CELIOMETER/AWOS/AWOSdata/2024/Aug/CLOUD_ALL_04.his</div><div>(4)<span>       </span>/mnt/c/Users/ACER/Downloads/CELIOMETER/AWOS/AWOSdata/2024/Aug/CLOUD_ALL_05.his</div><div>(5)<span>       </span>/mnt/c/Users/ACER/Downloads/CELIOMETER/AWOS/AWOSdata/2024/Aug/CLOUD_ALL_06.his</div><div>(6)<span>       </span>/mnt/c/Users/ACER/Downloads/CELIOMETER/AWOS/AWOSdata/2024/Aug/CLOUD_ALL_07.his</div><div>(7)<span>       </span>/mnt/c/Users/ACER/Downloads/CELIOMETER/AWOS/AWOSdata/2024/Aug/CLOUD_ALL_08.his</div><div>(8)<span>       </span>/mnt/c/Users/ACER/Downloads/CELIOMETER/AWOS/AWOSdata/2024/Aug/CLOUD_ALL_09.his</div><div>(9)<span>       </span>/mnt/c/Users/ACER/Downloads/CELIOMETER/AWOS/AWOSdata/2024/Aug/CLOUD_ALL_10.his</div><div>(10)<span>      </span>/mnt/c/Users/ACER/Downloads/CELIOMETER/AWOS/AWOSdata/2024/Aug/CLOUD_ALL_11.his</div><div>(11)<span>      </span>/mnt/c/Users/ACER/Downloads/CELIOMETER/AWOS/AWOSdata/2024/Aug/CLOUD_ALL_12.his</div><div>(12)<span>      </span>/mnt/c/Users/ACER/Downloads/CELIOMETER/AWOS/AWOSdata/2024/Aug/CLOUD_ALL_13.his</div><div>(13)<span>      </span>/mnt/c/Users/ACER/Downloads/CELIOMETER/AWOS/AWOSdata/2024/Aug/CLOUD_ALL_14.his</div><div>(14)<span>      </span>/mnt/c/Users/ACER/Downloads/CELIOMETER/AWOS/AWOSdata/2024/Aug/CLOUD_ALL_15.his</div><div>(15)<span>      </span>/mnt/c/Users/ACER/Downloads/CELIOMETER/AWOS/AWOSdata/2024/Aug/CLOUD_ALL_16.his</div><div>(16)<span>      </span>/mnt/c/Users/ACER/Downloads/CELIOMETER/AWOS/AWOSdata/2024/Aug/CLOUD_ALL_17.his</div><div>(17)<span>      </span>/mnt/c/Users/ACER/Downloads/CELIOMETER/AWOS/AWOSdata/2024/Aug/CLOUD_ALL_18.his</div><div>(18)<span>      </span>/mnt/c/Users/ACER/Downloads/CELIOMETER/AWOS/AWOSdata/2024/Aug/CLOUD_ALL_19.his</div><div>(19)<span>      </span>/mnt/c/Users/ACER/Downloads/CELIOMETER/AWOS/AWOSdata/2024/Aug/CLOUD_ALL_20.his</div><div>(20)<span>      </span>/mnt/c/Users/ACER/Downloads/CELIOMETER/AWOS/AWOSdata/2024/Aug/CLOUD_ALL_21.his</div><div>(21)<span>      </span>/mnt/c/Users/ACER/Downloads/CELIOMETER/AWOS/AWOSdata/2024/Aug/CLOUD_ALL_22.his</div><div>(22)<span>      </span>/mnt/c/Users/ACER/Downloads/CELIOMETER/AWOS/AWOSdata/2024/Aug/CLOUD_ALL_23.his</div><div>(23)<span>      </span>/mnt/c/Users/ACER/Downloads/CELIOMETER/AWOS/AWOSdata/2024/Aug/CLOUD_ALL_24.his</div><div>(24)<span>      </span>/mnt/c/Users/ACER/Downloads/CELIOMETER/AWOS/AWOSdata/2024/Aug/CLOUD_ALL_25.his</div><div>(25)<span>      </span>/mnt/c/Users/ACER/Downloads/CELIOMETER/AWOS/AWOSdata/2024/Aug/CLOUD_ALL_26.his</div><div>(26)<span>      </span>/mnt/c/Users/ACER/Downloads/CELIOMETER/AWOS/AWOSdata/2024/Aug/CLOUD_ALL_27.his</div><div>(27)<span>      </span>/mnt/c/Users/ACER/Downloads/CELIOMETER/AWOS/AWOSdata/2024/Aug/CLOUD_ALL_28.his</div><div>(28)<span>      </span>/mnt/c/Users/ACER/Downloads/CELIOMETER/AWOS/AWOSdata/2024/Aug/CLOUD_ALL_29.his</div><div>(29)<span>      </span>/mnt/c/Users/ACER/Downloads/CELIOMETER/AWOS/AWOSdata/2024/Aug/CLOUD_ALL_30.his</div><div>(30)<span>      </span>/mnt/c/Users/ACER/Downloads/CELIOMETER/AWOS/AWOSdata/2024/Aug/CLOUD_ALL_31.his</div><div><br clear="none"></div><div><br clear="none"></div><div>Variable: Nfile</div><div>Type: integer</div><div>Total Size: 4 bytes</div><div>            1 values</div><div>Number of Dimensions: 1</div><div>Dimensions and sizes:<span>  </span>[1]</div><div>Coordinates: </div><div>(0)<span> </span>31</div><div><br clear="none"></div></div><div dir="ltr">Code that is reading these</div><div dir="ltr"><div><div>files = systemfunc("ls /mnt/c/Users/ACER/Downloads/CELIOMETER/AWOS/AWOSdata/2024/Aug/CLOUD_ALL_*")</div><div><span><span>    </span>printVarSummary(files)</span></div><div><span><span> </span>print(files)</span></div><div>Nfile = dimsizes(files)</div><div>;<span>        </span>printVarSummary(Nfile)</div><div><span><span>      </span>print(Nfile)</span></div><div><span>       </span></div><div><br clear="none"></div><div><br clear="none"></div><div><br clear="none"></div><div>do  NF   = 0, Nfile-1</div><div>ReadFile = asciiread(files(NF),-1,"string")   ; Read each file as string</div><div>DimFile  = dimsizes(ReadFile)</div><div>           print(DimFile)</div><div>;<span>  </span>print(ReadFile);</div><div>end do<span>  </span></div></div><br clear="none"></div><div dir="ltr">This code is NOT executed till end as dimensions of 6th and 7th file are different. </div><div dir="ltr"><br clear="none"></div><div dir="ltr"><div><div>Variable: DimFile</div><div>Type: integer</div><div>Total Size: 4 bytes</div><div>            1 values</div><div>Number of Dimensions: 1</div><div>Dimensions and sizes:<span>   </span>[1]</div><div>Coordinates: </div><div>(0)<span> </span>5762</div><div><br clear="none"></div><div><br clear="none"></div><div>Variable: DimFile</div><div>Type: integer</div><div>Total Size: 4 bytes</div><div>            1 values</div><div>Number of Dimensions: 1</div><div>Dimensions and sizes:<span>  </span>[1]</div><div>Coordinates: </div><div>(0)<span> </span>5762</div><div><br clear="none"></div><div><br clear="none"></div><div>Variable: DimFile</div><div>Type: integer</div><div>Total Size: 4 bytes</div><div>            1 values</div><div>Number of Dimensions: 1</div><div>Dimensions and sizes:<span>  </span>[1]</div><div>Coordinates: </div><div>(0)<span> </span>5762</div><div><br clear="none"></div><div><br clear="none"></div><div>Variable: DimFile</div><div>Type: integer</div><div>Total Size: 4 bytes</div><div>            1 values</div><div>Number of Dimensions: 1</div><div>Dimensions and sizes:<span>  </span>[1]</div><div>Coordinates: </div><div>(0)<span> </span>5762</div><div><br clear="none"></div><div><br clear="none"></div><div>Variable: DimFile</div><div>Type: integer</div><div>Total Size: 4 bytes</div><div>            1 values</div><div>Number of Dimensions: 1</div><div>Dimensions and sizes:<span>  </span>[1]</div><div>Coordinates: </div><div>(0)<span> </span>5762</div><div><br clear="none"></div><div><br clear="none"></div><div>Variable: DimFile</div><div>Type: integer</div><div>Total Size: 4 bytes</div><div>            1 values</div><div>Number of Dimensions: 1</div><div>Dimensions and sizes:<span>  </span>[1]</div><div>Coordinates: </div><div>(0)<span> </span>5762</div><div>fatal:Dimension sizes of left hand side and right hand side of assignment do not match</div><div><br clear="none"></div><div>fatal:["Execute.c":8637]:Execute: Error occurred at or near line 33 in file c1.ncl</div><div><br clear="none"></div></div><br clear="none"></div><div dir="ltr">I Request to help me sort out this</div><div dir="ltr"><br clear="none"></div></div><div><br clear="none"></div><div>Geeta.</div></div></div>_______________________________________________<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></div>
</div></div></div>
            </div>
        </div></body></html>