Skip to content

Commit

Permalink
Implemented conversion factor for spin period (#1275)
Browse files Browse the repository at this point in the history
  • Loading branch information
bourque authored Jan 18, 2025
1 parent b7068af commit 2eebe2c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion imap_processing/codice/codice_l1a.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@ def define_support_variables(self, dataset: xr.Dataset) -> xr.Dataset:
"nso_half_spin",
"sw_bias_gain_mode",
"st_bias_gain_mode",
"spin_period",
]

for variable_name in self.config["support_variables"]:
Expand Down Expand Up @@ -251,6 +250,13 @@ def define_support_variables(self, dataset: xr.Dataset) -> xr.Dataset:
dims = ["epoch"]
attrs = self.cdf_attrs.get_variable_attributes("data_quality")

# Spin period requires the application of a conversion factor
# See Table B.5 in the algorithm document
elif variable_name == "spin_period":
variable_data = self.dataset.spin_period.data * 0.00032
dims = ["epoch"]
attrs = self.cdf_attrs.get_variable_attributes("spin_period")

# TODO: Still need to implement
elif variable_name == "spin_sector_pairs":
continue
Expand Down

0 comments on commit 2eebe2c

Please sign in to comment.