This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A Python package for setting up DDSCAT jobs and analysing the results.

Project Description

ScatPy is a Python package for interfacing to the popular scattering simulator DDSCAT. ScatPy provides a rich toolset to:

  • Create standard DDSCAT scattering targets based on physical (rather than dipole) dimensions
  • Construct and visualize complex custom scattering targets
  • Manage the job parameters found in the ddscat.par file
  • Organize iterative jobs requiring multiple targets or input parameters
  • Script job submission to cluster queue managers
  • Maintain profiles and defaults for deployment on platforms other than the local machine
  • Load, plot and manipulate DDSCAT output tables
  • Manage the output from multiple jobs through results collections
  • Work with and visualize nearfield results as multidimensional numpy arrays
  • Suitable for interactive or scripted use

Documentation

Complete documentation can be found at:
http://pythonhosted.org/ScatPy

Download

The package can be downloaded for installation via easy_install at
https://pypi.python.org/pypi/ScatPy

Example

from ScatPy import *

# Establish target geometry (in um)
length = 0.100
radius = 0.020
target = targets.CYLNDRCAP(length, radius, d=0.005, material='Au_Palik.txt')

# Create a job to be run in the subdirectory tmp/
job = DDscat(folder = './tmp', target=target)

# Change the range of calculated wavelengths and ambient index
job.settings.wavelengths = ranges.How_Range(0.300, 0.600, 15)
job.settings.NAMBIENT = 1.0

# Run the job locally
job.calculate()

# Open the results qtable, plot Q_sca, and Q_abs, and add a legend
ans = results.QTable(folder = './tmp')
ax = ans.plot(['Q_sca', 'Q_abs'])
ax.legend(loc=0)
Release History

Release History

This version
History Node

0.1.1

History Node

0.1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
ScatPy-0.1.1.tar.gz (380.9 kB) Copy SHA256 Checksum SHA256 Source Aug 20, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting