Menu

Tree [bf7800] master /
 History

HTTPS access


File Date Author Commit
 .gitignore 2015-12-06 Daniil Belyakov Daniil Belyakov [26c2e9] Add Data to gitignore
 LICENSE.md 2015-04-11 Daniil Belyakov Daniil Belyakov [d3beab] Add License and Readme information
 README.md 2015-12-10 Daniil Belyakov Daniil Belyakov [618548] Update readme
 alcdef.c 2015-12-10 Daniil Belyakov Daniil Belyakov [bf7800] Polish the code and comments
 alcdef.h 2015-12-10 Daniil Belyakov Daniil Belyakov [bf7800] Polish the code and comments
 alcdef_to_json.c 2015-12-10 Daniil Belyakov Daniil Belyakov [bf7800] Polish the code and comments
 alcdef_to_json.h 2015-12-10 Daniil Belyakov Daniil Belyakov [bf7800] Polish the code and comments
 main.c 2015-12-10 Daniil Belyakov Daniil Belyakov [bf7800] Polish the code and comments

Read Me

The ALCDEF 2.0 to JSON Converter is a tool for conversion astronomic data in
ALCDEF 2.0 format to more popular and generic JSON data interchange format.

The main conversion points are as follows:
- All JSON keys are in lower case
- Boolean strings from ALCDEF are represented as booleans in JSON
- String values from ALCDEF are escaped in JSON; commas are replaced with dots
- Doubles including the Julian Date are represented as doubles
- In the flat mode, data entries are suffixed with their index numbers
- In the nested mode, data entries are put into arrays, each element of such
arrays being an object with subfields of data represented as key-value pairs

Flags

The program currently accepts the following flags:
* --fromFile (upcoming) or --fromDir - required, with a single argument;
the argument defines the address of the input ALCDEF file or directory with
such files, respectively
* --toFile or --toDir (upcoming) - required, with a single argument;
the argument defines the address of the output JSON file or directory for
such files in case of dir-to-dir conversion; the output file(s) is/are
created automatically if not exist
* --flat - optional, with no arguments; defines the flat operation mode
(flat or nested); default choice is nested

Example use case

alcdef2json --fromDir C://alcdef/ --toFile C://json/alcdefs.json --flat
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.