Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data version fixes for SWE and SWAPI #621

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion imap_processing/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ def do_processing(self, dependencies):
)
# read CDF file
l1a_dataset = load_cdf(dependencies[0])
processed_data = swe_l1b(l1a_dataset)
processed_data = swe_l1b(l1a_dataset, data_version=self.version)
cdf_file_path = write_cdf(processed_data)
print(f"processed file path: {cdf_file_path}")
return [cdf_file_path]
Expand Down
2 changes: 1 addition & 1 deletion imap_processing/swapi/l1/swapi_l1.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ def process_swapi_science(sci_dataset, data_version: str):
attrs=sci_l1_attrs,
)
# TODO: update to use add_global_attribute() function
dataset.attrs["DataVersion"] = data_version
dataset.attrs["Data_version"] = data_version

dataset["swp_pcem_counts"] = xr.DataArray(
np.array(swp_pcem_counts, dtype=np.uint16),
Expand Down
Loading