Skip to content

Commit

Permalink
Revert use of sed
Browse files Browse the repository at this point in the history
Not working...
  • Loading branch information
trey-stafford committed Aug 23, 2023
1 parent 6a73c8b commit 0843c99
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion qgreenland/config/cfg-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0843c99

Please sign in to comment.