Skip to content
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

feature/Automatically update AWS_stations_metadata.csv and AWS_sites_metadata.csv from L3 files #277

Open
wants to merge 9 commits into
base: feature/surface-heights-and-thermistor-depths
Choose a base branch
from

Conversation

BaptisteVandecrux
Copy link
Member

@BaptisteVandecrux BaptisteVandecrux commented Jul 5, 2024

The idea is that, every time the level 3 data is processed, we read the output files and update the AWS_stations_metadata,csv and AWS_sites_metadata.csv with the latest timestamps and coordinates.

Since not every station is updated at each iteration, the script needs to first load the existing file and then only update the necessary rows.

Requires small edits of AWS-operational-processing:
https://github.com/GEUS-Glaciology-and-Climate/aws-operational-processing/pull/35

@PennyHow
Copy link
Member

PennyHow commented Jul 9, 2024

PR to change file path inference is now here: #279

@PennyHow PennyHow self-requested a review July 9, 2024 16:33
'lat_last_known': lat_last_known,
'lon_last_known': lon_last_known,
'alt_last_known': alt_last_known
}, name=s_id)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we could split this step into its own function (from line 43-89) for constructing metadata from a single csv file... I think I will open a PR with all these changes to address this function split.

src/pypromice/postprocess/make_metadata_csv.py Outdated Show resolved Hide resolved
@BaptisteVandecrux BaptisteVandecrux changed the base branch from develop to feature/surface-heights-and-thermistor-depths July 11, 2024 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants