Project

General

Profile

RE: Loop "remapnn" command for many locations » script.sh

Christ Reflin, 2023-03-07 03:47

 
#!/usr/bin/bash
while read p ; do
echo $p;
lon=$(echo $p | cut -d ',' -f 2);
lat=$(echo $p | cut -d ',' -f 3);
cdo -outputtab,date,lon,lat,value -remapnn,lon=${lon}_lat=${lat} -topo > $extracted.txt
done <coordinate.txt
(3-3/3)