Skip to content

Commit

Permalink
Minor changes to xdmf2csv.py
Browse files Browse the repository at this point in the history
  • Loading branch information
geojunky committed May 7, 2024
1 parent 7f8a0b3 commit 87a88c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions seismic/ASDFdatabase/xdmf2csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def process(input_file, output_folder):
valsDict[key] = data.PointData[key]
# end for

# tranform coordinates from geocentric xyz to geographic (both in wgs84)
# transform coordinates from geocentric xyz to geographic (both in wgs84)
print('Transforming coordinates..')
lons, lats, depths = tranforms_coords(xyz[:, 0], xyz[:, 1], xyz[:, 2])

Expand All @@ -83,9 +83,9 @@ def process(input_file, output_folder):

df = pd.DataFrame()

df['lons'] = lons
df['lats'] = lats
df['depths_km'] = depths
df['lon'] = lons
df['lat'] = lats
df['depth_km'] = depths
for key in rkeys:
df[key] = valsDict[key]
# end for
Expand Down

0 comments on commit 87a88c9

Please sign in to comment.