Giter Site home page Giter Site logo

orca_uv's Introduction

orca-uv

A Python 3 script for (hassle-free) plotting of absorption spectra from ORCA output files with peak dectection and annotation. It combines the stick spectrum with the convoluted spectrum (gaussian line shape). The script supports energy (wave number, cm-1) and wavelength (λ, nm) plots. The full spectrum or parts of the spectrum can be plotted.

External modules

re numpy matplotlib scipy

Quick start

Start the script with:

python3 orca-uv.py filename

it will save the plot as PNG bitmap: filename-abs.png

Command-line options

  • filename , required: filename
  • -s , optional: shows the matplotlib window
  • -n , optional: do not save the spectrum
  • -e , optional: export the line spectrum in a csv-like fashion; filename of the export is input filename + "-mod.dat"
  • -pwn , optional: plot the wave numer (energy, cm-1) spectrum
  • -wnm N , optional: line width of the gaussian for the nm scale (default is N = 20)
  • -wwn N , optional: line width of the gaussian for the cm-1 scale (default is N = 1000)
  • -x0 N , optional: start spectrum at N nm or N cm-1 (x0 => 0)
  • -x1 N , optional: end spectrum at N nm or N cm-1 (x1 => 0)

Script options

There are numerous ways to configure the spectrum in the script: Check # plot config section - configure here in the script. You can even configure the script to plot of the single gaussian functions.

The delimiter for the line spectrum export can be changed by changing the value of export_delim =.

Code options

Colors, line thickness, line styles, level of peak detection and more can be changed in the code directly.

Remarks

The PNG file will be replaced everytime you start the script with the same output file. If you want to keep the file, you have to rename it. The data are taken from the section "ABSORPTION SPECTRUM VIA TRANSITION ELECTRIC DIPOLE MOMENTS".

Examples:

show Example 1 Example 2 Example 3

orca_uv's People

Contributors

radi0sus avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.