Java code for galactic dust mass estimation.