mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 04:30:05 +00:00 
			
		
		
		
	Reintroduce invalid time warning, filter NWS_NEXRAD_* filenames instead
This commit is contained in:
		
							parent
							
								
									6af8e398dd
								
							
						
					
					
						commit
						0f215a9469
					
				
					 2 changed files with 3 additions and 2 deletions
				
			
		|  | @ -94,7 +94,7 @@ AwsLevel2DataProvider::GetTimePointFromKey(const std::string& key) | |||
| 
 | ||||
|       if (in.fail()) | ||||
|       { | ||||
|          logger_->trace("Invalid time: \"{}\"", timeStr); | ||||
|          logger_->warn("Invalid time: \"{}\"", timeStr); | ||||
|       } | ||||
|    } | ||||
|    else | ||||
|  |  | |||
|  | @ -246,7 +246,8 @@ AwsNexradDataProvider::ListObjects(std::chrono::system_clock::time_point date) | |||
|          { | ||||
|             std::string key = object.GetKey(); | ||||
| 
 | ||||
|             if (!key.ends_with("_MDM")) | ||||
|             if (key.find("NWS_NEXRAD_") == std::string::npos && | ||||
|                 !key.ends_with("_MDM")) | ||||
|             { | ||||
|                auto time = GetTimePointByKey(key); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat