How to use Xconv\Convsh on Windows platform
Content
Xconv
- Download the executable for Windows from the BADC Xconv/Convsh software page (note that Cygwin is not required)
- There are 2 ways of using the downloaded executable:
- Method 1: double-click on xconv and this will launch the interface
- Method 2: Using a command line on DOS as follows:
- open a DOS window,
- go to the xconv folder,
- type the command line: xconv1.91.exe -i xxx -o yyy.nc
- This launches the interface too, opens automatically the file xxx, sets
the output file name to yyy.nc and the output format to netCDF.
Unfortunately, the conversion is not automatic. [Source: http://www.met.rdg.ac.uk/~jeff/xconv/arg.html]
Convsh
- Download the executable for Windows from the BADC Xconv/Convsh software page (note that Cygwin is not required)
- There are 2 ways of using the downloaded executable:
- Method 1: as a subshell (or "sub-DOS" environment)
- Method 2: with a Windows batch file
- Create a file (with the extension .tcl) containing a series of commands to execute (see
commands of method 1 above)
- Feed this file to convsh using a Windows batch file (.bat).
The typical syntax for the batch file is: convsh.exe < myscript.tcl
arguments. (The arguments are for myscript.tcl.)
The convsh/tcl script does not need the header line specifying where to
find the convsh language (i.e. #!/bin/.../convsh).
For example, to convert a series of GRIB files into a netCDF file, use:
convsh.exe < conv2nc.tcl -i file1 file2 ... fileN -o file.nc
(The conv2nc.tcl script comes from
http://www.met.rdg.ac.uk/~jeff/xconv/appx2.html)
Credits
xconv was written, and kindly supplied, by Jeff Cole.
The information on this webpage was kindly provided by Dr Emilie Vanvyve, a user of Xconv/Convsh on Windows.
 |
|
|
| Last Modified:
|  |