-
Notifications
You must be signed in to change notification settings - Fork 4
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
Write L2 to file and leave all additional variable derivation for the L2toL3 step #251
Write L2 to file and leave all additional variable derivation for the L2toL3 step #251
Conversation
+ some renaming + moving some necessary steps (like directional wind speed calculation to the L1toL2 step
Thanks for making a start on this! The basic structuring is there, however...
I had envisioned this differently. We usually merge datasets as the end of pypromice/src/pypromice/process/aws.py Lines 89 to 94 in 3e4e317
I would like this to be moved to the end of Can you let me build upon what you have done and then open a PR into your branch @BaptisteVandecrux? |
Thanks Penny! I think we need to keep redundant stations separate until the level 2 because the filtering of data happens in L1toL2 so we don't know which variables we are missing until that point. It is true that, as a start, we can have a sharp switch from a station v2 to a station v3,. But we should leave room for future improvement where for example, non-height-dependent variables (such as pressure and thermistor strings from the old station are being used to gap-fill missing values in the new station.
A possibility you could consider is to have site-specific config files, where you describe the switch dates and the type of gap-filling. Anyway, as long as I can continue to work on the |
Exactly 👍🏼 I can work alongside you, no problem. I have time today and the rest of this week. |
Sorry this was me, I have reverted back the merged PR on the main branch. Please feel free to re-open this PR. |
The idea of this new version is that:
L2 data files are written into
level_2/raw
andlevel_2/tx
folders by get_l2 (just like it was done for the L3 data previously). One consequence is that this low-latency level 2tx
data can be posted very fast on THREDDS for showcase and fieldwork, and processed into BUFR files.L2
tx
andraw
files are merged using join_l2 (just like it was done for the L3 data previously). Resampling to hourly, daily, monthly values are done here, but could be left for a later stage.get_l3 is now a script that loads the merged L2 file, run
process.L2toL3.toL3
. This will allow more variables to be derived intoL3
and historical data to be appended once the L3 data is processed.