<commit_before>phits - a FITS reader for PHP
=============================

FITS is the standard astronomical data format endorsed by both NASA and the IAU.

This class can read and parse header data from FITS files. I am not currently
planning to add the ability to read and process the attached data as well,
though I might add a wrapper class that can convert FITS image data to TIFF
using ImageMagick.


USAGE
-----
```
<?php
  use \Phits\Fits;

  $fits = new Fits('/tmp/foobar.fits');

  $headers = $fits->getHeaders();
  $naxis   = $fits->getNaxis(0);
?>
```

ACKNOWLEDGEMENTS
----------------
This project is based on pre-existing open source FITS libraries and I have
used both of them to help me write this parser:

* https://github.com/astrojs/fitsjs
* https://github.com/siravan/fits

As opposed to the Go parser, Phits also handles CONTINUE headers for longer
string comments.

FITS?
-----
See http://heasarc.nasa.gov/docs/heasarc/fits.html for more information.
<commit_msg>Update README.<commit_after>phits - a FITS reader for PHP
=============================

FITS is the standard astronomical data format endorsed by both NASA and the IAU.

This class can read and parse header data from FITS files. I am not currently
planning to add the ability to read and process the attached data as well,
though I might add a wrapper class that can convert FITS image data to TIFF
using ImageMagick.


USAGE
-----
```
<?php
  use Phits\Fits\FitsParser;

  $fits = new FitsParser('/tmp/foobar.fits');

  $headers = $fits->getHeaders();
  $naxis   = $fits->getNaxis(0);
?>
```

ACKNOWLEDGEMENTS
----------------
This project is based on pre-existing open source FITS libraries and I have
used both of them to help me write this parser:

* https://github.com/astrojs/fitsjs
* https://github.com/siravan/fits

As opposed to the Go parser, Phits also handles CONTINUE headers for longer
string comments.

FITS?
-----
See http://heasarc.nasa.gov/docs/heasarc/fits.html for more information.

{'fraction_non_alphanumeric': 0.13209442491210446, 'fraction_numerical': 0.0010045203415369162, 'mean_word_length': 3.600461893764434, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '4751464', 'n_tokens_mistral': 627, 'n_tokens_neox': 588, 'n_words': 249}