# Re: grid cell to lat lon

Date: Thu, 16 Jul 2009 15:09:51 -0600

Hi Debasish,
Try using getind_latlon2d:
http://www.ncl.ucar.edu/Document/Functions/Contributed/getind_latlon2d.shtml
It sounds like it does exactly what you want..

Debasish PaiMazumder wrote:
> Hello,
>
> I have a variable pr(time, yc, xc) where yc=172 and xc=180 and
> corresponding lat(yc,xc) and lon(yc,xc). I have also have latitude
> and longitude of 46 station of a river basin. These latitudes
> and longitudes of the river basin are center of the grid cells
> of lat(yc,xc) and lon(yc,xc). I want to extract and plot the variable
> for these 46 grid cells whose center latitudes and longitudes are given
> to determine the variable for that particular basin. How do I solve this
> problem?
>
> In connection with the above mentioned question, I would also like know
> that is there any function in NCL which provide lat(yc,xc), lon(yc,xc)
> and centerlat and centerlon if the number of grid cell (i.e. i,j) is
> known or vice-versa.
>
> Thanks
>
> Debasish
>
>
> Debasish PaiMazumder, PhD
> Hydrology & Climate Science
> Postdoctoral Researcher at UQÀM/Ouranos
> 550, Sherbrooke west, 19th floor, west tower,
> Montréal, QC, Canada H3A 1B9
> Tel: (514) 282-6464-343
> (514) 937-0042 (R)
> email: debasish_at_sca.uqam.ca <mailto:debasish_at_sca.uqam.ca>
>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

```--
--------------------------------------------------------------