# Input file if=/home/data/231RF10.nc # Output file of=junk.asc # Time Interval ti=yyyy-mm-dd,hh:mm:ss ~ yyyy-mm-dd,hh:mm:ss # Output header format, default is 'Plain' hd=[Plain | AmesDEF | NcML] # Output date format, default is 'yyyy-mm-dd' dt=[yyyy-mm-dd | 'yyyy mm dd' | NoDate] # Output time format, default is hh::mm:ss tm=[hh:mm:ss | 'hh mm ss' | SecOfDay] # Optionally averaging may be performed; specifiy number of seconds to average. avg=10 # Value separator, default is 'Comma' sp=[Space | Comma] # Fill value, default is 'FillValue' fv=[FillValue | Blank | Replicate] # List of variables to output. var=ALT var=ADIFR var=BDIFR # Optionally, you can specify the data output format for a variable. Program takes float format %f %d %i %e %E %g %G,etc. %d, and %i are converted into %.0f. For example: ALT=%7.2f ADIFR=%e BDIFR=%d
The -i and -o options allow input and output file names to specified on the command line. They may then be eliminated from the batch file.
#!/bin/csh foreach file (*.nc) java -jar nc2asc.jar -b my_batch -i $file -o `basename $file .nc`.asc end
email Chris Webster