Re: sptial distribution

From: <cluo_at_nyahnyahspammersnyahnyah>
Date: Thu, 20 Jul 2006 15:26:51 -0700 (PDT)

Hi,

I added following into my script. It is still problem with error"
fatal:Coordinate variables must be the same dimension as their dimension
fatal:No coordinate variable exists for dimension (lat) in variable (data)
Segmentation fault"

Since data is three dimensional, I plot it like:

plot(0) = gsn_csm_contour_map_ce(wks_id,data(:,:,33),res1)

Do I need transfer 3D to 2D then plot 2D variable?

Thanks,

Chao
>
> Here is what I suggest:
>
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
>
>
> lat = latGlobeFo (lat_nbr, "lat", "latitude", "degrees_north")
> lon = lonGlobeFo (lon_nbr, "lon", "longitude", "degrees_east")
> lon = (/ lon - 180. /) ; subtract 180 from all values
> lon&lon = lon ; update coordinates
>
> printVarSummary(lat)
> printVarSummary(lon)
>
>
> http://www.ncl.ucar.edu/Document/Functions/Contributed/latGlobeFo.shtml
> http://www.ncl.ucar.edu/Document/Functions/Contributed/lonGlobeFo.shtml
>
> ---
>
> data!0 = "lat"
> data!1 = "lon"
> data&lat = lat
> data&lon = lon
>
> good luck
> D
>

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Jul 20 2006 - 16:26:51 MDT

This archive was generated by hypermail 2.2.0 : Fri Jul 21 2006 - 08:53:09 MDT