[ncl-talk] getind_latlon2d_query

Guido Cioni guidocioni at gmail.com
Tue Dec 5 10:11:07 MST 2017


Did you even try to understand the error? 

> fatal:Number of dimensions in parameter (0) of (getind_latlon2d) is (1), (2) dimensions were expected

  nm   = getind_latlon2d (lat(:), lon(:), latv, lonv)

lat and lon are 1-dimensional while the function needs 2-dimensional latitude and longitudes (getind_latlon2d)


> On 5. Dec 2017, at 10:59, Kunal Bali <kunal.bali9 at gmail.com> wrote:
> 
> Dear NCL user,
> 
> 
> I am trying to plot the coff. of divergence of the attached file (as a sample file with 2-time steps). the original file has 365 time steps. The script related to this query is also attached.
> 
> The error is given below 
> 
> 
> Variable: totc
> Type: float
> Total Size: 9478656 bytes
>             2369664 values
> Number of Dimensions: 3
> Dimensions and sizes:    [2] x [1088] x [1089]
> Coordinates:
> Number Of Attributes: 1
>   _FillValue :    -28672
> fatal:Number of dimensions in parameter (0) of (getind_latlon2d) is (1), (2) dimensions were expected
> fatal:["Execute.c":8640]:Execute: Error occurred at or near line 106 in file iitd_PM2.5_plot_new.ncl
> 
>  
> 
> regards
> Kunal Bali
> 
> 
> 
> 
> <data.tar.bz2><iitd_PM2.5_plot_new.ncl>_______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk


Guido Cioni
http://guidocioni.altervista <http://guidocioni.altervista/>.org

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


More information about the ncl-talk mailing list