Changeset 174

Show
Ignore:
Timestamp:
04/08/08 13:10:33
Author:
dan
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • scout/branches/cdl_0master.pl

    r173 r174  
    5858#Optional file creation arguments 
    5959my $FileCreationOption = 0; 
     60my $strObsKMLFilePath; 
    6061if( @ARGV > 1 ) 
    6162{ 
    62  if( @ARGV[1] >= DEFAULTWRITESQLONLY && @ARGV[1] <= WRITEBOTH ) 
    63  { 
     63  $strObsKMLFilePath = './';  
     64  if( @ARGV[1] >= DEFAULTWRITESQLONLY && @ARGV[1] <= WRITEBOTH ) 
     65  { 
    6466  $FileCreationOption = @ARGV[1]; 
    65  
    66  else 
    67  {  
     67 
     68  else 
     69  {  
    6870  print( "ERROR: Command line argument 2: @ARGV[1] not valid\n. Valid values are: 0 Write only SQL files\n 1: Write only obsKML file\n or 2: Write both SQL files and obsKML file.\nDefault value will be 0.\n" ); 
    69  } 
    70   
     71  }   
     72  # 3rd command line argument is the path to store the obsKML files. 
     73  if( @ARGV[2] >= 3 ) 
     74  { 
     75    $strObsKMLFilePath = @ARGV[2]; 
     76  } 
    7177} 
    7278# 
  • scout/branches/cdl_fixed_point.pl

    r172 r174  
    26952695    my $strDate = `date  +%Y-%m-%dT%H-%M-%S`; 
    26962696    chomp( $strDate );       
    2697     $strXMLPath = "../sql/$strPlatformID-$strDate.kml"; 
     2697    #$strXMLPath = "../sql/$strPlatformID-$strDate.kml"; 
     2698    $strXMLPath = "$strObsKMLFilePath/$strPlatformID-$strDate.kml"; 
    26982699    obsKMLSubRoutines::BuildKMLFile( \%ObsHash, $strXMLPath ); 
    26992700  }