Can I use HISTOGRAM to do this? [message #39996] |
Mon, 28 June 2004 14:57 |
bridgemat
Messages: 6 Registered: August 2003
|
Junior Member |
|
|
OK, I just recently learned the basics of HISTOGRAM and made a nice
little plot of a 90x90 array of latitude values that shows the # of
elements with values that fall within 1-degree latitude bands:
hist=histogram(geo.lat,min=30,max=90)
ind=indgen(61) + 30.5
plot,ind,hist,psym=10,xrange=[30,90],xstyle=1
Now I'm hoping to use it with a more complicated situation, but I
haven't been able to wrap my head around the logic yet. Hopefully
someone out there can enlighten me! Here's the scoop:
I have another 90x90 array whose elements are the number of days
during a year that meet certain criteria at each particular point
(8100 points in all that correspond to the 8100 latitudes in the array
above). What I want is a histogram that shows the average of the
number of days at all points that lie within each 1-degree latitude
band over the same 30 - 90 degree space as the histogram created
above. (Does that make any sense?) So somehow I need to combine the
data from both arrays into one histogram. Or maybe HISTOGRAM is the
wrong way to be displaying this data. Maybe I should be using a bar
plot, but I don't think that would give the sense that it's the # of
days when we're BETWEEN, say, 43 and 44 degrees North. Or maybe it
would just have to be a standard line plot. I'm not sure...
-Bridget
|
|
|