{"id":22756455,"url":"https://github.com/gher-uliege/seadatacloud","last_synced_at":"2025-03-30T07:44:23.383Z","repository":{"id":84768523,"uuid":"78867128","full_name":"gher-uliege/SeaDataCloud","owner":"gher-uliege","description":"Tools and interfaces to work with DIVA interpolation software tool. ","archived":false,"fork":false,"pushed_at":"2022-02-08T10:42:08.000Z","size":24422,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-05T10:12:34.809Z","etag":null,"topics":["data-analysis","data-visualization","interpolation","nco","netcdf","ocean-sciences","oceanography"],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gher-uliege.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-01-13T16:49:22.000Z","updated_at":"2022-02-08T10:42:12.000Z","dependencies_parsed_at":"2023-03-13T02:24:37.215Z","dependency_job_id":null,"html_url":"https://github.com/gher-uliege/SeaDataCloud","commit_stats":{"total_commits":214,"total_committers":8,"mean_commits":26.75,"dds":0.6355140186915889,"last_synced_commit":"e38218638c8e0155fc51869489a796ac6e53dbb7"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gher-uliege%2FSeaDataCloud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gher-uliege%2FSeaDataCloud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gher-uliege%2FSeaDataCloud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gher-uliege%2FSeaDataCloud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gher-uliege","download_url":"https://codeload.github.com/gher-uliege/SeaDataCloud/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246290571,"owners_count":20753724,"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":["data-analysis","data-visualization","interpolation","nco","netcdf","ocean-sciences","oceanography"],"created_at":"2024-12-11T07:13:48.224Z","updated_at":"2025-03-30T07:44:23.348Z","avatar_url":"https://github.com/gher-uliege.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SeaDataCloud\nTools and interfaces to work with DIVA interpolation software tool. \n\n## Re-gridding\n\nRe-gridding is the action of interpolation a field from a grid to another grid, usually with a higher resolution.     \n[nco](http://nco.sourceforge.net) provides a tool [`ncremap`](http://nco.sourceforge.net/nco.html#ncremap) for this purpose. \n\n### Installation\n\n1. Download and compile [ESMF](https://earthsystemmodeling.org/download/)\n2. Download a recent version of nco.\n\n### Usage\n\n```bash\nncremap -i data.nc -d grid.nc -o data_regridded.nc\n```\nwhere:\n- *data.nc* is the original file containing the fields,\n- *grid.nc* is another file containing the new grid\n- *data_regridded.nc* is the final output file with the fields interpolated onto the new grid.\n\nThe grid file looks like:\n```\ndimensions:\n\tlongitude = 851 ;\n\tlatitude = 321 ;\nvariables:\n\tfloat longitude(longitude) ;\n\t\tlongitude:units = \"degrees east\" ;\n\tfloat latitude(latitude) ;\n\t\tlatitude:units = \"degrees north\" ;\n}\n```\n\nNote that the input file needs to have lon and lat as coordinates. If that's not te case, one can always use [`ncrename`](https://linux.die.net/man/1/ncrename), for instance:\n```bash\nncrename -d x,lon -v x,lon in.nc\n```\n* the dimension *x* is renamed *lon*\n* the variable *x* is renamed *lon*\n\n### Troubleshooting\n\n#### NetCDF \n\nIf you get errors related to netCDF, define the environment variables as in:     \nhttp://www.earthsystemmodeling.org/esmf_releases/last_built/ESMF_usrdoc/node9.html#SECTION00093200000000000000\n\n#### Grid file\n\nIt seems that the dimensions should be named *longitude* and *latitude*, otherwise the result is strange.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgher-uliege%2Fseadatacloud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgher-uliege%2Fseadatacloud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgher-uliege%2Fseadatacloud/lists"}