Skip to content

Prevent trailing spaces in uhslc catalog #1187

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

Open
veenstrajelmer opened this issue May 9, 2025 · 0 comments
Open

Prevent trailing spaces in uhslc catalog #1187

veenstrajelmer opened this issue May 9, 2025 · 0 comments

Comments

@veenstrajelmer
Copy link
Collaborator

Follow-up from #1185. UHSLC-fast also has ['Rangiroa Atoll ', 'Tubuaï '] stations with trailing spaces:

import dfm_tools as dfmt
ssc_catalog_gpd = dfmt.ssh_catalog_subset(source="uhslc-fast")
name_endwithspace = ssc_catalog_gpd["station_name"].loc[ssc_catalog_gpd["station_name"].str.endswith(" ")]
print(name_endwithspace.tolist())

Requested on 8-5-2025 to fix this at the source. If this is not feasible/needed, trim them in dfm_tools.

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

No branches or pull requests

1 participant