{"id":13937425,"url":"https://github.com/perrette/dimarray","last_synced_at":"2026-02-16T10:38:36.092Z","repository":{"id":12284178,"uuid":"14909446","full_name":"perrette/dimarray","owner":"perrette","description":"dimarray: labelled array with dimensions, metadata and netCDF archiving","archived":false,"fork":false,"pushed_at":"2023-03-20T10:57:00.000Z","size":7377,"stargazers_count":16,"open_issues_count":6,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-12-29T04:41:20.236Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"dimarray.readthedocs.org","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"romaonthego/RESideMenu","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/perrette.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-12-04T00:04:03.000Z","updated_at":"2023-03-20T08:05:59.000Z","dependencies_parsed_at":"2024-05-02T23:03:55.485Z","dependency_job_id":"a610729b-f6c9-4b04-a991-c90a7e9a3ff6","html_url":"https://github.com/perrette/dimarray","commit_stats":{"total_commits":733,"total_committers":3,"mean_commits":"244.33333333333334","dds":0.07639836289222379,"last_synced_commit":"b506a8cd05182f6af5578c4c0677b1accf2f2d07"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/perrette/dimarray","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perrette%2Fdimarray","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perrette%2Fdimarray/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perrette%2Fdimarray/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perrette%2Fdimarray/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/perrette","download_url":"https://codeload.github.com/perrette/dimarray/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perrette%2Fdimarray/sbom","scorecard":{"id":728060,"data":{"date":"2025-08-11","repo":{"name":"github.com/perrette/dimarray","commit":"ed974c1803772231ab78f2dbe378d9bce2a706c7"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/tox.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tox.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/perrette/dimarray/tox.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tox.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/perrette/dimarray/tox.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/tox.yml:22","Warn: pipCommand not pinned by hash: .github/workflows/tox.yml:23","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2021-437 / GHSA-5xp3-jfq3-5q8x","Warn: Project is vulnerable to: PYSEC-2020-173 / GHSA-gpvv-69j7-gwj8","Warn: Project is vulnerable to: PYSEC-2023-228 / GHSA-mq26-g339-26xf","Warn: Project is vulnerable to: PYSEC-2025-49 / GHSA-5rjg-fvgr-3xxf","Warn: Project is vulnerable to: GHSA-cx63-2mw6-8hw5","Warn: Project is vulnerable to: PYSEC-2022-43012 / GHSA-r9hx-vwmv-q579"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T13:28:52.069Z","repository_id":12284178,"created_at":"2025-08-22T13:28:52.069Z","updated_at":"2025-08-22T13:28:52.069Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29506246,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T09:05:14.864Z","status":"ssl_error","status_checked_at":"2026-02-16T08:55:59.364Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2024-08-07T23:03:35.126Z","updated_at":"2026-02-16T10:38:36.016Z","avatar_url":"https://github.com/perrette.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"Introduction\n============\n\n.. image:: https://github.com/perrette/dimarray/actions/workflows/tox.yml/badge.svg\n   :target: https://github.com/perrette/dimarray/actions/workflows/tox.yml\n\nNumpy array with dimensions\n---------------------------\ndimarray is a package to handle numpy arrays with labelled dimensions and axes. \nInspired from pandas, it includes advanced alignment and reshaping features and \nas well as missing-value (NaN) handling.\n\nThe main difference with pandas is that it is generalized to N dimensions, and behaves more closely to a numpy array. \nThe axes do not have fixed names ('index', 'columns', etc...) but are \ngiven a meaningful name by the user (e.g. 'time', 'items', 'lon' ...). \nThis is especially useful for high dimensional problems such as sensitivity analyses.\n\nA natural I/O format for such an array is netCDF, common in geophysics, which relies on \nthe netCDF4 package, and supports metadata.\n\n\nLicense\n-------\ndimarray is distributed under a 3-clause (\"Simplified\" or \"New\") BSD\nlicense. Parts of basemap which have BSD compatible licenses are included.\nSee the LICENSE file, which is distributed with the dimarray package, for details.\n\nGetting started\n---------------\n\nA **``DimArray``** can be defined just like a numpy array, with\nadditional information about its dimensions, which can be provided\nvia its `axes` and `dims` parameters:\n\n\u003e\u003e\u003e from dimarray import DimArray\n\u003e\u003e\u003e a = DimArray([[1.,2,3], [4,5,6]], axes=[['a', 'b'], [1950, 1960, 1970]], dims=['variable', 'time']) \n\u003e\u003e\u003e a\ndimarray: 6 non-null elements (0 null)\n0 / variable (2): 'a' to 'b'\n1 / time (3): 1950 to 1970\narray([[1., 2., 3.],\n       [4., 5., 6.]])\n\nIndexing now works on axes\n\n\u003e\u003e\u003e a['b', 1970]\n6.0\n\nOr can just be done **a la numpy**, via integer index:\n\n\u003e\u003e\u003e a.ix[0, -1]\n3.0\n\nBasic numpy transformations are also in there:\n\n\u003e\u003e\u003e a.mean(axis='time')\ndimarray: 2 non-null elements (0 null)\n0 / variable (2): 'a' to 'b'\narray([2., 5.])\n\nCan export to `pandas` for pretty printing:\n\n\u003e\u003e\u003e a.to_pandas()\ntime      1950  1960  1970\nvariable                  \na          1.0   2.0   3.0\nb          4.0   5.0   6.0\n\n\n.. _links:\n\nUseful links\n------------\n================================    ====================================\nDocumentation                       http://dimarray.readthedocs.org\nCode on github (bleeding edge)      https://github.com/perrette/dimarray\nCode on pypi   (releases)           https://pypi.python.org/pypi/dimarray\nIssues Tracker                      https://github.com/perrette/dimarray/issues\n================================    ====================================\n\nInstall\n-------\n\n**Requirements**:\n\n- python \u003e= 3.7\n- numpy (latest test with version 1.21.5)\n\n**Optional**:\n\n- netCDF4 (tested with 1.0.8, 1.2.1) (netCDF archiving) (see notes below)\n- matplotlib 1.1 (plotting)\n- pandas 0.11 (interface with pandas)\n\nDownload the latest version from github and extract from archive\nThen from the dimarray repository type (possibly preceded by sudo):\n\n.. code:: bash\n    \n    python setup.py install  \n\nAlternatively, you can use pip to download and install the version from pypi (could be slightly out-of-date):\n\n.. code:: bash\n\n    pip install dimarray \n\n\nNotes on installing netCDF4\n^^^^^^^^^^^^^^^^^^^^^^^^^^^\n- On Ubuntu, using apt-get is the easiest way (as indicated at https://github.com/Unidata/netcdf4-python/blob/master/.travis.yml):\n\n\n.. code:: bash\n\n   sudo apt-get install libhdf5-serial-dev netcdf-bin libnetcdf-dev\n\n- On windows binaries are available: http://www.unidata.ucar.edu/software/netcdf/docs/winbin.html\n\n- From source. Installing the netCDF4 python module from source can be cumbersome, because \n  it depends on netCDF4 and (especially) HDF5 C libraries that need to \n  be compiled with specific flags (http://unidata.github.io/netcdf4-python). \n  Detailled information on Ubuntu: https://code.google.com/p/netcdf4-python/wiki/UbuntuInstall\n\n\nContributions\n-------------\nAll suggestions for improvement or direct contributions are very welcome.\nYou can open an `issue` on github for specific requests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperrette%2Fdimarray","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperrette%2Fdimarray","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperrette%2Fdimarray/lists"}