NCAR / lrose-HawkEdit

Repository to track HawkEdit development. HawkEdit is part of the LROSE project and is being developed to replace Solo
4 stars 0 forks source link

saving a file only retains the sweep that was edited instead of the entire volume #69

Open jcdehart opened 8 months ago

jcdehart commented 8 months ago

I tried to manually edit a ground-based radar file with 13 elevation angles using the spreadsheet editor. I'm able to manually edit the data with the spreadsheet, but when I save the file, only the current sweep with my edits is saved to the new file. The other elevation angles are not saved. Additionally, extra variables with a "_2" suffix are included in the file, which I did not create.

My basic steps were as follows, using the July 11 2023 release:

  1. Run "VEL_CORR = VEL_UNF" in the script editor on all angles. The variable did appear in each angle.
  2. Select a sweep and manually unfold the data in the spreadsheet editor.
  3. Save the file (in batch mode, for what it's worth).
  4. Resulting file is 1/10th the size of the original and only contains the sweep I edited.

I'll follow up with an email as well.

Jen

leavesntwigs commented 3 months ago

Code changes to merge the file versions in the undo/redo stack are in the main branch of lrose-core repository. I tested the fix by following the steps (1-4) as described in the issue report. Tested using a single CfRadial file with 13 sweeps. The saved file contains all 13 sweeps, with the new field, VEL_CORR, and sweep 6 modified (deleted).
The modified, saved file did not contain any new fields with "_2" suffix.