77
88def cis (trange :List [str ]= ['2018-11-5' , '2018-11-6' ],
99 probe :Union [str ,List [str ]]= '1' ,
10+ option :str = 'mom' ,
1011 datatype :str = 'pp' ,
1112 prefix :str = '' ,
1213 suffix :str = '' ,
@@ -33,6 +34,10 @@ def cis(trange:List[str]=['2018-11-5', '2018-11-6'],
3334 List of probes to load. Valid options: '1','2','3','4'
3435 Default: '1'
3536
37+ option: str
38+ The data option to load. Valid options: 'mom' (moments), 'psd_h1' (H+ PSD), 'psd_he1' (He+ PSD), 'psd_o1' (O+ PSD)
39+ Default: 'mom'
40+
3641 datatype: str
3742 Data type; Valid options:
3843 Default: 'pp'
@@ -94,6 +99,14 @@ def cis(trange:List[str]=['2018-11-5', '2018-11-6'],
9499 >>> tplot(['N_p__C1_PP_CIS','N_O1__C1_PP_CIS','N_He1__C1_PP_CIS','N_He2__C1_PP_CIS','N_HIA__C1_PP_CIS'])
95100
96101 """
97- return load (instrument = 'cis' , trange = trange , probe = probe , datatype = datatype , prefix = prefix , suffix = suffix , get_support_data = get_support_data , varformat = varformat , varnames = varnames , downloadonly = downloadonly , notplot = notplot , no_update = no_update , time_clip = time_clip , force_download = force_download )
102+
103+ if option == 'mom' :
104+ species = None
105+ elif option .startswith ('psd' ):
106+ species = option .split ('_' )[1 ]
107+ else :
108+ raise ValueError ("Invalid option: " + option + ". Valid options are 'mom', 'psd_h1' 'psd_he1', 'psd_o1'." )
109+
110+ return load (instrument = 'cis' , trange = trange , probe = probe , datatype = datatype , prefix = prefix , suffix = suffix , get_support_data = get_support_data , varformat = varformat , varnames = varnames , downloadonly = downloadonly , notplot = notplot , no_update = no_update , time_clip = time_clip , force_download = force_download , species = species )
98111
99112
0 commit comments