Git Product home page Git Product logo

fits_parser's Introduction

fits_parser

A parser with an interactive menu that can extract details from a FITS (Flexible Image Transport System) file, and lets the user:

  • query keywords to get their values, and
  • update values of keywords in file.

How to build and run:

This project uses CMake, so if you don't have it, you'll need to get it from here before proceeding.
You can also install it through Cygwin (Windows), MacPorts (MacOS), Homebrew (MacOS/Linux) or MSYS2 (Windows).

Once CMake is installed:

  1. Open a terminal.
  2. cd to the directory where you want to download the repo
  3. git clone https://github.com/rishi255/fits_parser.git
  4. Once done, follow these steps to build:
    • cd fits_parser
    • cmake --build . --config Release
  5. To run the project:
    • cd build
    • ./FITS_Parser.exe (for Windows) or ./FITS_Parser (for Unix)
  6. Important: The FITS files that you want to parse have to be stored in the /fits_files subdirectory of the root. This is the directory the program searches for the FITS files in.

Current features:

Can parse all HDUs (primary HDU and standard eXTENSIONs - IMAGE, BINTABLE and TABLE)

  • DISPLAY - displays all keywords (HDU wise) with associated values and / comments present in the file.
    • DISPLAY [HDU NUMBER] - displays all records from specified HDU number (0 for primary HDU, 1 for first extension and so on)
  • UPDATE [HDU NUMBER] [KEYWORD] [VALUE] - update existing value of provided keyword with provided value.
    • if [VALUE] is of invalid format/size, handles it accordingly.
      (eg. if value is a character string, checks for single quotes at front and back, adds closing quote if not present.)
  • [KEYWORD] - displays value of provided keyword (HDU wise, shows all results if keyword present in more than one HDU)
  • COMMENT - displays all comments (HDU wise) in the order they are found in the file.
  • END - end program.

Limitations:

  • Unable to handle long-string keywords (CONTINUE).
  • Currently unable to handle HISTORY keywords, and can perform no actions on them.
  • Unable to handle extensions, can only extract primary header.

fits_parser's People

Contributors

rishi255 avatar

Stargazers

Deep khurana avatar Gopi Krishna Menon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.