Table Of Contents

Previous topic

ScatPy.fileio

Next topic

ScatPy.results

This Page

ScatPy.ranges

A collection of ranges found in ddscat.par

Inheritance Diagram

Inheritance diagram of ScatPy.ranges

Class Summary

How_Range(first, last, num[, how, table]) A general range used for wavelength and scale_range (aeff) definitions.
Lin_Range(first, last, num) A specialized linear range used for specifying target rotations.
Scat_Range(phi, theta_min, theta_max, dtheta) A specialist range used for specifying scattering planes.

Class Definitions

A collection of ranges found in ddscat.par

class ScatPy.ranges.How_Range(first, last, num, how=None, table=None)[source]

A general range used for wavelength and scale_range (aeff) definitions.

Parameters:
  • first – The first value of the range.
  • last – The last value of the range.
  • num – The number of steps in the range.
  • how – An optional string defining the spacing of steps ‘LIN’, ‘INV’, ‘LOG’, ‘TAB’. Default is ‘LIN’.
  • table – an optional list of table values that specify an arbitrary sequence.

The range can be used as an iterator.

build_table()[source]

Build the internal representation of the points in the range

classmethod fromstring(string)[source]

Create a new How_Range based on a string of the form found in DDSCAT.par

next()[source]
class ScatPy.ranges.Lin_Range(first, last, num)[source]

Bases: ScatPy.ranges.How_Range

A specialized linear range used for specifying target rotations.

The range can be used as an iterator.

Parameters:
  • first – The first value of the range.
  • last – The last value of the range.
  • num – The number of steps in the range.
classmethod fromstring(string)[source]

Create a new Lin_Range based on a string of the form found in DDSCAT.par

class ScatPy.ranges.Scat_Range(phi, theta_min, theta_max, dtheta)[source]

A specialist range used for specifying scattering planes.

Parameters:
  • phi – The phi scattering angle.
  • theta_min – The smallest value of theta.
  • theta_max – The largest value of theta.
  • d_theta – The theta stepsize.

Cannot yet be used as an iterator

classmethod fromstring(string)[source]

Create a new Scat_Range based on a string of the form found in DDSCAT.par

class ScatPy.ranges.Scat_Range_1dPBC(order, zeta_min, zeta_max, d_zeta)[source]

A specialist range used for specifying scattering cones for 1D periodic targets.

Parameters:
  • order – The scattering cone.
  • zeta_min – The smallest value of zeta.
  • zeta_max – The largest value of zeta.
  • d_zeta – The zeta stepsize.

Cannot yet be used as an iterator

classmethod fromstring(string)[source]

Create a new Scat_Range_1dPBC based on a string of the form found in DDSCAT.par

class ScatPy.ranges.Scat_Range_2dPBC(orderM, orderN)[source]

A specialist range used for specifying scattering diffraction order for 2D periodic targets.

Parameters:
  • orderM – The scattering cone.
  • orderN – The scattering cone.

Cannot yet be used as an iterator

classmethod fromstring(string)[source]

Create a new Scat_Range_2dPBC based on a string of the form found in DDSCAT.par