[ncl-talk] One or more variable sizes violate format constraints

Rashed Mahmood rashidcomsis at gmail.com
Thu Jan 28 02:15:18 MST 2021


Yes, I think this could be related to the size of a file.

You can add the following line before the line, fils=*:

setfileoption("nc","Format","NetCDF4Classic")







On Thu, Jan 28, 2021 at 9:10 AM Ashi Alam via ncl-talk <
ncl-talk at mailman.ucar.edu> wrote:

> Dear NCL user,
>
> i am trying to list number of files and extract them but there is an error
> message
>
> ncendef: ncid 393216: NetCDF: One or more variable sizes violate format
> constraints
> fatal:NetCDF: Operation not allowed in define mode: error attempting to
> write variable (time) to file.......
>
> below are the codes i am using to list the files ,
>
>
> fils = systemfunc ("ls /home/dir/ua_Amon_HadGEM2-ES_historical_*.nc") ;
> file paths
> f    = addfiles (fils, "r")
> ListSetType (f, "cat")
> U_wnd    = f[:]->ua(:,:,:,:)
>
>
> U_wnd!0  = "time"
> U_wnd!1  = "plev"
> U_wnd!2  = "lat"
> U_wnd!3   = "lon"
>
>
> is that because of the large file size? please guide me to overcome with
> this error
>
> thank you,
>
> regards,
> Ayesha
>
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at mailman.ucar.edu
> List instructions, subscriber options, unsubscribe:
> https://mailman.ucar.edu/mailman/listinfo/ncl-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20210128/e3717256/attachment.html>


More information about the ncl-talk mailing list