Code Monkey home page Code Monkey logo

gencodata's Introduction

GENCODATA

gencodata generates physical constant header files in C, Fortran, and Python syntaxes.

Scientific software can suffer from using expressions of physical
constants which are dated or imprecise (i.e., wrong).

gencodata's physical constant values are current and authoritative since they are extracted from the NIST CODATA 2014 document SRD121 , a machine-parsable summary of the primary reference:

CODATA recommended values of the fundamental physical constants: 2014
Peter J. Mohr, David B. Newell,and Barry N. Taylor
REVIEWS OF MODERN PHYSICS, VOLUME 88, JULY-SEPTEMBER 2016 (73 pages)
DOI: 10.1103/RevModPhys.88.035009

The reference article is linked from NIST Reference on Constants,Units,and Uncertainty


USAGE

This example writes the Universal constants (speed of light, Planck, etc)
definitions in Fortran 77 syntax to an output file named "universal.Fh".
gencodata universal --syntax fortran --output universal.Fh

The short form is:

gencodata universal -s f -o universal.Fh

Without arguments, the gencodata command prints:

gencodata generates CODATA physical constants
header files in C, Fortan, or Python(default) syntax.

usage: gencodata [-h] [-l] [-i INPUT] [-o OUTPUT] [-c CSV] [-j JSON]
            [-s SYNTAX]
            [category [category ...]]

For more information, type:

gencodata --help

Copyright 2017, Daniel R. Haney

gencodata's People

Contributors

drhaney avatar

Stargazers

Matt Ernst avatar

Watchers

James Cloos avatar  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.