pyatoa.utils.images
Utility functions for manipulating image files such as .png and .pdfs. Makes use use of the Python Pillow package if working with .png files, and the PyPDF2 package if manipulating pdf files. Internal imports for all functions to remove Pyatoa-wide dependencies on these packages for short functions.
Module Contents
Functions
|
Merge a list of pdfs into a single output pdf using the PyPDF2 package. |
|
Combine a list of .png files into a single PDF document |
|
Combine a list of images into a single, horizontally tiled image. |
|
Convert GeoTiff images (e.g., ETOPO1 topography) to a numpy array for |
- pyatoa.utils.images.merge_pdfs(fids, fid_out)[source]
Merge a list of pdfs into a single output pdf using the PyPDF2 package. Any desired order to the pdfs should be set in the list of input fids.
- pyatoa.utils.images.imgs_to_pdf(fids, fid_out)[source]
Combine a list of .png files into a single PDF document