Re: getind_latlon2d

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Tue Nov 06 2012 - 17:21:01 MST

[1] Not sure why you want to compute lat2d/lon2d but ...

     nlat = dimsizes(lat)
     mlon = dimsizes(lon)

     lat2d= comform_dims( (/nlat,mlon/), lat, 0)
     lon2d= comform_dims( (/nlat,mlon/), lon, 1)

[2] If the lat and lon are 1D

     jlat = ind(lat.eq.???)
     ilon = ind(lon,eq.???)

On 11/06/2012 05:16 PM, ousmane ndiaye wrote:
> Hi all,
> Little but stuck/confused here : the inputs of getind_latlon2d aka
> "lat2d" and "lon2d" are 2D and it is said for lat2d "A two-dimensional
> array that contains latitudes."
> if I have lat1d from the model 1D how can I construct lat2d?
> Ousmane
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Nov 6 17:21:09 2012

This archive was generated by hypermail 2.1.8 : Tue Nov 13 2012 - 14:27:24 MST