[ncl-talk] x label query

Kunal Bali kunal.bali9 at gmail.com
Mon Oct 27 23:03:25 MDT 2014


please find attachment ??



Kunal Bali
Research Scholar
Radio & Atmospheric Science Division
CSIR - National Physical Laboratory
New Delhi - 110012






On Tue, Oct 28, 2014 at 7:59 AM, Karin Meier-Fleischer <
meier-fleischer at dkrz.de> wrote:

>  Hi Kunal,
>
> without knowing your data it's nearly not possible to say what's maybe
> going wrong.
> Can you provide the cloud.nc file if it is not too large.
>
> Bye,
> Karin
>
> Am 27.10.14 06:50, schrieb Kunal Bali:
>
>   Dear NCL users
>
>  I run the attached script file and result giving from Jan 01 to Apr 01
> with 5 days intervals. But I want to label x axis from Jan 01 to 31 Mar ??
>
>  As i tried to adjust the intervals values but it didn't work properly. I
> am not getting the same interval values for 3 months.
>
>  please tell me about this
>
>  Thank You
>
>  Kunal Bali
>  Research Scholar
>  Radio & Atmospheric Science Division
>  CSIR - National Physical Laboratory
>  New Delhi - 110012
>
>
>
>
>
>
> On Mon, Oct 27, 2014 at 6:22 AM, Alan Brammer <abrammer at albany.edu> wrote:
>
>>  Forgot ncl-talk.
>>
>>
>>
>> https://www.ncl.ucar.edu/Document/Graphics/Resources/tm.shtml#tmXBMinorOn
>>
>>  Please try to search your queries it'll save you 24+ hours and the rest
>> of us 60 seconds doing it for you.
>>
>>   Good luck.
>>
>> On Sat, Oct 25, 2014 at 4:10 AM, Kunal Bali <kunal.bali9 at gmail.com>
>> wrote:
>>
>>>  Dear NCL users
>>>
>>>  How to create the minor tick mark.
>>>
>>>  I am using the scripts given below
>>>
>>>
>>> ;****************************************************
>>> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
>>> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
>>> load "$NCARG_ROOT/lib/ncarg/nclscripts/contrib/time_axis_labels.ncl"
>>> ;****************************************************
>>> begin
>>> ;***************************
>>> ; read in data
>>> ;***************************
>>>   f    = addfile ("/home/kunal/Pictures/NCL_Scripts/plot/cloud.nc" ,
>>> "r")
>>>   t    = f->Cloud_Optical_Thickness_Combined_QA_Mean
>>>
>>>   TDim = f->TDim              ; this is our x
>>>   nTDim = dimsizes(TDim)
>>>
>>>
>>>   wks_type = "pdf"
>>>   wks_type at wkPaperSize = "A4"
>>>   wks = gsn_open_wks(wks_type,"cloud3")
>>>
>>>
>>>   ; resources for "left" variable
>>>   res                        = True
>>>   res at xyLineThicknesses      = 2.5                 ; thicker line
>>>   res at xyLineColor = "Blue"
>>>   res at trXMinF = 1 ; set minimum X-axis value
>>>   res at trXMaxF = 91 ; set maximum X-axis value
>>>
>>>   res at tmXBMode             = "Manual"
>>>   res at tmXBMode = "Explicit"
>>>   res at tmXBValues = ispan(1,91,10)
>>>   res at tmXBLabels = res at tmXBValues
>>>   res at tmXBMinorLengthF     = 0.01
>>>
>>>
>>>
>>>   res at tiMainString               = "Cloud_Optical_Thickness"
>>>   plot = gsn_csm_xy(wks,TDim,t,res)
>>>
>>>  end
>>>
>>>
>>>  Kunal Bali
>>>  Research Scholar
>>>  Radio & Atmospheric Science Division
>>>  CSIR - National Physical Laboratory
>>>  New Delhi - 110012
>>>
>>>
>>>
>>>
>>>
>>>
>>>   On Sat, Oct 25, 2014 at 12:21 AM, Maria Gehne - NOAA Affiliate <
>>> maria.gehne at noaa.gov> wrote:
>>>
>>>> You need to be more specific with your questions! Did you read the link
>>>> in the previous response you got? What exactly do you not understand from
>>>> the documentation of the function? There are even more examples on how to
>>>> deal with time axis labels here:
>>>> https://www.ncl.ucar.edu/Applications/time_labels.shtml
>>>>
>>>>  Replies to ncl-talk only please.
>>>>
>>>>  Maria
>>>>
>>>> On Fri, Oct 24, 2014 at 12:03 PM, Kunal Bali <kunal.bali9 at gmail.com>
>>>> wrote:
>>>>
>>>>> I am not getting how to do it ??
>>>>>
>>>>>  Kunal Bali
>>>>>  Research Scholar
>>>>>  Radio & Atmospheric Science Division
>>>>>  CSIR - National Physical Laboratory
>>>>>  New Delhi - 110012
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>   On Fri, Oct 24, 2014 at 7:10 PM, Kyle Griffin <ksgriffin2 at wisc.edu>
>>>>> wrote:
>>>>>
>>>>>> Please search for similar issues before posting to the list - this
>>>>>> has been addressed many times before. You'll need to make sure that your
>>>>>> time variable has a unit, something like "days since 2000-01-01 00:00:00.0"
>>>>>> - the year can be whatever you want as it won't be plotted if you set your
>>>>>> strings to be just "%d %c" (giving you 1 Jan, 31 Mar)
>>>>>>
>>>>>>
>>>>>> https://www.ncl.ucar.edu/Document/Functions/User_contributed/time_axis_labels.shtml
>>>>>>
>>>>>>
>>>>>>  Kyle
>>>>>>
>>>>>>  ----------------------------------------
>>>>>> Kyle S. Griffin
>>>>>> Department of Atmospheric and Oceanic Sciences
>>>>>> University of Wisconsin - Madison
>>>>>> Room 1421
>>>>>> 1225 W Dayton St, Madison, WI 53706
>>>>>> Email: ksgriffin2 at wisc.edu
>>>>>>
>>>>>>  On Fri, Oct 24, 2014 at 8:33 AM, Kunal Bali <kunal.bali9 at gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>>   Dear NCL users
>>>>>>>
>>>>>>>  I am running the attached CLOUD.ncl scripts. Its giving the result
>>>>>>> plot but i am not getting the days name in x axis as i need to get the x
>>>>>>> axis names  from 1jan to 31 march. Its giving only numbers. So please tell
>>>>>>> me how label the x axis
>>>>>>>
>>>>>>>
>>>>>>>  Thank You
>>>>>>>
>>>>>>>
>>>>>>>     Kunal Bali
>>>>>>>  Research Scholar
>>>>>>>  Radio & Atmospheric Science Division
>>>>>>>  CSIR - National Physical Laboratory
>>>>>>>  New Delhi - 110012
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>  _______________________________________________
>>>>>>> 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
>>>>>
>>>>>
>>>>
>>>
>>> _______________________________________________
>>> 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
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20141028/ba5f9a78/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cloud.nc
Type: application/x-netcdf
Size: 2200 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20141028/ba5f9a78/attachment.nc 


More information about the ncl-talk mailing list