PlotOMNI (, fig = plt, maps = ) #fit things a bit nicer plt. PlotOMNI (, fig = plt, maps = ) #and a second panel ax1 = pyomnidata. figure ( figsize = ( 11, 6 )) #plot some stuff in one panel ax0 = pyomnidata. Use the PlotOMNI function, e.g.: import matplotlib.pyplot as plt #create a figure plt. The units are as presented here: Plot Data To see what fields are stored use print(). from publication: Solar Wind Prediction Using Deep Learning Emanating from. The returned data object is a numpy.recarray object which contains all of the OMNI data requested. Download scientific diagram Ten days of SW speed from NASA OMNIWEB data set. GetSolarFlux ( Date = 20050101 ) #a range of dates data = pyomnidata. GetSolarFlux () #a single date data = pyomnidata. GetOMNI ( Year, Res = 1 ) #solar flux#all of the data data = pyomnidata. GetOMNI ( Year, Res = 5 ) #1 minute data data = pyomnidata. Get the OMNI parameters like so: #OMNI parameters#Year can either be a single year: Year = 2001 #or it can be a range: Year = #5 minute resolution data data = pyomnidata. This should be set to something at least a few days prior to the current date, if you request a date which currently has no available data then the download will fail. Where EndDate is the last date which you want to request solar flux data for. UpdateLocalData ()ĭownload F10.7 index (solar flux at 10.7 cm): pyomnidata. Do this by adding something along the lines of the following to the bottom of your ~/.bashrc file: export OMNIDATA_PATH =/path/to/omni/dataĭownload OMNI data like this: import pyomnidata #download all available data pyomnidata. #OR directly using setup py (should work, not tested though)įor this to work properly - you will need to set up the $OMNIDATA_PATH environment variable to point to a folder where you want to store the data. Pip3 install dist/pyomnidata-1.0.0-p圓-none-any.whl -user #EITHER build a wheel and install with pip (better) Simply install using pip3: pip3 install pyomnidata -userĪlternatively install from this repository: git clone If you make use of the OMNI data please acknowledge and cite as specified here: Installation Python tool for downloading, converting and reading OMNI solar wind data.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |