how to remove a particular season values from monthly time series?
    6 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    Aarti Soni
 am 27 Sep. 2023
  
    
    
    
    
    Kommentiert: Dyuman Joshi
      
      
 am 27 Sep. 2023
            Hello everyone,
I have monthly temperature data for 20years (360x720x240) where 360x720 is latitude x longitude. From this monthly time series, I want to remove the winter season (December, January, Fabruary months), so the final outcome will be 360 x 720 x 180 (9month timeseries for 20 years)
How can remove these three months from every year?
Thanks.
0 Kommentare
Akzeptierte Antwort
  Dyuman Joshi
      
      
 am 27 Sep. 2023
        
      Bearbeitet: Dyuman Joshi
      
      
 am 27 Sep. 2023
  
      Assuming the data is stored as a double array and the season data is month wise i.e Jan-Feb-...-Nov-Dec
y = rand(360,720,240);
size(y)
%Delete the values corresponding to winter months
y(:,:,[1:12:end 2:12:end 12:12:end])=[];
size(y)
2 Kommentare
Weitere Antworten (1)
  KSSV
      
      
 am 27 Sep. 2023
        thedates = (datetime(2003,1,1):days(30):datetime(2023,12,31))' ; 
idx = thedates.Month == 1 | thedates.Month == 2 | thedates.Month == 12 ; 
iwant = thedates(~idx) ; 
0 Kommentare
Siehe auch
Kategorien
				Mehr zu Descriptive Statistics finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


