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..
Adam
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
-- -------------------------------------------------------------- Adam Phillips asphilli_at_ucar.edu National Center for Atmospheric Research tel: (303) 497-1726 ESSL/CGD/CAS fax: (303) 497-1333 P.O. Box 3000 Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli _______________________________________________ ncl-talk mailing list List instructions, subscriber options, unsubscribe: http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Thu Jul 16 2009 - 15:09:51 MDT
This archive was generated by hypermail 2.2.0 : Thu Jul 23 2009 - 08:02:42 MDT