{"id":27025949,"url":"https://github.com/juliadatacubes/yaxarraybase.jl","last_synced_at":"2025-04-04T22:15:40.753Z","repository":{"id":40414060,"uuid":"254372701","full_name":"JuliaDataCubes/YAXArrayBase.jl","owner":"JuliaDataCubes","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-17T11:02:29.000Z","size":133,"stargazers_count":3,"open_issues_count":6,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T14:07:36.328Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JuliaDataCubes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-04-09T13:02:05.000Z","updated_at":"2024-12-17T11:02:25.000Z","dependencies_parsed_at":"2023-11-10T13:04:06.439Z","dependency_job_id":"cbbd5661-e5b4-4669-9f9a-4548952bffb2","html_url":"https://github.com/JuliaDataCubes/YAXArrayBase.jl","commit_stats":{"total_commits":60,"total_committers":3,"mean_commits":20.0,"dds":0.1166666666666667,"last_synced_commit":"c9d7d6d34a252697ecc3b1a5e30e9b3c531a3e5f"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaDataCubes%2FYAXArrayBase.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaDataCubes%2FYAXArrayBase.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaDataCubes%2FYAXArrayBase.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaDataCubes%2FYAXArrayBase.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JuliaDataCubes","download_url":"https://codeload.github.com/JuliaDataCubes/YAXArrayBase.jl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247256100,"owners_count":20909240,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-04T22:15:40.171Z","updated_at":"2025-04-04T22:15:40.745Z","avatar_url":"https://github.com/JuliaDataCubes.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YAXArrayBase.jl\n\n![Lifecycle](https://img.shields.io/badge/lifecycle-maturing-blue.svg)\n[![][codecov-img]][codecov-url]\n\n[codecov-img]: https://codecov.io/gh/JuliaDataCubes/YAXArrayBase.jl/branch/master/graph/badge.svg\n[codecov-url]: https://codecov.io/gh/JuliaDataCubes/YAXArrayBase.jl\n\n# YAXArrayBase\n\nA package defining an interface to work with named dimension that might have values associated with them.\n\n## Suported backends:\n\n- DimensionalData\n- AxisArrays\n- AxisIndices\n- YAXArrays\n- NamedDims\n- ArchGDAL raster types\n\n# Usage\n\n## Conversion between axis array types\n\n````julia\nusing AxisArrays, DimensionalData, YAXArrayBase\na = AxisArray(rand(10,2), row = 11:20, col=[\"One\",\"Two\"])\n````\n````\n2-dimensional AxisArray{Float64,2,...} with axes:\n    :row, 11:20\n    :col, [\"One\", \"Two\"]\nAnd data, a 10×2 Array{Float64,2}:\n 0.0467821  0.116614\n 0.944797   0.827642\n 0.593597   0.883222\n 0.365977   0.368537\n 0.486696   0.591154\n 0.622487   0.572724\n 0.805211   0.0480554\n 0.570345   0.627014\n 0.687585   0.936112\n 0.149575   0.237352\n ````\n\n ````julia\n yaxconvert(DimensionalArray,a)\n ````\n ````\n DimensionalArray with dimensions:\n Dim row (type Dim): 11:20\n Dim col (type Dim): String[One, Two]\nand data: 10×2 Array{Float64,2}\n 0.0467821  0.116614\n 0.944797   0.827642\n 0.593597   0.883222\n 0.365977   0.368537\n 0.486696   0.591154\n 0.622487   0.572724\n 0.805211   0.0480554\n 0.570345   0.627014\n 0.687585   0.936112\n 0.149575   0.237352\n````\n\n## The axis array interface\n\nThis is done through the axis array interface, the most important functions are `dimvals` and `dimnames`:\n\n````julia\ndimnames(a)\n````\n````\n(:row, :col)\n````\n\n````julia\ndimvals(a,1)\n````\n````\n11:20\n````\n\nLook at `src/axisinterface` to get a full description of the interface.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliadatacubes%2Fyaxarraybase.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuliadatacubes%2Fyaxarraybase.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliadatacubes%2Fyaxarraybase.jl/lists"}