{"id":27289253,"url":"https://github.com/mgduda/convert_mpas","last_synced_at":"2026-01-21T22:31:52.958Z","repository":{"id":46152404,"uuid":"59519208","full_name":"mgduda/convert_mpas","owner":"mgduda","description":"A general conversion utility for MPAS-Atmosphere output files","archived":false,"fork":false,"pushed_at":"2024-07-03T19:57:06.000Z","size":100,"stargazers_count":15,"open_issues_count":1,"forks_count":20,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-11T21:13:59.152Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Fortran","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/mgduda.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-05-23T21:21:46.000Z","updated_at":"2025-04-08T17:57:12.000Z","dependencies_parsed_at":"2024-02-29T02:23:43.492Z","dependency_job_id":"39c15eb0-bc21-46b1-9a13-bed12827308f","html_url":"https://github.com/mgduda/convert_mpas","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mgduda/convert_mpas","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgduda%2Fconvert_mpas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgduda%2Fconvert_mpas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgduda%2Fconvert_mpas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgduda%2Fconvert_mpas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mgduda","download_url":"https://codeload.github.com/mgduda/convert_mpas/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgduda%2Fconvert_mpas/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28645549,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T21:29:11.980Z","status":"ssl_error","status_checked_at":"2026-01-21T21:24:31.872Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":"2025-04-11T21:13:56.900Z","updated_at":"2026-01-21T22:31:52.945Z","avatar_url":"https://github.com/mgduda.png","language":"Fortran","funding_links":[],"categories":[],"sub_categories":[],"readme":"convert_mpas\n============\n\nThe 'convert_mpas' project aims to develop a general framework for mapping \nnative MPAS output to other meshes.\n\n## Compiling:\n\nAfter selecting a Fortran compiler and associated compiler flags with the FC and FFLAGS\nvariables in the top-level Makefile, the 'convert_mpas' program may be compiled by \nsimply running 'make'.\n\n\n## Running:\n\nThe 'convert_mpas' program takes one or more command-line arguments:\n- If only one argument is given, both the MPAS mesh information and \n  the fields will be read from the specified file.\n- If two or more file arguments are given, the MPAS mesh information will \n  be read from the first file and fields to be remapped will be read from\n  the subsequent files.\n\nAll time records from input files will be processed and appended to the output \nfile, which is named 'latlon.nc'.\n\nRunning 'convert_mpas' with no command-line arguments will print a usage summary.\n\nBy default, the 'convert_mpas' will remap all integer, real, or double-precision\nfields that it finds in the input data file. However, by creating a list of\nfields in a file named 'include_fields' in the run directory, with one field name \nper line, the 'convert_mpas' program will remap only those fields listed in \nthe file. Alternatively, one can create a list of fields to be excluded from \nthe output file; this list should be written to a file named 'exclude_fields'.\nIf both an 'include_fields' file and an 'exclude_fields' file are present in \nthe run directory, only fields listed in the 'include_fields' file will be \nremapped, and the contents of the 'exclude_fields' file are ignored.\n\nThe target domain defaults to a 0.5x0.5-degree global lat-lon grid. However, one\nmay specify an alternate target domain using a file named 'target_domain' in \nthe run directory. This file may contain lines assigning values to keywords, i.e.,\n\nkeyword = value\n\nThe following are available keywords for describing the target domain:\n - nlat : the number of latitude points in the grid (default value 360)\n - nlon : the number of longitude points in the grid (default value 720)\n - startlat : the starting latitude (default value -90.0)\n - startlon : the starting longitude (default value -180.0)\n - endlat : the ending latitude (default value 90.0)\n - endlon : the ending longitude (default value 180.0)\n\nThe actual points to which fields are interpolated are determined by dividing\nthe latitude and longitude ranges into the specified number of intervals, then\nlocating the interpolation points at the center of these intervals. For example,\nspecifying startlat=0, endlat=10, and nlat=10 would result in target latitudes\nof 0.5, 1.5, ..., 8.5, and 9.5.\n\n## Interpolation methodology:\n\nInteger fields are remapped to the target grid using a nearest-neighbor scheme.\nFor all real-valued (single- or double-precision) fields, the 'convert_mpas' program\nemploys a barycentric interpolation, the output of which is C0 continuous. Cell-based\nfields in the MPAS mesh are sampled from the three cell centers that form the vertices\nof the Delaunay triangle containing the target point. Vertex- and edge-based fields\nare sampled from the corners or faces, respectively, of the Voronoi cell containing\nthe target point.\n\n## To-do:\n- Transfer 'xtime' variable from input files to output file\n- Ensure that, for cell fields, the interpolation location lies within the triangle \n  used for interpolation\n- Make sure that, when dealing with existing output files, the target mesh matches\n  what is found in the output file\n- Experiment with OpenMP directives to speed up interpolation\n- Allow locations of 'include_fields', 'exclude_fields', and 'target_domain' files\n  to be specified with environment variables\n- Decide what to do if input file contains no unlimited dimension\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgduda%2Fconvert_mpas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmgduda%2Fconvert_mpas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgduda%2Fconvert_mpas/lists"}