Skip to content

Commit 905db10

Browse files
committed
Fixed data assignment
1 parent 2ffc3b8 commit 905db10

1 file changed

Lines changed: 6 additions & 15 deletions

File tree

pysatMagVect/_core.py

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,16 +1048,7 @@ def add_footpoint_and_equatorial_drifts(inst, equ_mer_scalar='equ_mer_drifts_sca
10481048
10491049
"""
10501050

1051-
inst['equ_mer_drift'] = inst[equ_mer_scalar]*inst[mer_drift]
1052-
inst['equ_zon_drift'] = inst[equ_zonal_scalar]*inst[zon_drift]
1053-
1054-
inst['south_footpoint_mer_drift'] = inst[south_mer_scalar]*inst[mer_drift]
1055-
inst['south_footpoint_zon_drift'] = inst[south_zon_scalar]*inst[zon_drift]
1056-
1057-
inst['north_footpoint_mer_drift'] = inst[north_mer_scalar]*inst[mer_drift]
1058-
inst['north_footpoint_zon_drift'] = inst[north_zon_scalar]*inst[zon_drift]
1059-
1060-
inst['equ_mer_drift'] = {
1051+
inst['equ_mer_drift'] = {'data' : inst[equ_mer_scalar]*inst[mer_drift],
10611052
'units':'m/s',
10621053
'long_name':'Equatorial meridional ion velocity',
10631054
'notes':('Velocity along meridional direction, perpendicular '
@@ -1081,7 +1072,7 @@ def add_footpoint_and_equatorial_drifts(inst, equ_mer_scalar='equ_mer_drifts_sca
10811072
'value_min':-500.,
10821073
'value_max':500.}
10831074

1084-
inst['equ_zon_drift'] = {
1075+
inst['equ_zon_drift'] = {'data' : inst[equ_zonal_scalar]*inst[zon_drift],
10851076
'units':'m/s',
10861077
'long_name':'Equatorial zonal ion velocity',
10871078
'notes':('Velocity along zonal direction, perpendicular '
@@ -1105,7 +1096,7 @@ def add_footpoint_and_equatorial_drifts(inst, equ_mer_scalar='equ_mer_drifts_sca
11051096
'value_min':-500.,
11061097
'value_max':500.}
11071098

1108-
inst['south_footpoint_mer_drift'] = {
1099+
inst['south_footpoint_mer_drift'] = {'data' : inst[south_mer_scalar]*inst[mer_drift],
11091100
'units':'m/s',
11101101
'long_name':'Southern meridional ion velocity',
11111102
'notes':('Velocity along meridional direction, perpendicular '
@@ -1129,7 +1120,7 @@ def add_footpoint_and_equatorial_drifts(inst, equ_mer_scalar='equ_mer_drifts_sca
11291120
'value_min':-500.,
11301121
'value_max':500.}
11311122

1132-
inst['south_footpoint_zon_drift'] = {
1123+
inst['south_footpoint_zon_drift'] = {'data':inst[south_zon_scalar]*inst[zon_drift],
11331124
'units':'m/s',
11341125
'long_name':'Southern zonal ion velocity',
11351126
'notes':('Velocity along zonal direction, perpendicular '
@@ -1153,7 +1144,7 @@ def add_footpoint_and_equatorial_drifts(inst, equ_mer_scalar='equ_mer_drifts_sca
11531144
'value_min':-500.,
11541145
'value_max':500.}
11551146

1156-
inst['north_footpoint_mer_drift'] = {
1147+
inst['north_footpoint_mer_drift'] = {'data':inst[north_mer_scalar]*inst[mer_drift],
11571148
'units':'m/s',
11581149
'long_name':'Northern meridional ion velocity',
11591150
'notes':('Velocity along meridional direction, perpendicular '
@@ -1177,7 +1168,7 @@ def add_footpoint_and_equatorial_drifts(inst, equ_mer_scalar='equ_mer_drifts_sca
11771168
'value_min':-500.,
11781169
'value_max':500.}
11791170

1180-
inst['north_footpoint_zon_drift'] = {
1171+
inst['north_footpoint_zon_drift'] = {'data':inst[north_zon_scalar]*inst[zon_drift],
11811172
'units':'m/s',
11821173
'long_name':'Northern zonal ion velocity',
11831174
'notes':('Velocity along zonal direction, perpendicular '

0 commit comments

Comments
 (0)