
Post by laura on Aug 11, 2011 19:45:18 GMT 10
Hello Everybody, I've got a problem and I heard rumours that miriad might help me but I don't know how! I have (a lot of) Data cubes of the same field and I want to combine them. The idea is know, not to compute the mean of each cube, but the median and I was told that miriad can do median adding. Does anybody know the right miriad command (I couldn't find it) or any other software (if it has to be IDL...) who can to that?
Thanks! Laura



Post by rhobslein on Aug 17, 2011 16:28:41 GMT 10
Not exactly sure if this helps, depends what your end result is (the median of medians of all cubes?), but some miriad tasks:
imstat: will give you the mean, rms, etc (I think also median?) math: lets you add any two images together, if they are the same size moment: lets you calculate the moment maps of a cube (might be helpful)
Just checked  maths will add cubes together as well, *as long as they are the same dimensions*.
Alternatively, and maybe preferably, if the cubes aren't too big you might want to just load them into pyfits, and then find the median that way. Once it's in the numpy array format, it should be very straightforward to do all kinds of calculations I think. I'm not sure what specific advantage miriad gives you?
Task: maths exp = <icecream.xy>+<icecream.xy> mask = region = out = testadd.xy imsize = xrange = yrange = zrange = options = maths% go Maths: version 1.0 17Oct00
Once you have a cube that is the sum of all, you can easily find the mean.

