Git Product home page Git Product logo

fph-parser's Introduction

Fisher & Paykel Icon .FPH parser

Currently only works for SUM****.FPH and DET****.FPH

File format description from sleepyhead wiki

Dump CPAP sessions

$ ./dumpcsv.py data/SUM0001.FPH
timestamp;runtime;usage;leak90;lowPressure;highPressure;apneaEvents;hypoapneaEvents;flowlimitiationEvents;pressure1;pressure2;humiditySetting
2013-10-30 22:42:40;86.4;86.4;22;40;90;1;1;6;40;120;4
2013-10-31 01:16:00;97.2;97.2;16;40;50;0;1;2;40;120;4

Details

$ ./dumpcsv.py data/2013-11-05/DET0001.FPH
timestamp;pressure;totalLeak;apneaDuration;hypoapneaDuration;flowLimitiationDuration
2013-10-30 22:42:40;400;15;0;0;0
2013-10-30 22:44:40;400;15;0;0;0
2013-10-30 22:46:40;500;18;0;0;4
2013-10-30 22:48:40;600;24;0;0;1
2013-10-30 22:50:40;700;20;0;8;0

[...]

2013-11-05 06:39:02;400;20;0;0;0

Dump sleep sessions

CPAP sessions which start less then 2 hours after the end of the last session are grouped together and the values of these sessions are summarized.

$ ./sleeps.py data/SUM0001.FPH
timestamp;runtime;apneaEvents;hypoapneaEvents;flowlimitiationEvents
2013-10-30 22:42:40;28080;3;8;10
2013-10-31 20:11:24;33120;12;17;10
2013-11-01 23:06:38;28080;20;17;14
2013-11-02 22:35:00;25200;11;7;2
2013-11-03 22:35:08;29520;4;13;10
2013-11-04 23:05:12;25920;11;4;8

fph-parser's People

Contributors

jieter avatar

Watchers

 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.