Python Code Snippets

Gaussian fitting

Code to fit input 1D data with a Gaussian function. [dependency] - numpy - scipy

import numpy as np import matplotlib.pyplot as plt from scipy.interpolate …
Region histogram

Compute and plot the region histogram. [dependency] - numpy - matplotlib - pspylib

import os import numpy as np import matplotlib.pyplot as plt …
Wafer Zero Scan SmartRemote Code

Wafer Zero Scan code used in the Quality Assurance Automation Tool

from src.core.afm import AFM as AFM from src.core.afm import CHECKER …
N-dimension flatten

Flatten the TIFF image data using a n-order Legendre polynomial function. [dependency] - numpy - …

import os import numpy as np import matplotlib.pyplot as plt …
One dimension flatten

Flatten the TIFF image data using a first-order polynomial function. [dependency] - numpy - pspylib …

import os import numpy as np import matplotlib.pyplot as plt …
Reading and writing TIFF files

[read] This code reads a TIFF file using pspylib and converts it into a dictionary. …

import os from PIL import Image import numpy as np …