Skip to content

Conversation

efvik
Copy link
Collaborator

@efvik efvik commented Oct 22, 2024

New products added, including tests:

I implemented the option of saving spectra to .csv in a "panel" data format, although it is very inefficient compared to using NetCDF .nc files due to the multidimensional spectra data.

@efvik efvik requested a review from KonstantinChri as a code owner October 22, 2024 14:50
@KonstantinChri KonstantinChri merged commit 09bfa2d into MET-OM:main Oct 22, 2024
7 checks passed
url = get_url_info(ts.product, dates[i])

if i == 0:
station, lon_near, lat_near = get_near_coord(
Copy link
Collaborator

Choose a reason for hiding this comment

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

@efvik: lon_near and lat_near are not used in the csv-file but rather ds["longitude"][0].values). This breaks the pattern of the other output a bit. Perhaps a comment should be added here to explain why the first coordinate is used instead of the station coordinate

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ds["longitude"][0].values should be equal to lon_near when the correct station has been selected, but we can use lon_near and lat_near since it is clearer.

In investigating this I found an issue with the indexing of stations, which are one-indexed. I fixed this by adding 1 to the station number in aux_funcs. See PR #40

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.

3 participants