<div dir="ltr"><div>Yes, I think this could be related to the size of a file. <br></div><div><br></div><div>You can add the following line before the line, fils=*:</div><div><br></div><div>setfileoption("nc","Format","NetCDF4Classic")</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 28, 2021 at 9:10 AM Ashi Alam via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</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><div style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:13px"><div dir="ltr">Dear NCL user,</div><div dir="ltr"><br></div><div dir="ltr">i am trying to list number of files and extract them but there is an error message</div><div dir="ltr"><br></div><div dir="ltr"><div><div>ncendef: ncid 393216: NetCDF: One or more variable sizes violate format constraints</div><div>fatal:NetCDF: Operation not allowed in define mode: error attempting to write variable (time) to file.......</div></div><div><br></div><div dir="ltr">below are the codes i am using to list the files ,</div><div dir="ltr"><br></div><div dir="ltr"><br></div><div><div>fils = systemfunc ("ls /home/dir/ua_Amon_HadGEM2-ES_historical_*.nc") ; file paths</div><div>f    = addfiles (fils, "r")</div><div>ListSetType (f, "cat")</div><div>U_wnd    = f[:]->ua(:,:,:,:)</div><div><br></div><div><br></div><div>U_wnd!0  = "time"</div><div>U_wnd!1  = "plev"</div><div>U_wnd!2  = "lat"</div><div>U_wnd!3   = "lon"</div><div><br></div><div><br></div><div dir="ltr">is that because of the large file size? please guide me to overcome with this error </div><div dir="ltr"><br></div><div dir="ltr">thank you,</div><div dir="ltr"><br></div><div dir="ltr">regards,</div><div dir="ltr">Ayesha </div><div><br></div><div><br></div><div><br></div><div><br></div></div><br></div></div></div>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div>