Re: MONTHS IN PLOT [message #91993 is a reply to message #91992] |
Sun, 27 September 2015 08:46  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Joyrles Fernandes writes:
>
> date_label = LABEL_DATE(DATE_FORMAT = ['%M'])
>
> FILE='C:\Users\Joyrles\Pictures\Nuvens\nuvens_anos.txt'
> dados=read_ascii(file, data_start=0)
> dados=dados.(0)
>
> mm=dados[1,*]
> year=dados[0,*]
> day=dados[2,*]
> hh=dados[3,*]
> hh2=dados[5,*]
> dur=dados[7,*]
>
> index=where(dur gt 6, count)
>
> cgHistoplot, mm(index), BINSIZE=1.0, PSYM=10, /FILL, POLYCOLOR=['blue', 'dodger blue'],yTITLE = 'NĂșmero de ocorrĂȘncia de noites nubladas', $
> title='Noite nubladas por mes de 2000 a 2010', XTICKFORMAT = 'LABEL_DATE'
>
> WHY DO IT JUST APPEAR ONE MONTH AND NOT TWELVE?
>
> PLEASE, HELP ME!
I'm guessing you are not getting any help, because you don't provide any
information that will help us guess what the problem is. For example,
what is the data structure of mm? What is the count? How many elements
are in dur? What have you tried to sort the problem out for yourself?
Etc. Without this information, we are guessing and our answers are
probably a complete waste of time. The Help command is your friend here.
Here is a good article that explains how to ask a question on a group
like this that will likely elicit an answer:
http://www.catb.org/~esr/faqs/smart-questions.html
In your case, I think you may be running into one of the famous IDL
gotchas:
http://idlcoyote.com/misc_tips/noidea.html
http://idlcoyote.com/misc_tips/brokenwhere.html
You might be able to fix some of these problems by turning your column
arrays (i.e., everything you are extracting from dados) into row arrays,
like this:
mm=Reform(dados[1,*])
But, this is only a guess. If you want more help, you need to provide
more information and give us a sense of what you have tried to fix the
problem yourself.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|