Git Product home page Git Product logo

yaxarraybase.jl's Introduction

YAXArrayBase.jl

Lifecycle Build Status codecov.io

YAXArrayBase

A package defining an interface to work with named dimension that might have values associated with them.

Suported backends:

  • DimensionalData
  • AxisArrays
  • AxisIndices
  • YAXArrays
  • NamedDims
  • ArchGDAL raster types

Usage

Conversion between axis array types

using AxisArrays, DimensionalData, YAXArrayBase
a = AxisArray(rand(10,2), row = 11:20, col=["One","Two"])
2-dimensional AxisArray{Float64,2,...} with axes:
    :row, 11:20
    :col, ["One", "Two"]
And data, a 10×2 Array{Float64,2}:
 0.0467821  0.116614
 0.944797   0.827642
 0.593597   0.883222
 0.365977   0.368537
 0.486696   0.591154
 0.622487   0.572724
 0.805211   0.0480554
 0.570345   0.627014
 0.687585   0.936112
 0.149575   0.237352
yaxconvert(DimensionalArray,a)
DimensionalArray with dimensions:
Dim row (type Dim): 11:20
Dim col (type Dim): String[One, Two]
and data: 10×2 Array{Float64,2}
0.0467821  0.116614
0.944797   0.827642
0.593597   0.883222
0.365977   0.368537
0.486696   0.591154
0.622487   0.572724
0.805211   0.0480554
0.570345   0.627014
0.687585   0.936112
0.149575   0.237352

The axis array interface

This is done through the axis array interface, the most important functions are dimvals and dimnames:

dimnames(a)
(:row, :col)
dimvals(a,1)
11:20

Look at src/axisinterface to get a full description of the interface.

yaxarraybase.jl's People

Contributors

meggart 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.