Closed BaptisteVandecrux closed 1 year ago
Yes. This step should be in L2toL3
. Perhaps it could come just before deriving wdir
from the directional wind speed wspd_x wspd_y
.
https://github.com/GEUS-Glaciology-and-Climate/pypromice/blob/480a77316bacacb0055d14368e00b54b54a68040/src/pypromice/L2toL3.py#L34 https://github.com/GEUS-Glaciology-and-Climate/pypromice/blob/480a77316bacacb0055d14368e00b54b54a68040/src/pypromice/L2toL3.py#L61 https://github.com/GEUS-Glaciology-and-Climate/pypromice/blob/480a77316bacacb0055d14368e00b54b54a68040/src/pypromice/L2toL3.py#L86
We would just need to rename L2toL3._calcWindDir
as this is the same name as L0toL1._calcWindDir
. Perhaps L0toL1._calcWindDir
should be changed to L2toL3._calcWspdDir
.
Fixed with #172
Currently it is done in L0toL1, before any filtering or adjustment of the wind direction that should will take place in L1toL2. I recommend moving it to L2toL3 since it is a "derived variable".
https://github.com/GEUS-Glaciology-and-Climate/pypromice/blob/480a77316bacacb0055d14368e00b54b54a68040/src/pypromice/L0toL1.py#L100
https://github.com/GEUS-Glaciology-and-Climate/pypromice/blob/480a77316bacacb0055d14368e00b54b54a68040/src/pypromice/L0toL1.py#L116
https://github.com/GEUS-Glaciology-and-Climate/pypromice/blob/480a77316bacacb0055d14368e00b54b54a68040/src/pypromice/L0toL1.py#L121