{ "info": { "author": "Nathaniel Crosby", "author_email": "nathanielcrosby@verizon.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Topic :: Software Development :: Build Tools" ], "description": "# sunimage2stl\nA python package that turns 2D images of the Sun into 3D printable models in .stl file form.\nI created this while interning at the Harvard-Smithsonian Center for Astrophysics.\nIt is intended to create hemispherical 3D prints of the whole sun and flat 3D prints of specific features of the sun (ex. solar flares).\nThese are to be used for educational purposes, specifically for the visually impaired.\nCurrently, the full Sun Model is exclusively for XRT data while the partial sun model is for any png file.\n\n## Getting Started\n ### Prerequisites\n - os\n - subprocess\n - numpy\n - matplotlib\n - scipy\n - skimage\n - stl_tools\n - numpy-stl\n - imageio\n\n### Installing\n 1. ```mkdir sunimage2stl```\n 2. ```cd sunimage2stl```\n 3. ```git clone https://github.com/nathanielcrosby/3DSunModeling.git``` OR Download\n 4. ```ls``` to make sure you see setup.py\n 5. ```python setup.py install```\n 6. go into a python window and ensure everything can be imported and is working properly by testing some examples\n\n### Examples\n\n#### Full Sun\n\nThe Full Sun aspect is entirely HINODE XRT data. A date should be given and then the program will find the nearest image.\n\nAll Full Sun Commands Start With:\n```\n date = '2014/05/16'\n r = 460. #px\n\n image, header, x, y, z = sunimage2stl.3DPlot.image_to_xyz_mesh(date, r=r, base_len=228.6, offset_x=0., offset_y=0., \n scale_factor_percent=0.25, minimum_intensity_threshold=0.45, buffer_zone=0., buffer_val=1.1,\n buffer=True, exp=2.0, scale_bool=True, earth=True, interval=2., local=True, index=2, flat_base=False)\n```\nTo Do any of the Following just add these lines:\n\n 3D Full Sun .stl File:\n ```\n sunimage2stl.3DPlot.stl_mesh_maker(x, y, z, interval=1, fname='test1.stl')\n ```\n\n 3D Full Sun Movie:\n ```\n sunimage2stl.3DPlot.make_movie(x, y, z, image, file='movie.gif', fps=30, st_ang=0, en_ang=360, \n st_elev_ang=90, en_elev_ang=0, time=10)\n ```\n\n 3D Full Sun 3D Plot:\n ```\n sunimage2stl.3DPlot.ThreeDPlot(x, y, z, image, stride=10, figx=10., figy=10., save=False, file='3d.png')\n ```\n\n 2D Full Sun .stl File:\n ```\n sunimage2stl.3DPlot.image_to_flat_stl(date, scale=100., width=100., depth=100., height=20.)\n ```\n\n#### Partial Sun \n\n These require a .png file as the \"file\" input. \n - An image should be chosen \n - Cropped to the proper size\n - Exported as a .png\n - file is then set to the image name\n\n 2D Partial Sun .stl File:\n ```\n file = '2012_04_16__17_38_56_12__SDO_AIA_AIA_304' #.png\n sunimage2stl.ImagePlot.stl_file_maker(file, interval=2, threshold=0.35, fname='test.stl', gaussian=1)\n ```\n\n 2D Partial Sun Plot:\n ```\n file = '2012_04_16__17_38_56_12__SDO_AIA_AIA_304' #.png\n sunimage2stl.ImagePlot.TwoDPlot(file, save=False)\n ```\n## Authors\n Nathaniel Crosby\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/nathanielcrosby/sunimage2stl", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "sunimage2stl", "package_url": "https://pypi.org/project/sunimage2stl/", "platform": "", "project_url": "https://pypi.org/project/sunimage2stl/", "project_urls": { "Homepage": "https://github.com/nathanielcrosby/sunimage2stl" }, "release_url": "https://pypi.org/project/sunimage2stl/0.1.0/", "requires_dist": null, "requires_python": "", "summary": "A module for creating solar stl files", "version": "0.1.0" }, "last_serial": 4173119, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "0a1884f0b0ffabae70f63d7f28cf117f", "sha256": "ba8665701c0d5a8e4620bd43a9740404e17bc099aa36c55dcb3e28ba9abded03" }, "downloads": -1, "filename": "sunimage2stl-0.1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "0a1884f0b0ffabae70f63d7f28cf117f", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 13679, "upload_time": "2018-08-15T14:03:43", "url": "https://files.pythonhosted.org/packages/cb/bc/6ba6b346305b8ccd8cfac769b5770658d4f01936f2a264f16feee280bc9f/sunimage2stl-0.1.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f31b2145cf744b9815be86884ba180dd", "sha256": "5653c3334cc3f7fd35a02757ade659062c46a960b61911c061f25d8b2feb56a7" }, "downloads": -1, "filename": "sunimage2stl-0.1.0.tar.gz", "has_sig": false, "md5_digest": "f31b2145cf744b9815be86884ba180dd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11849, "upload_time": "2018-08-15T14:03:44", "url": "https://files.pythonhosted.org/packages/56/52/b9221d8719cbc2b1d41dd2ebf5bb623625e16ec9378651600d6ed63eade3/sunimage2stl-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0a1884f0b0ffabae70f63d7f28cf117f", "sha256": "ba8665701c0d5a8e4620bd43a9740404e17bc099aa36c55dcb3e28ba9abded03" }, "downloads": -1, "filename": "sunimage2stl-0.1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "0a1884f0b0ffabae70f63d7f28cf117f", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 13679, "upload_time": "2018-08-15T14:03:43", "url": "https://files.pythonhosted.org/packages/cb/bc/6ba6b346305b8ccd8cfac769b5770658d4f01936f2a264f16feee280bc9f/sunimage2stl-0.1.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f31b2145cf744b9815be86884ba180dd", "sha256": "5653c3334cc3f7fd35a02757ade659062c46a960b61911c061f25d8b2feb56a7" }, "downloads": -1, "filename": "sunimage2stl-0.1.0.tar.gz", "has_sig": false, "md5_digest": "f31b2145cf744b9815be86884ba180dd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11849, "upload_time": "2018-08-15T14:03:44", "url": "https://files.pythonhosted.org/packages/56/52/b9221d8719cbc2b1d41dd2ebf5bb623625e16ec9378651600d6ed63eade3/sunimage2stl-0.1.0.tar.gz" } ] }