{"id":13935193,"url":"https://github.com/wsijp/spacegrids","last_synced_at":"2026-04-04T14:35:57.995Z","repository":{"id":13046433,"uuid":"15726417","full_name":"wsijp/spacegrids","owner":"wsijp","description":"Analyze spatial Netcdf data: \"Numpy on grids\" (Python module)","archived":false,"fork":false,"pushed_at":"2025-11-06T23:19:37.000Z","size":6243,"stargazers_count":14,"open_issues_count":3,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-01-13T19:50:58.814Z","etag":null,"topics":["coordinates","netcdf","plotting","python"],"latest_commit_sha":null,"homepage":"http://nbviewer.ipython.org/github/willo12/spacegrids/blob/master/Spacegrids.ipynb","language":"Jupyter Notebook","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/wsijp.png","metadata":{"files":{"readme":"README","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}},"created_at":"2014-01-08T05:27:17.000Z","updated_at":"2025-11-06T23:19:42.000Z","dependencies_parsed_at":"2022-09-19T14:10:29.039Z","dependency_job_id":null,"html_url":"https://github.com/wsijp/spacegrids","commit_stats":null,"previous_names":["willo12/spacegrids"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/wsijp/spacegrids","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wsijp%2Fspacegrids","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wsijp%2Fspacegrids/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wsijp%2Fspacegrids/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wsijp%2Fspacegrids/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wsijp","download_url":"https://codeload.github.com/wsijp/spacegrids/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wsijp%2Fspacegrids/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31402989,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"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":["coordinates","netcdf","plotting","python"],"created_at":"2024-08-07T23:01:27.708Z","updated_at":"2026-04-04T14:35:57.973Z","avatar_url":"https://github.com/wsijp.png","language":"Jupyter Notebook","readme":"Spacegrids\n==========\n\nSpacegrids is an open source library providing a Numpy array with grids, labelled axes and associated grid-related mathematical methods such as regridding and integration. Spacegrids provides an object data model of Netcdf data that ensures consistency between a Numpy data array and its grid under common operations (and so avoiding common pitfalls related to axis interpretation), and much more. It is a write less do more library for everyday use.\n\nThe Field, Gr (grid) and Coord objects make everyday use easy:\n\n    \u003e\u003e\u003e import spacegrids as sg\t\t\n    \u003e\u003e\u003e D = sg.info(nonick = True)  \n    \u003e\u003e\u003e P = sgPproject(D['my_project'] , nonick = True)  \n    \u003e\u003e\u003e P.load(['temperature','u'])  \n    \u003e\u003e\u003e # obtain the axes under their names T,X,Y,Z in namespace:\n    \u003e\u003e\u003e for c in P['some_experiment'].axes:\n    \u003e\u003e\u003e   exec c.name + ' = c'\t\n    \u003e\u003e\u003e TEMP = P['some_experiment']['temperature'] \n    \u003e\u003e\u003e U = P['some_experiment']['u'] # zonal velocity\n    \u003e\u003e\u003e TEMP_sliced = TEMP[Y,:50] # slice in Y-direction\n    \u003e\u003e\u003e m_TEMP = TEMP_sliced/(X*Y) # take zonal mean\n    \u003e\u003e\u003e TEMP_regridded = TEMP.regrid(U.gr)  # U on different grid\n \n\nFeatures\n--------\n\n- A numpy array with grid allowing automatic alignment and dimension broadcasting\n- Easy to use and intuitive regridding functionality\n- A data object model corresponding closely to Netcdf\n- Easier IO via abstraction of IO with multiple Netcdf files\n- Makes working with output of many experiments easy via aggregation methods\n- The Field class eliminates errors arising from picking the wrong array index\n- Quicker plotting due to automatic labels, axes etc.\n- Distance-related methods such as spatial differentiation and integration on sphere\n- Extensive unit tests and documentation\n\nThere is lots of documentation, both in the source code and elsewhere. Other documentation can be found at: \n\n- `a practical tutorial \u003chttp://nbviewer.ipython.org/github/willo12/spacegrids/blob/master/Spacegrids.ipynb\u003e`_ \n- `a more advanced tutorial \u003chttp://nbviewer.ipython.org/github/willo12/spacegrids/blob/master/advanced.ipynb\u003e`_ \n- `an overview of all classes, methods and functions \u003chttp://web.maths.unsw.edu.au/~wsijp/html/index.html\u003e`_ \n\n\nInstallation\n------------\n\nInstall spacegrids simply by running (on command line):\n\n    pip install spacegrids\n\nOn Mac, pip can be installed via \"sudo easy_install pip\". On Ubuntu/ Debian, install dependencies via package manager if pip install fails:\n\n    apt-get install python-{tk,numpy,matplotlib,scipy}\n\n\nContribute\n----------\n\n- Issue Tracker: github.com/willo12/spacegrids/issues\n- Source Code: github.com/willo12/spacegrids\n\nSupport\n-------\n\nIf you are having issues, please let us know.\n\nLicense\n-------\n\nThe project is licensed under the BSD license.\n","funding_links":[],"categories":["Jupyter Notebook"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwsijp%2Fspacegrids","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwsijp%2Fspacegrids","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwsijp%2Fspacegrids/lists"}