I'm coding up a bit of PP code to adaptively bin a 1D distribution. The bin widths will be varied to achieve a set signal to noise ratio. The key point is that the number of bins won't be known until after the binning is complete.
My problem is that I don't know how to specify an output piddle whose size isn't known until after the code is run. The signatures seem to require output piddles to either be scalars or have dimensions based upon an input piddle. Currently I've wrapped the PP code in a Perl routine which resizes the piddles before returning to the calling routine, which is pretty grotty. Is there any clean way of doing this in the PP code? In doing this I've come up against another unknown: is it possible to specify that a PP output parameter is a Perl scalar? I need to pass the number of bins from the PP code to the Perl code so that it knows the final piddle size, and the only way to do this seems to be via a scalar piddle. Thanks, Diab _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
