We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There are trailing spaces in the SSC catalogue:
import pandas as pd from shapely import Point import geopandas as gpd url_json = 'https://www.ioc-sealevelmonitoring.org/ssc/service.php?format=json' ssc_catalog_pd = pd.read_json(url_json) geom = [Point(x["geo:lon"], x["geo:lat"]) for irow, x in ssc_catalog_pd.iterrows()] ssc_catalog_gpd = gpd.GeoDataFrame(data=ssc_catalog_pd, geometry=geom, crs='EPSG:4326') ssc_catalog_gpd = ssc_catalog_gpd.drop(["geo:lon","geo:lat"], axis=1) name_endwithspace = ssc_catalog_gpd["name"].loc[ssc_catalog_gpd["name"].str.endswith(" ")] print(name_endwithspace.tolist())
Gives:
['Barentsburg ', 'Brisbane ', 'Burnett Heads ', 'DART NOOSS Optimization Buoy ', 'Dzaoudzi ', 'Fort Dauphin ', 'Funchal ', 'Ginostra ', 'Guam ', 'Hafun ', 'Hienghene ', 'Hiva Oa ', 'Huahine island ', 'Laohutan ', 'Martinez-Amorco Pier ', 'Mirny ', 'Nansha ', 'Nuku Hiva ', 'Nouméa - Numbo ', 'Penuelas ', 'Capitan Prat Base ', 'Qinglan ', 'Rangiroa Atoll ', 'Pointe des Galets ', 'Rikitea ', 'Salvador ', 'Santa Cruz del Flores ', 'Suez ', 'Tubuaï ', 'Port-Tudy ', 'Vairao ']
Requested to fix this in the json on 8-5-2025. If this is not feasible/needed, trim them in dfm_tools.
Also clean up the ssc catalog code slightly.
The text was updated successfully, but these errors were encountered:
Resolved on 9-5-2025 in the source json
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
There are trailing spaces in the SSC catalogue:
Gives:
Requested to fix this in the json on 8-5-2025. If this is not feasible/needed, trim them in dfm_tools.
Also clean up the ssc catalog code slightly.
The text was updated successfully, but these errors were encountered: