Re: lat_time plot

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue Jul 02 2013 - 08:23:21 MDT

You need to plot "P_reorder" and not "P". Try changing:

> plot = gsn_csm_lat_time(wks, P, res)

to

> plot = gsn_csm_lat_time(wks, P_reorder, res)

--Mary

On Jul 2, 2013, at 5:09 AM, jayasankar C B wrote:

>
> dear sir /madam
>
> I am trying to plot lat_time plot. my data is is given below
>
> Variable: f
> Type: file
> filename: lat_time
> path: lat_time.nc
> file global attributes:
> dimensions:
> lat = 24
> time = 12
> variables:
> double lat ( lat )
> units : degrees_north
> long_name : Latitude
>
> double time ( time )
> long_name : Time
> units : minutes since 1979-01-01 00:00
>
> double ann ( time, lat )
> _FillValue : -999000000
>
>
>
> so i made an ncl script like this...
>
>
> ;*********************************************
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
>
> begin
>
> ;*********************************************
> ; read in data
> ;*********************************************
> f = addfile ("lat_time.nc", "r")
> P = f->ann(:,:)
> P_reorder = P(lat|:,time|:)
> ;*********************************************
> ;*************************
> ; plotting parameters
> ;*************************
> wks = gsn_open_wks ("pdf", "lat_time" )
>
> res = True
> res@cnFillOn = True
> res@gsnSpreadColors = True
>
> res@vpXF = 0.12
> res@vpYF = 0.8
> res@vpHeightF = 0.4
> res@vpWidthF = 0.75
>
> res@cnLevelSelectionMode = "ManualLevels"
> res@cnMinLevelValF = 0
> res@cnMaxLevelValF = 15
> res@cnLevelSpacingF = 1
>
> plot = gsn_csm_lat_time(wks, P, res)
> end
>
>
> but i am getting the time_lat plot.
> i tried a lot. still i am getting the plot which is time_lat but I want the
> lat_time plot. please help me to correct the plot.
>
> thanking you..
> --
> Jayasankar C B
>
> Project Assistant
> CSIR-CMMACS
> NAL Bhelur campus
> Bangalore-37.
> _______________________________________________
> 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 Jul 2 08:23:27 2013

This archive was generated by hypermail 2.1.8 : Fri Jul 05 2013 - 13:06:49 MDT