Giter Club home page Giter Club logo

codata's Introduction

Introduction

codata is a Fortran library providing the latest codata constants (2022) and older values (2018, 2014 and 2010). The raw codata are taken from http://physics.nist.gov/constants. The constants (values and uncertainties) are implemented as double precision reals. C API allows usage from C, or can be used as a basis for other wrappers. Python wrapper allows easy usage from Python.

The names are quite long and can be aliased with shorter names.

To use codata within your fpm project, add the following to your fpm.toml file:

    [dependencies]
    codata = { git="https://github.com/MilanSkocic/codata.git" }

Notes:

  • The latest codata constants were integrated in the stdlib. The constants are implemented as derived type which carries the name, the value, the uncertainty and the unit. This library will be complementary to the constants defined in the stdlib by providing older values for the constants.

  • If you only need sources for the codata constants that you can integrate directly in your sources you may be interested by https://github.com/vmagnin/fundamental_constants.

Dependencies

gcc>=10
gfortran>=10
fpm>=0.7
fypp>=3.0

Installation

A Makefile is provided, which uses fpm, for building the library.

  • On windows, msys2 needs to be installed. Add the msys2 binary (usually C:\msys64\usr\bin) to the path in order to be able to use make.
  • On Darwin, the gcc toolchain needs to be installed.

Build: the configuration file will set all the environment variables necessary for the compilation

    chmod +x configure.sh
    . ./configure.sh
    make

Run tests

    make test

Install

    make install

Uninstall

    make uninstall

License

MIT

codata's People

Contributors

milanskocic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

caguerra

codata's Issues

Tests

Write proper tests for constants.

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.