Skip to content

Commit

Permalink
coops: Specify CRS in GeoDataFrame
Browse files Browse the repository at this point in the history
Geopandas was throwing a warning in `searvey.get_stations()`:

    UserWarning: CRS not set for some of the concatenation inputs.
    Setting output's CRS as WGS 84 (the single non-null crs provided)

The IOC and USGS GeoDataFrames do specify the CRS, so now we do it for
COOPS, too.
  • Loading branch information
pmav99 committed Dec 13, 2023
1 parent 338a955 commit af35323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion searvey/coops.py
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ def coops_stations(station_status: StationStatus | None = None) -> GeoDataFrame:

return GeoDataFrame(
stations[["nws_id", "name", "state", "status", "removed"]],
geometry=geopandas.points_from_xy(stations["x"], stations["y"]),
geometry=geopandas.points_from_xy(stations["x"], stations["y"], crs="EPSG:4326"),
)


Expand Down

0 comments on commit af35323

Please sign in to comment.