During the version renaming migration, some files were not copied over to the new version schema vMMM.mmmm. @tech3371 and @vineetbansal and I looked into it and confirmed that these files had problems with the metadata that caused problems when using write_cdf to write the file back to s3 with the updated metadata 'Data_version' attribute.
This was confirmed by running a quick script using a CDF file that didnt get renamed.
`
from imap_processing.cdf.utils import load_cdf, write_cdf
bad_file = "data/imap/hit/l1a/2026/02/imap_hit_l1a_hk_20260226_v005.cdf"
ds = load_cdf(bad_file)
write_cdf(ds)
`
This errors out with: numpy.int64' object has no attribute 'lower'
The solution was to copy them to the new names without editing the CDFs themselves. This means that these files dont have updated data_version attributes.
These may be old CDFs that have since been updated and fixed but we need to confirm this. The L3 files I dont think have been fixed and @pleasant-menlo should take a look at these.
Here are the logs for the dry run and real run. These logs give a record of what files we needed to manually copy.
copy_missing_new_version_files2.py
other_rename_dry_run_after_renamed.txt
other_rename_dry_run.txt
other_rename_real_run.txt
During the version renaming migration, some files were not copied over to the new version schema vMMM.mmmm. @tech3371 and @vineetbansal and I looked into it and confirmed that these files had problems with the metadata that caused problems when using write_cdf to write the file back to s3 with the updated metadata 'Data_version' attribute.
This was confirmed by running a quick script using a CDF file that didnt get renamed.
`
from imap_processing.cdf.utils import load_cdf, write_cdf
bad_file = "data/imap/hit/l1a/2026/02/imap_hit_l1a_hk_20260226_v005.cdf"
ds = load_cdf(bad_file)
write_cdf(ds)
`
This errors out with: numpy.int64' object has no attribute 'lower'
The solution was to copy them to the new names without editing the CDFs themselves. This means that these files dont have updated data_version attributes.
These may be old CDFs that have since been updated and fixed but we need to confirm this. The L3 files I dont think have been fixed and @pleasant-menlo should take a look at these.
Here are the logs for the dry run and real run. These logs give a record of what files we needed to manually copy.
copy_missing_new_version_files2.py
other_rename_dry_run_after_renamed.txt
other_rename_dry_run.txt
other_rename_real_run.txt