From 87a88c976c266e12bdedf8b56902c01d8610a2e1 Mon Sep 17 00:00:00 2001 From: Rakib Hassan Date: Tue, 7 May 2024 16:47:49 +1000 Subject: [PATCH] Minor changes to xdmf2csv.py --- seismic/ASDFdatabase/xdmf2csv.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/seismic/ASDFdatabase/xdmf2csv.py b/seismic/ASDFdatabase/xdmf2csv.py index e51ecf93..71141272 100644 --- a/seismic/ASDFdatabase/xdmf2csv.py +++ b/seismic/ASDFdatabase/xdmf2csv.py @@ -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]) @@ -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