Giter Site home page Giter Site logo

frcsdata's Introduction

@speleotica/frcsdata

CircleCI Coverage Status semantic-release Commitizen friendly npm version

Parser for Chip Hopper's survey data format used in Fisher Ridge Cave System

Parse function variants

AsyncIterable: parseFrcsXFile(file: string, lines: AsyncIterable<string>): Promise<FrcsXFile>

These can be imported from the package root (@speleotica/frcsdata). The other variants wrap these.

String: parseFrcsXFile(file: string, data: string): Promise<FrcsXFile>

These can be imported from @speleotica/frcsdata/string.

Node: parseFrcsXFile(file: string): Promise<FrcsXFile>

These can be imported from @speleotica/frcsdata/node and read the given file from disk. They require Node >=12.

File types

I'm not going to document this much right now but there are three types of files:

Survey Files

These files typically look like cdata.fr where the extension is actually an abbrevation of the cave name.

import { parseFrcsSurveyFile } from '@speleotica/frcsdata'
import { parseFrcsSurveyFile } from '@speleotica/frcsdata/node'
import { parseFrcsSurveyFile } from '@speleotica/frcsdata/string'

These functions return a Promise that resolves to an FrcsSurveyFile.

Trip Summary Files

These files typically look like STAT_sum.txt.

import { parseFrcsTripSummaryFile } from '@speleotica/frcsdata'
import { parseFrcsTripSummaryFile } from '@speleotica/frcsdata/node'
import { parseFrcsTripSummaryFile } from '@speleotica/frcsdata/string'

These functions return a Promise that resolves to an FrcsTripSummaryFile.

Plot Files

These files typically look like FOR008.fr where the extension is actually an abbrevation of the cave name.

import { parseFrcsPlotFile } from '@speleotica/frcsdata'
import { parseFrcsPlotFile } from '@speleotica/frcsdata/node'
import { parseFrcsPlotFile } from '@speleotica/frcsdata/string'

These functions return a Promise that resolves to an FrcsPlotFile.

frcsdata's People

Contributors

jedwards1211 avatar

Watchers

James Cloos avatar

frcsdata's Issues

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.