# [ncl-talk] Seasonal Variation of Hodogragh

Dennis Shea shea at ucar.edu
Wed Sep 24 15:21:16 MDT 2014

```[1] Your  comment "find the date 2010-11-01" is totally inconsistent with
what you
do on the next line(s).

[2] Always look at your data.

; convert the time axis
times = cd_calendar(infile->time, 0)

print(times(:,0)+"  "+times(:,1)+"  "+times(:,2)+"  "+times(:,3))
;  <== yyyy, mm, dd, hh

; find the date 2010-11-01
timeindex = ind(times(:,0).eq.2010 .and. times(:,1) .eq. 2)  ; <==
find indices for February 2010 only

; timeindex = ind(times(:,0).eq.2010 .and. times(:,1) .eq. 2 .and.
times(:,2) .eq. 12)

If you are looking for Feb 2010 12Z only, the above should be:
timeindex = ind(times(:,0).eq.2010 .and. times(:,1) .eq. 2 .and.
times(:,3) .eq. 12)   ; 12Z data for Feb 2010

======
Based on your written words, maybe the following is what you want

timeindex = ind(times(:,0).eq.2010 .and. \
(times(:,1) .ge. 2 .and. times(:,1).le.4)
.and. times(:,3) .eq. 12)
print(timeindex)

======
Please respond to ncl-talk (if necessary). If responding, no personal
salutation should be used.  THX

Good luck

On Wed, Sep 24, 2014 at 9:22 AM, Amadou Coulibaly <mpapin24 at gmail.com>
wrote:

> Hello NCL Users
>
>
>
> I'm trying to plot the "Seasonal variation of Hodogragh", I have already
> plot "hourly variation of Hodogragh" for one day. But when I try the
> seasonal one, it shows me those message errors:
>
>
>
> *fatal:Dimension sizes of left hand side and right hand side of assignment
> do not match*
>
>
>  *fatal:["Execute.c":7743]:Execute: Error occurred at or near line 5660
> in file \$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl*
>
>
>  *fatal:["Execute.c":7743]:Execute: Error occurred at or near line 159 in
> file panel_plot_mod.ncl*
>
>
>  *fatal:["Execute.c":7743]:Execute: Error occurred at or near line 222 in
> file panel_plot_mod.ncl*
>
>
>  So, who can help me to solve this issue, allowing me to plot the
> Hodogragh for 3 months (February, March, April for instance). Or monthly
> variation of Hodogragh.
>
>
> When I used line 203 of this script, It works, but line 202 doesn't work
> (timeindex).
>
>
> See my script in attached file.
>
>
>
>  Best regards
>
>
>
> --
> PhD  Student  on  West  African  Climate  System (WACS)
> FUTA - Federal  University  of  Technology of Akure, Nigeria
>
> *Visiting Student - *
> *University of Cologne, Germany**Institute of Geophysics and Meteorology*
> Pohligstr. 3 / Office 3.102
> D-50969 Köln
>
> *Project*: WASCAL (West African Science Service Centre on Climate Change
> Phone:(+234) 810 795 2836 /(+223) 65 67 27 57 /(+226) 64 57 37 27 /+49
> 15218352574
>
> E-mail: mpapin24 at gmail.com / coulibalya68 at yahoo.com
>
> "*The time is always right to do right": Nelson Mandela*
>
> *"Character is like a tree and reputation like a shadow.  The shadow is
> what we think of it; the tree is the real thing" : Abraham Lincoln*
>
> *"Do what you can, with what you have, where you are" Theodore Roosevelt*
>
>
>
>
>
>
> _______________________________________________
> 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/20140924/189def6b/attachment.html
```