{"id":16618740,"url":"https://github.com/stuntspt/misc_gis_scripts","last_synced_at":"2025-12-12T11:33:27.722Z","repository":{"id":31990854,"uuid":"35561358","full_name":"StuntsPT/Misc_GIS_scripts","owner":"StuntsPT","description":"A place to store my scrpits involving GIS data","archived":false,"fork":false,"pushed_at":"2019-03-14T12:40:42.000Z","size":22,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-17T20:45:39.154Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StuntsPT.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":"2015-05-13T16:43:24.000Z","updated_at":"2019-03-14T12:40:43.000Z","dependencies_parsed_at":"2022-08-26T11:44:20.069Z","dependency_job_id":null,"html_url":"https://github.com/StuntsPT/Misc_GIS_scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StuntsPT%2FMisc_GIS_scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StuntsPT%2FMisc_GIS_scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StuntsPT%2FMisc_GIS_scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StuntsPT%2FMisc_GIS_scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StuntsPT","download_url":"https://codeload.github.com/StuntsPT/Misc_GIS_scripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242980782,"owners_count":20216285,"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":[],"created_at":"2024-10-12T02:21:22.353Z","updated_at":"2025-12-12T11:33:22.669Z","avatar_url":"https://github.com/StuntsPT.png","language":"Python","readme":"# Misc_GIS_scripts\nA place to store my scripts involving GIS data.\n\n## layer_data_extractor.py\n\nScript to extract the values of a rasterfile in a list of provided coordinates.\nRequires a shapefile and rasterfiles.\n\n### Usage:\n\n```\npython layer_data_extractor.py shapefile.csv rasterfile(s)\n```\n\nThe \"shapefile.csv\" should have a header and the following data: LABEL LAT LON.\nThe separator can be any number of spaces and/or tabs.\nEg:\n\n```\nLABEL   LAT LON\nInd.1   41.6611 -7.8747\nInd.2   43.4997 -8.3164\nInd.3   39.5677 -6.6573\n```\n\n\nThe rasterfile(s) can be globed in the shell or provided one by one.\nThe output is sent to STDOUT.\n\n### Example usages:\n\n```bash\npython layer_data_extractor.py ~/shapefile.csv ~/GIS_data/BioClim1.bil ~/GIS_data/BioClim2.bil\n\npython layer_data_extractor.py ~/shapefile.csv ~/GIS_data/BioClim3.bil \u003e Extracted_data.csv  # To export to a file\n```\n\n**Note:** In order to use `.bil` file, the respective `.hdr` files must be placed in the same directory.\n\n\n### Requirements:\n\nThis script requires the package [python-gdal](https://pypi.python.org/pypi/GDAL/) to work.\n\n## Coords_to_Google_Earth.py\n\nThis is a **very** dirty hackish script to get a coordinate file and produce a Google Earth input file with place-marks.\n\n### Usage:\n\nFormat a csv with coordinates:\n\n```\nSample name, Longitude, Latitude, Altitude\n```\n\nJust use the program like so:\n\n```bash\npython3 Coords_to_Google_Earth.py coords.csv new_file.kml\n```\n\nAnd you are good to go.\n\n## simple_coordinate_converter.py\n\nThis script will convert a csv file wing tabs as separators with DMS coordinates into decimal coordinates. It outputs to STDOUT.\n\n### Usage:\n\nFormat a csv with DMS coordinates:\n\n```\nSample name, Latitude, Longitude\n```\n\n```bash\npython3 simpe_coordinate_converter.py coords.csv \u003e output_file.csv\n```\n\nThat's really all there is to it...\n\n## License\n\nGPL V3\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuntspt%2Fmisc_gis_scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstuntspt%2Fmisc_gis_scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuntspt%2Fmisc_gis_scripts/lists"}