Created
June 14, 2020 23:26
-
-
Save Raahul-Singh/0b21103bde4bbd56c69784ce43302709 to your computer and use it in GitHub Desktop.
Pythia examples : get_mdi_fulldisk_map
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_mdi_fulldisk_map(self, obsdate: str, filepath: str = str(path) + "/fulldisk/"): | |
""" | |
Downloads the MDI Fulldisk FITS file corresponding to a particular observation. | |
And returns a SunPy Map corresponding to the downloaded file. | |
Parameters | |
---------- | |
obsdate : str | |
The observation time and date. | |
filepath : mdi_mapsequence : sunpy.map.MapSequence, | |
By default downloaded files are stored in `~pythia/data/fulldisk` | |
Returns | |
------- | |
filepath : str | |
Filepath to the downloaded FITS file. | |
Examples | |
-------- | |
>>> from pythia.seo import Sunspotter | |
>>> sunspotter = Sunspotter() | |
>>> obsdate = '2000-01-01 12:47:02' | |
>>> sunspotter.get_mdi_fulldisk_map(obsdate) | |
<sunpy.map.sources.soho.MDIMap object at 0x7f6ca7aedc88> | |
SunPy Map | |
--------- | |
Observatory: SOHO | |
Instrument: MDI | |
Detector: MDI | |
Measurement: magnetogram | |
Wavelength: 0.0 Angstrom | |
Observation Date: 2000-01-01 12:47:02 | |
Exposure Time: 0.000000 s | |
Dimension: [1024. 1024.] pix | |
Coordinate System: helioprojective | |
Scale: [1.98083342 1.98083342] arcsec / pix | |
Reference Pixel: [511.36929067 511.76453018] pix | |
Reference Coord: [0. 0.] arcsec | |
array([[nan, nan, nan, ..., nan, nan, nan], | |
[nan, nan, nan, ..., nan, nan, nan], | |
[nan, nan, nan, ..., nan, nan, nan], | |
..., | |
[nan, nan, nan, ..., nan, nan, nan], | |
[nan, nan, nan, ..., nan, nan, nan], | |
[nan, nan, nan, ..., nan, nan, nan]], dtype=float32) | |
""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment