comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » subarray
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
subarray [message #80212] Tue, 22 May 2012 08:21
k_ghreep is currently offline  k_ghreep
Messages: 19
Registered: May 2012
Junior Member
Dear all
I have array of years like this y=[1990, 1991, 1992]. in each year i
have a measured data in different months, i.e
mon=[9,10,11,1,2,3,6,9,20,12,2,4,6,8]
in each month, a variable is not measured in all days
so the data are organized in 4 columns as follows

year mon day Value
1990 9 15 0.0
1990 9 16 3.1
1990 9 17 0.2
1990 10 5 0.1
1990 10 6 2.1
1990 10 7 0.5
1990 10 8 0.0
1990 10 9 0.0
1990 10 12 0.0
1990 11 24 0.5
1990 11 25 0.0
1990 11 26 0.0
1990 11 27 0.0
1990 12 01 0.0
1990 12 02 0.1
1991 01 5 1.0
1991 01 6 13.0
1991 01 7 3.0
1991 01 8 0.0
1991 01 9 0.0
1991 01 10 0.0
1991 01 11 0.1
1991 05 15 1.0
1991 05 16 13.0
1991 05 17 3.0
1991 05 18 0.0
1991 05 19 0.0
I would like to count a zero and a non-zero values in each month and
calculate the mean value
as function of year and month.
some body advise me to use a histogram function to do this, but I
can't
any body can tell me how I can write this routins,
Best wishes

Khaled
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: New Twist on %BadMatch (invalid parameter attributes) error in IDL module for ENVI
Next Topic: cgHistoplot colors

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:27:42 PDT 2025

Total time taken to generate the page: 0.00446 seconds