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 22bca68 commit 700daee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyisd/_isd_lite.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def _get_raw_metadata(self):
try:
metadata = pd.read_fwf(self.raw_metadata_url, skiprows=19)
metadata = metadata.dropna(subset=['LAT', 'LON'])
metadata = metadata[~(metadata.x==0 & metadata.y==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))
except Exception as e:
Expand Down

0 comments on commit 700daee

Please sign in to comment.