{"id":41638178,"url":"https://github.com/z-vig/m3_pro","last_synced_at":"2026-01-24T15:02:56.042Z","repository":{"id":153901578,"uuid":"598827838","full_name":"z-vig/M3_Pro","owner":"z-vig","description":"Image Processing Software for Lunar M3 Data","archived":false,"fork":false,"pushed_at":"2023-10-02T22:34:54.000Z","size":23783,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-10-03T06:54:28.944Z","etag":null,"topics":[],"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/z-vig.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":"2023-02-07T22:09:26.000Z","updated_at":"2023-03-12T20:07:22.000Z","dependencies_parsed_at":"2023-10-03T04:04:14.103Z","dependency_job_id":null,"html_url":"https://github.com/z-vig/M3_Pro","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/z-vig/M3_Pro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z-vig%2FM3_Pro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z-vig%2FM3_Pro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z-vig%2FM3_Pro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z-vig%2FM3_Pro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/z-vig","download_url":"https://codeload.github.com/z-vig/M3_Pro/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z-vig%2FM3_Pro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28730304,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T10:24:43.181Z","status":"ssl_error","status_checked_at":"2026-01-24T10:24:36.112Z","response_time":89,"last_error":"SSL_read: 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":"2026-01-24T15:02:55.358Z","updated_at":"2026-01-24T15:02:56.021Z","avatar_url":"https://github.com/z-vig.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# M3 Image Processing\nThis package aims to process M3 Hyperspectral data with goal of better constraining the location of H~2~O Ice on the Lunar Surface\n\n## HySpec Image Processing File\nHere you will find the HDR_Image() class. This class is intended to perform basic image processing techniques such as noise reduction and continuum removal. To begin, load your image into the HDR_Image class as follows:\n```\nfrom HySpec_Image_Processing import HDR_Image\nmyimage = HDR_Image(path_to_image)\n```\nFrom here, several methods are available for various kinds of exploratory analysis. \n\n### HDR_Image().hdr\nCreates a specPy BilFile object. From this you can get band names, pixel info, metadata and much more. See specPy documentation. \\\n**return:** BilFile object\n\n### HDR_Image().plot_image(wvl,\\*\\*kwargs)\nPlots reflectance hdr files and supplemental hdr files using a single band or all bands in a 3-dimensional image, and saves these images to a specified folder \\\n**kwargs:** All_Bands = Boolen, Norm = (All,Image,None), allMax = ndarray, allMin = ndarray, saveImage = Boolean \\\n**return:** ndarray of image nomalized to itself OR ndarray of image normalized to set max and min OR ndarray of original reflectance image\n\n### HDR_Image().plot_spec(x,y,\\*\\*kwargs)\nPlots the spectrum for a given pixel on the image and saves this to a specified folder \\\n**kwargs:** saveFig = Boolean, showPlot = Boolean, plot_og, plot_boxcar, plot_cspline, plot_cspline_boxcar, plot_movingAvg, plot_movingAvg_cspline (all plot_ kwargs = Boolean), box_size=(select or type(float)), movingAvg_size=(select of type(float)) \\\n**return:** ndarray of reflectance values, ndarray of wavelength values\n\n### HDR_Image().find_shadows(\\*\\*kwargs)\nTests each pixel in the image to see if the average reflectance over all the bands is below a certain threshold. \\\n**kwargs:** saveImage = Boolean, showPlot = Boolean, threshold = type(float) \\\n**return:** ndarray with size equal to the original image with pixel values = 1 for non-shadowed regions and pixel values = 0 for shadowed regions\n\n### HDR_Image().wvl_smoothing(x,y)\nSmooths the reflectance spectrum and reduces noise using a cubic spline fit. \\\n**return:** ndarray of modeled wavelengths, ndarray of modeled reflectance\n\n### HDR_Image().get_minima(x,y)\nPlots the smoothed spectrum from wvl_smoothing and draws vertical lines at identified absorption bands. \\\n**return:** list containing the wavelength values of all identified absorption bands\n\n### HDR_Image().get_average_rfl(true_arr,\\*\\*kwargs)\nAssists in finding the average reflectance values for a given mosaic dataset. \\\n**kwargs:** avg_by_img = Boolean \\n\n**return:** wavelnegths,average reflectances and standard deviation reflectances OR wavelengths, ndarray of all pixels to be averaged in mosaic\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fz-vig%2Fm3_pro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fz-vig%2Fm3_pro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fz-vig%2Fm3_pro/lists"}