Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: structuring data: aka walk first, grok later

by chexmix (Hermit)
on Jun 06, 2008 at 20:24 UTC ( #690758=note: print w/ replies, xml ) Need Help??


in reply to Re: structuring data: aka walk first, grok later
in thread structuring data: aka walk first, grok later

OK. Using either approach, how do I do something with (e.g. treat as a unit or set) all the $x for a given $det in a given $obs?

That is, how do I get that particular array back out of the data structure that has been built?

Because that's how I need to process this data. It's the distribution of points on the axes of individual detectors that is of interest.

My latest stab is this:

($obs, $det, $x, $y) = split /\ /; push @{ $histx{$obs}{$det} }, $x; push @{ $histy{$obs}{$det} }, $y; } for my $i (0..$#{ $histx{$obs}{$det} }) { print "${ $histx{$obs}{$det} }[$i]\n"; }

I'm doing this bit of printing simply to see if I am catching all the data ... but this only prints out the stuff for the LAST $obs.

NOTE: I should never have referenced / included the 'full precision' values in my discussion. The reasons for that are technical (beyond the need for this discussion), but it's entirely valid to just convert those to integers. I am sorry for the confusion that caused.


Comment on Re^2: structuring data: aka walk first, grok later
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://690758]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2015-07-31 01:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls