Data file access on different path (drive)
Peter Rosin
peda@lysator.liu.se
Mon Nov 23 10:23:00 GMT 2015
On 2015-11-23 10:51, Lester Anderson wrote:
> Hello,
>
> I tried a very basic script to test this:
>
> #!/bin/bash
> ruta_elev="cygdrive/q/geophys/Potential-field datasets/Topography/topo_17.1.img"
> ruta_grav="cygdrive/q/geophys/Potential-field datasets/Gravity/grav.img.23.1"
> # Also tried
> # ruta_elev="Q:/geophys/Potential-field datasets/Topography/topo_17.1.img"
> # ruta_grav="Q:/geophys/Potential-field datasets/Gravity/grav.img.23.1"
> lon_min=-12
> lon_max=0
> lat_min=28
> lat_max=39
> img2grd $ruta_elev -V -T1 -R$lon_min/$lon_max/$lat_min/$lat_max -S1
In addition to the typo with the leading slash, you also need to quote the file path here,
like so:
img2grd "$ruta_elev" -V -T1 -R$lon_min/$lon_max/$lat_min/$lat_max -S1
Cheers,
Peter
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list