Skip to content

Commit

Permalink
Update _isd_lite.py
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrilJl authored Nov 21, 2024
1 parent 3eaaf8d commit a16adf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyisd/_isd_lite.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def _get_raw_metadata(self):
url = self.raw_metadata_url_src_1 if attempt % 2 == 0 else self.raw_metadata_url_src_2
metadata = pd.read_fwf(url, skiprows=19)
metadata = metadata.dropna(subset=['LAT', 'LON'])
metadata = metadata[~(metadata.LON == 0 & metadata.LAT == 0)]
metadata = metadata[~((metadata.LON == 0) & (metadata.LAT == 0))]
metadata['x'], metadata['y'] = proj(metadata['LON'], metadata['LAT'], 4326, self.crs)
self.raw_metadata = gpd.GeoDataFrame(metadata, geometry=gpd.points_from_xy(metadata.x, metadata.y, crs=self.crs))
return
Expand Down

0 comments on commit a16adf0

Please sign in to comment.