commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Siegfried Goeschl <siegfried.goes...@it20one.at>
Subject Re: some basic defination in common exec
Date Thu, 04 Mar 2010 18:03:44 GMT
I added a similar test to the code base - can you double-check the 
following snippet?

Cheers,

Siegfried Goeschl


=== START OF SNIPPET ===
CommandLine cl = new CommandLine(gdal_translate);

cl.addArgument("HDF5:\"/home/kk/grass/data/4404.he5\"://HDFEOS/GRID/OMI_Column_Amount_O3/Data_Fields/ColumnAmountO3/home/kk/4.tif",

false);

DefaultExecutor executor = new DefaultExecutor();
int exitValue = executor.execute(cl);
=== END OF SNIPPET ===

On 04.03.10 10:52, maven apache wrote:
> HI:
> I want to use common-exec,however I am confusing with some definations -
> which is the arguments in a cmd to be executed:
> for example, the cmd I want to execute is :
>
> *gdal_tran HDF:"d:\data\hdf5\new\m0729_**v003-127.he5"://HDFEOS/GRIDS/**
> Amount_O3/Data_Fields/**SolarZenithAngle d:\aa.tif  -a_ullr -180 90 180 -90*
>
> The gdal_tran is the command name, all of the later are the parameters
> required,
>
> *HDF:"d:\data\hdf5\new\m0729_**v003-127.he5"://HDFEOS/GRIDS/**
> Amount_O3/Data_Fields/**SolarZenithAngle*-->  is the organial data
> *d:\aa.tif* --->  the target file
> *-a_ullr -180 90 180 -90*------>  the option parameters
>
>
> So I want to know which parameter can be added using the
> commandLine.addArgument() method?
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message