Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better CCD Json #80

Merged
merged 9 commits into from
May 14, 2020
Merged

Better CCD Json #80

merged 9 commits into from
May 14, 2020

Conversation

local-minimum
Copy link
Contributor

@local-minimum local-minimum commented May 14, 2020

Resolves #63

  • Convert exposure time to nanoseconds and actual iso-time
  • Flatten structure so BC (Bad pixels) are right next to the rest of the header info.
  • Expands complex fields such as WDW to its understandable parts

Example:

{
  "origin":{
    "name":"MyArchive1_20200428-204613_20200428-205254.rac",
    "processingTime":"2020-05-14T08:33:07.914698855+02:00"
  },
  "ramsesHeader":{
    "specification":"SPU045-S2:6F",
    "ramsesTime":"2020-04-28T20:52:31.819Z"
  },
  "ramsesTMHeader":{
    "qualityIndicator":0,
    "lossFlag":0,
    "vcFrameCounter":0
  },
  "sourceHeader":{
    "specification":"IS-OSE-ICD-0005:1",
    "spSequenceCount":9651
  },
  "tmHeader":{
    "tmHeaderTime":"1980-01-06T00:52:57.634429932Z",
    "tmHeaderNanoseconds":3177634429932
  },
  "SID":"",
  "RID":"CCD2",
  "data":{
    "specification":"AEZICD002:H",
    "CCDSEL":2,
    "EXPNanoseconds":3166060363770,
    "EXPDate":"1980-01-06T00:52:46.06036377Z",
    "WDWMode":"Manual",
    "WDWInputDataWindow":"12..1",
    "WDWOV":0,
    "JPEGQ":95,
    "FRAME":2,
    "NROW":250,
    "NRBIN":2,
    "NRSKIP":0,
    "NCOL":500,
    "NCBINFPGAColumns":1,
    "NCBINCCDColumns":4,
    "NCSKIP":0,
    "NFLUSH":1023,
    "TEXPMS":5000,
    "GAINMode":"High",
    "GAINTiming":"Faster",
    "TEMP":4088,
    "FBINOV":0,
    "LBLNK":300,
    "TBLNK":310,
    "ZERO":119,
    "TIMING1":5149,
    "TIMING2":518,
    "VERSION":50,
    "TIMING3":41987,
    "NBC":0,
    "BC":[

    ]
  }
}

Testing

I couldn't come up with very interesting tests that wouldn't become very annoying as soon as anything changes so I opted for just testing that the jsonification doesn't cause errors and that the final output is a valid json.

@local-minimum local-minimum requested a review from a team May 14, 2020 06:37
@local-minimum local-minimum merged commit 64f2c7e into master May 14, 2020
@local-minimum local-minimum deleted the ccd-better-json branch May 14, 2020 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve Image JSON
2 participants