diff --git a/qgreenland/config/cfg-lock.json b/qgreenland/config/cfg-lock.json index af8358dd..3896c9d7 100644 --- a/qgreenland/config/cfg-lock.json +++ b/qgreenland/config/cfg-lock.json @@ -12112,7 +12112,9 @@ "{input_dir}/downsampled.tif", "{output_dir}/data_with_header.csv", "&&", - "sed -i '1s/^/x,y,vx,vy\n/' {output_dir}/data_with_header.csv" + "echo \"x,y,vx,vy\" > {output_dir}/data_with_header.csv", + "&&", + "cat {output_dir}/as_xyz.xyz >> {output_dir}/data_with_header.csv" ], "type": "command" }, diff --git a/qgreenland/config/layers/Glaciology/Ice sheet velocity/GrIMP/grimp.py b/qgreenland/config/layers/Glaciology/Ice sheet velocity/GrIMP/grimp.py index a98906ea..5ac6c95f 100644 --- a/qgreenland/config/layers/Glaciology/Ice sheet velocity/GrIMP/grimp.py +++ b/qgreenland/config/layers/Glaciology/Ice sheet velocity/GrIMP/grimp.py @@ -152,9 +152,11 @@ def make_layer( "-csv", "-allbands", "{input_dir}/downsampled.tif", - "{output_dir}/data_with_header.csv", + "{output_dir}/as_xyz.xyz", "&&", - "sed -i '1s/^/x,y,vx,vy\n/' {output_dir}/data_with_header.csv", + 'echo "x,y,vx,vy" > {output_dir}/data_with_header.csv', + "&&", + "cat {output_dir}/as_xyz.xyz >> {output_dir}/data_with_header.csv", ], ), # Finally, convert to gpkg.