ArgoCanada / medsrtqc

An experimental container for Argo Canada realtime quality control code
https://argocanada.github.io/medsrtqc/
MIT License
0 stars 1 forks source link

Update dimensions in `profile._data['PR_STN']['FXD']` for new variables #26

Closed cgrdn closed 2 years ago

cgrdn commented 2 years ago

This is the result of heavy confusion on my part documented in #24. Adding variables, to either PR_PROFILE or SURF_CODES, then saving the new file, reading in that file is then not done properly. I suspect this is due to some spillover due to these dimensions not being iterated at the time of adding the variable.

cgrdn commented 2 years ago

Ok I wrote a function iterate_dimension which seems to work internally but is getting squashed somewhere, because printing out the new dimension in the function shows it is clearly making its way into profile._data but when I try to look at it after running the full script, the dimension hasn't changed at all.

cgrdn commented 2 years ago

Did it a simpler way and not squashed anymore. Better

cgrdn commented 2 years ago

Thank goodness