{"id":22752439,"url":"https://github.com/perrette/dataset1d","last_synced_at":"2025-10-09T06:33:37.027Z","repository":{"id":24778794,"uuid":"28192314","full_name":"perrette/dataset1d","owner":"perrette","description":"pandas DataFrame for fortran, with netCDF I/O","archived":false,"fork":false,"pushed_at":"2014-12-24T01:10:14.000Z","size":224,"stargazers_count":19,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T06:44:26.079Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"FORTRAN","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/perrette.png","metadata":{"files":{"readme":"README.md","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-12-18T16:49:28.000Z","updated_at":"2025-01-30T04:08:54.000Z","dependencies_parsed_at":"2022-08-23T05:41:18.429Z","dependency_job_id":null,"html_url":"https://github.com/perrette/dataset1d","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/perrette/dataset1d","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perrette%2Fdataset1d","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perrette%2Fdataset1d/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perrette%2Fdataset1d/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perrette%2Fdataset1d/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/perrette","download_url":"https://codeload.github.com/perrette/dataset1d/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perrette%2Fdataset1d/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000831,"owners_count":26082950,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-12-11T05:11:47.478Z","updated_at":"2025-10-09T06:33:37.009Z","avatar_url":"https://github.com/perrette.png","language":"FORTRAN","funding_links":[],"categories":[],"sub_categories":[],"readme":"dataset1d\n=========\n\n A handy in-memory netCDF Dataset for fortran, for 1-D arrays only (so making it more similar to a pandas DataFrame).\n\nUseful commands:\n\n    use dataset, only: Dataset\n    type(Dataset) :: ds\n\nAllocate memory for an underlying ds%values(:,:) pointer\n\n    call ds%alloc(nvar=3, nlen=5)\n\nDefine variable names (default to \"v1\", \"v2\"...)\n\n    ds%names(1) = \"x\"\n    ds%names(2) = \"v1\"\n    ds%names(3) = \"v2\"\n\nCan set and get variables by name\n\n    call ds%setitem('x', [1.d0, 2.d0, 3.d0, 4.d0, 5.d0])\n    call ds%setitem('v1',ds%getitem('x')**2)\n\nOr directly access the underlying `values` attribute, using the `iname` method\nto obtain the integer position index corresponding to a variable name.\n\n    call ds%values(:, ds%iname('v2')) = ds%values(:, ds%iname('x'))+0.d0\n\nIncludes pretty printing or arrays a la pandas' DataFrame\n\n    call ds%print()\n\n    Dataset(nvar=3, nlen=5)\n              x          v1          v2 \n      1  1.0000E+00 1.0000E+00 1.0000E+00\n      2  2.0000E+00 4.0000E+00 2.0000E+00\n      3  3.0000E+00 9.0000E+00 3.0000E+00\n      4  4.0000E+00 1.6000E+01 4.0000E+00\n      5  5.0000E+00 2.5000E+01 5.0000E+00\n\nAs well as netCDF I/O based on [Alex Robinson's ncio module](https://github.com/alex-robinson/ncio)\n\n    call ds%write_nc('test.nc')\n    call ds%read_nc('test.nc')\n\nAnd some basic functionality such as interpolation\n\n    call ds%set_index(ds%iname(\"x\"))  ! set the x variable as index\n    ds2 = ds%interp([1.d0, 1.5d0,4.d0]) ! interpolate on new axis\n\n    Dataset(nvar=3, nlen=3)\n              x          v1          v2 \n      1  1.0000E+00 1.0000E+00 1.0000E+00\n      2  1.5000E+00 2.5000E+00 1.5000E+00\n      3  4.0000E+00 1.6000E+01 4.0000E+00\n\nIt is also possible to use methods such as slice, compress, take, to index the \ndataset as a whole along the first (index) or second (variable) dimension.\n\nMore functions such as align or reidnex could be built in.\nThe current limitation is that only a single type can be represented in the \nDataFrame (currently double precision), but this has the advantage of being \nefficient. A more, complex, mixed-type and mixed-dimensions dataset will be \npresented in another project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperrette%2Fdataset1d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperrette%2Fdataset1d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperrette%2Fdataset1d/lists"}