Skip to content

Instantly share code, notes, and snippets.

View solarchemist's full-sized avatar
💭
https://links.solarchemist.se/shaare/HDGpDw

Taha Ahmed solarchemist

💭
https://links.solarchemist.se/shaare/HDGpDw
View GitHub Profile
@solarchemist
solarchemist / tifftags2df.R
Created August 14, 2011 17:48
Extracts all tags from a TIFF image file using "tiffinfo" and stores a selection of the tags in a dataframe
tifftags2df <- function(tiffimage) {
## Description:
## Extracts all tags from a TIFF image file generated by
## Oxford scanning electron microscope
## using the tiffinfo tool and stores a
## selection of the tags in a dataframe.
## Usage:
## tifftags2df(fulltiffpath)
## Arguments:
## tiffimage: character string, the full filename
@solarchemist
solarchemist / Labbrapport-Co-komplex
Created February 3, 2015 19:39
Laboration Co-komplex, "proof-of-concept" rapport med IPython Notebook (istället för Excel)
{
"metadata": {
"name": "Labinx 2 - kinetik Co-komplex"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@solarchemist
solarchemist / LEO1550
Last active March 23, 2022 01:23
Function extracts all tags from a scanning electron microscopy (SEM) TIFF image created using Zeiss EM software. Two example text files with extracted TIFF tags from SEM micrographs recorded on LEO1550 and Merlin SEM, respectively.
TIFF Directory at offset 0x8 (8)
Subfile Type: (0 = 0x0)
Image Width: 1024 Image Length: 768
Resolution: 1, 1 (unitless)
Bits/Sample: 8
Compression Scheme: None
Photometric Interpretation: palette color (RGB from colormap)
Samples/Pixel: 1
Rows/Strip: (infinite)
Planar Configuration: single image plane