#!/usr/bin/env python """This script is used by the batch_generate function in the arts_scat module. It generates an arts scattering data file. The input parameters are passed as pickled stdin and the pickled file name is sent to stdout. The script is necessary to enable utilization of multiple processors from python code""" import sys import cPickle import arts_scat params=cPickle.load(sys.stdin) #Calculate single scattering data a=arts_scat.SingleScatteringData(params) a.generate() print cPickle.dumps(a.filename)