This package extracts xml metadata from FITS output to a csv or xlsx file
Project description
FITSxtractor - The metadata extractor
With FITSxtractor, you can extract metadata from XML files (generated by FITS) and save them in a .cvs or .xlsx file by calling the program from the command line.
The code is made for the XML tree structure that the Harvard tool 'FITS' (File Information Tool Set) outputs. Pay a visit to their Website for more information about their project and have a look at the Documentation regarding the output format.
This Project has been brought to life with the help of the AfZ (Archive of Contemporary History) at the ETH Zürich.
Overview
The FITS metadata extractor was written to be implemented as a tool for the simplifaction digital long term archiving workflows.
A key aspect in archiving is keeping track of the most usefull metadata while not overshooting with information. The extractor uses the vast extensive output, that FITS provides and saves out the common information. By creating a table from the metadata batch, the tool serves as a key component for an interface that keeps track of the data. Furthermore the user can simply compare the metadata in a well known programm as MS Excel.
Guide
The following shows how to get and use FITSxtractor.
Installation
$ pip install FITSxtractor
If you would rather like to customize the code to your needs, grab a stable version under "Releases". All the files are extensively commented as well, in order to make the files more user firendly.
Usage
When in a terminal specify:
$ FITSxtracotr path_to_dir --output path_to_outputfile
The programm takes a directory, which is populated with at least one (!) FITS XML output file and takes an output file location as a positional argument.
Accepted output formats are files ending with a .csv or .xlsx extension. If none are given, the program defaults to .xlsx.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for FITSxtractor-0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f266224c41ec7a65244056ebff819af15a55870cdc58f11d5c6fdae5bfb62058 |
|
MD5 | 3323a81c124868ce1afb79b39ac983da |
|
BLAKE2b-256 | a475d5e887eaf95ca32c5ba550aabcc6db93d25a247bbd80048a9a8bad95b387 |