Changeset 176

Show
Ignore:
Timestamp:
04/08/08 14:10:02
Author:
dan
Message:

--

Files:

Legend:

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

    r174 r176  
    44# Date: 4/7/2008 
    55# CHanges: Added the ability to turn on the writing of an obsKml file.  
    6 # The script now wioll take an optional second command line argument with the following values: 
     6# The script now takes 2 optional command line arguments. 
     7# The 2nd command line argument is which file(s) to create. The following values are defined: 
    78# 0 = default value which only produces the orignal sql files. 
    89# 1 = Writes only an obsKML file 
    910# 2 = Writes both the sql files and obsKML file. 
     11# The 3rd command line argument specifies what directory to create the obsKML file in.  
     12# The directory must already exist. 
     13# 
    1014# THis script now uses the obsKMLSubRoutines package to create the obsKML file. For now, make sure this 
    1115# package is in the same directory as this script or in a directory which is in the Perl path. 
     
    7175  }   
    7276  # 3rd command line argument is the path to store the obsKML files. 
    73   if( @ARGV[2] >= 3 ) 
     77  if( @ARGV >= 3 ) 
    7478  { 
    7579    $strObsKMLFilePath = @ARGV[2]; 
     
    177181 
    178182if ($format_category_value eq 'fixed-point') { 
    179   fixed_point($this_station_id_top_ts, $FileCreationOption ); 
     183  #DWR 4/7/2008 
     184  # ADded parameters $FileCreationOption and $strObsKMLFilePath. 
     185  fixed_point($this_station_id_top_ts, $FileCreationOption, $strObsKMLFilePath ); 
    180186} 
    181187elsif ($format_category_value eq 'moving-point-2D') { 
  • scout/branches/cdl_fixed_point.pl

    r174 r176  
    77  #DWR 4/7/2008 
    88  my $FileCreationOptions = $_[1]; 
     9  my $strObsKMLFilePath = $_[2]; 
    910   
    1011  my $bWriteSQLFiles = 1; 
     
    26972698    #$strXMLPath = "../sql/$strPlatformID-$strDate.kml"; 
    26982699    $strXMLPath = "$strObsKMLFilePath/$strPlatformID-$strDate.kml"; 
     2700    #print( "$strXMLPath\n" ); 
    26992701    obsKMLSubRoutines::BuildKMLFile( \%ObsHash, $strXMLPath ); 
    27002702  }