{"id":32564018,"url":"https://github.com/euroargodev/terrain-following","last_synced_at":"2025-10-29T03:54:14.597Z","repository":{"id":50710059,"uuid":"382192455","full_name":"euroargodev/terrain-following","owner":"euroargodev","description":"This is the terrain-following interpolation algorithm  documented in Yamazaki+(2020) https://doi.org/10.1029/2019JC015406.","archived":false,"fork":false,"pushed_at":"2022-12-08T08:23:18.000Z","size":1245,"stargazers_count":3,"open_issues_count":3,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-07-30T17:00:18.106Z","etag":null,"topics":["argo","argo-floats","argo-traj","argo-under-ice","dmqc","quality-control"],"latest_commit_sha":null,"homepage":"","language":"Python","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/euroargodev.png","metadata":{"files":{"readme":"readme.txt","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}},"created_at":"2021-07-02T00:53:37.000Z","updated_at":"2024-05-16T15:24:30.000Z","dependencies_parsed_at":"2023-01-25T09:15:51.551Z","dependency_job_id":null,"html_url":"https://github.com/euroargodev/terrain-following","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/euroargodev/terrain-following","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/euroargodev%2Fterrain-following","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/euroargodev%2Fterrain-following/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/euroargodev%2Fterrain-following/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/euroargodev%2Fterrain-following/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/euroargodev","download_url":"https://codeload.github.com/euroargodev/terrain-following/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/euroargodev%2Fterrain-following/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281556916,"owners_count":26521571,"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-29T02:00:06.901Z","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":["argo","argo-floats","argo-traj","argo-under-ice","dmqc","quality-control"],"created_at":"2025-10-29T03:54:11.434Z","updated_at":"2025-10-29T03:54:14.589Z","avatar_url":"https://github.com/euroargodev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is a readme file for the terrain-following interpolation algorithm \ndocumented in Yamazaki+(2020) https://doi.org/10.1029/2019JC015406.\n\nThe codes are originally designed to be applied for Argo data in *_prof.nc format fetched from Argo Global Data Assembly Center.\n\ninterpolation_v2.py\n    ...the interpolation algorithm with some plotting function. This is slightly modified from Yamazaki+(2020) for clarity of the scheme and customizability.\n\nTest trajectory data (testData.csv) is included in this folder, which can be directly loaded to interpolation_v2.py.\nThe result of interpolation for test data is shown in two .png files.\n\nFollowing codes would help pre-processing of the trajectory data:\n\nnc2csv.py\n    ...extract trajectory data and position quality flag (qpos) from netcdf file in the Argo profile format (*_prof.nc).\n\nprocess.py\n    ...change id for data seeming sequential as trajectory by id-cast but problematic in lon-lat coords.\t\n\nFor a trial, you can interpolate testData.csv with the GEBCO 1arcmin topography (GRIDONE_1D.nc),\nwhich you may find at: https://drive.google.com/drive/folders/14RizKyM064OsjEo5J0u0RtzdveD_mU-j?usp=sharing\nThe result of interpolation is presented in two .png files, in which interpolated positions (green) seem to follow the isobaths.\n(Yellow points are linearly interpolated positions, while not all position-lacking data have linearly interpolated positions by default.)\n\nThis scheme is slightly modified from Yamazaki+(2020), such that the \"backward revision\" for interpolated positions obtained by forwarding interpolation (Fig.A, panels c-d) is replaced with the \"weighted average\" for the forwarding and backwarding interpolations, with a weighting function defined from inverted distances from the first and last points of the interpolation section. This modification greatly reduces \"asymmetry\" in interpolated positions, which can result in sharp artificial curves near the end of the interpolation section to connect to the positioned point. By customizing the weighting function and tuning parameters (the length of search range and the searching resolution), you may optimize the scheme for your purpose.\n\nCorrespondence: Kaihe Yamazaki (kaiheyamazaki@gmail.com)\nwritten in 2019 September, modified in 2022 July.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feuroargodev%2Fterrain-following","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feuroargodev%2Fterrain-following","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feuroargodev%2Fterrain-following/lists"}