[ncl-talk] error in dimension

Karin Meier-Fleischer meier-fleischer at dkrz.de
Thu Dec 7 06:21:29 MST 2017


Hi Ehsan,

please, have a look at your data first. Do

   prc    = f[:]->precipitationCal
   printVarSummary(prc)

to see what dimension names precipitationCal has.

-Karin

Am 07.12.17 um 12:18 schrieb Ehsan Taghizadeh:
> Hi, I want to open multiple netcdf files. Also I had to change 
> dimesion of variable (precipitationCal(lat | :, lon | :)), but I got 
> an error (fatal:(lat) is not a dimension name in variable (lon), could 
> not determine dimension number). What should I do?
> Following lines are simple code.
>
>  diri = "path/"   ; input directory
>  files = systemfunc("ls "+diri+"3B-DAY-L.MS.MRG.3IMERG.201704*.nc") ; 
> file paths
>    f = addfiles(files,"r")
>   prc    = f[:]->precipitationCal(lat | :, lon | :)        ; read 
> precipitation from all files
>
>
> Sincerely
> Ehsan
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20171207/bf78081a/attachment.html>


More information about the ncl-talk mailing list