Changeset 181
- Timestamp:
- 04/15/08 08:46:34
- Files:
-
- obskml/trunk/General/obsKMLSubRoutines.pm (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
obskml/trunk/General/obsKMLSubRoutines.pm
r175 r181 249 249 { 250 250 my ($strFromUOMString, $XMLDoc) = @_; 251 251 252 my $strConvertedString = ''; 253 #DWR 4/15/2008 254 #Remove any characters we don't want used. I did notice the unicode char "\x" was in some ndbc files. 255 $strFromUOMString =~ tr/\x80-\xFF//d; 256 $strFromUOMString =~ s/\x//; 257 258 #print( "UnitsStringConversion:: XMLLookup: //unit_conversion_list/unit_conversion[\@id=\"$strFromUOMString\"]/units\n"); 252 259 my $strConversionString = $XMLDoc->findvalue('//unit_conversion_list/unit_conversion[@id="'.$strFromUOMString.'"]/units'); 253 260 if( length( $strConversionString ) ) … … 255 262 $strConvertedString = $strConversionString; 256 263 } 257 print " $strConvertedString \n";264 print "Units: $strConvertedString \n"; 258 265 return $strConvertedString; 259 266 … … 359 366 { 360 367 my ( $strObsName, $strDate, $Value, $SensorSOrder, $strPlatformID, $ObsElevation, $strUnits, $rObsHash ) = @_; 361 #print( "KMLAddObsToHash:: Obs: $strObsName Date: $strDate Val: $Value SORder: $SensorSOrder Platform: $strPlatformID Elev: $ObsElevation Units: $strUnits\n" );368 print( "KMLAddObsToHash:: Obs: $strObsName Date: $strDate Val: $Value SORder: $SensorSOrder Platform: $strPlatformID Elev: $ObsElevation Units: $strUnits\n" ); 362 369 my $QCLevel = $QCLEVEL_DATANOTEVALD; 363 370 $rObsHash->{PlatformID}{$strPlatformID}{TimeStamp}{$strDate}{elev}{$ObsElevation}{obsType}{$strObsName}{uomType} = $strUnits; … … 496 503 my $Longitude = $hObsList->{PlatformID}{$strPlatformID}{Longitude}; 497 504 498 KMLAddLatLong( $Doc, $Placemark, $L ongitude, $Latitude );505 KMLAddLatLong( $Doc, $Placemark, $Latitude, $Longitude ); 499 506 KMLAddTimeStamp( $Doc, $Placemark, $Date ); 500 507
