<commit_before># ISIS3 to PDS3 Label Translator #
``isis3_lbl_to_pds3_lbl.py`` is a rudimentary script for translating detached ISIS3 labels into detached PDS3 labels. 
The script was developed specifically to translate labels from high-level map-projected image products that are distributed on the USGS Astropedia
(<https://astrogeology.usgs.gov/search>). It is **not** a generic translator for ISIS3 labels.
The script aims to produce labels can best be described as "PDS3 compatible" if not strictly "PDS3 compliant." In practice, this means
that given a valid ISIS3 label for a map-projected image product, the script will return a PDS3 label that can be successfully interpreted by 
the ISIS3 program ``pds2isis``, as well as by geospatial software such as GDAL and QGIS.

## Dependencies ##
 - Python3
 - PVL library: <https://github.com/planetarypy/pvl>

## Basic Usage ##
Executing
``isis3_lbl_to_pds3_lbl.py input.lbl``
will parse generate an ISIS3 label named ``input.lbl`` and return a PDS3 label file named ``isis3_label_pds3.lbl``<commit_msg>typo fix<commit_after># ISIS3 to PDS3 Label Translator #
``isis3_lbl_to_pds3_lbl.py`` is a rudimentary script for translating detached ISIS3 labels into detached PDS3 labels. 
The script was developed specifically to translate labels from high-level map-projected image products that are distributed on the USGS Astropedia
(<https://astrogeology.usgs.gov/search>). It is **not** a generic translator for ISIS3 labels.
The script aims to produce labels can best be described as "PDS3 compatible" if not strictly "PDS3 compliant." In practice, this means
that given a valid ISIS3 label for a map-projected image product, the script will return a PDS3 label that can be successfully interpreted by 
the ISIS3 program ``pds2isis``, as well as by geospatial software such as GDAL and QGIS.

## Dependencies ##
 - Python3
 - PVL library: <https://github.com/planetarypy/pvl>

## Basic Usage ##
Executing
``isis3_lbl_to_pds3_lbl.py input.lbl``
will parse an ISIS3 label named ``input.lbl`` and return a PDS3 label file named ``isis3_label_pds3.lbl``
{'fraction_non_alphanumeric': 0.07435653002859867, 'fraction_numerical': 0.019065776930409915, 'mean_word_length': 5.01432664756447, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2997133', 'n_tokens_mistral': 648, 'n_tokens_neox': 623, 'n_words': 273}