mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 00:00:04 +00:00 
			
		
		
		
	Missing AWIPS Identifier Line in WMO header should not be treated as an error
This commit is contained in:
		
							parent
							
								
									b117d2088a
								
							
						
					
					
						commit
						1bdfdcafad
					
				
					 1 changed files with 7 additions and 2 deletions
				
			
		|  | @ -228,6 +228,7 @@ bool WmoHeader::Parse(std::istream& is) | ||||||
|       } |       } | ||||||
|    } |    } | ||||||
| 
 | 
 | ||||||
|  |    auto awipsLinePos = is.tellg(); | ||||||
|    util::getline(is, awipsLine); |    util::getline(is, awipsLine); | ||||||
| 
 | 
 | ||||||
|    if (is.eof()) |    if (is.eof()) | ||||||
|  | @ -322,8 +323,12 @@ bool WmoHeader::Parse(std::istream& is) | ||||||
|    { |    { | ||||||
|       if (awipsLine.size() != kAwipsIdentifierLineLength_) |       if (awipsLine.size() != kAwipsIdentifierLineLength_) | ||||||
|       { |       { | ||||||
|          logger_->warn("AWIPS Identifier Line bad size"); |          // Older products may be missing an AWIPS Identifier Line
 | ||||||
|          headerValid = false; |          logger_->trace("AWIPS Identifier Line bad size"); | ||||||
|  | 
 | ||||||
|  |          is.seekg(awipsLinePos); | ||||||
|  |          p->productCategory_   = ""; | ||||||
|  |          p->productDesignator_ = ""; | ||||||
|       } |       } | ||||||
|       else |       else | ||||||
|       { |       { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat