Rabat (Morocco) vs Shanghai (China): Temperature, Rainfall and Sunshine

Across the 12 monthly averages, Rabat (Morocco) is warmer in 7 months and Shanghai (China) in 5; 0 months are equal at the displayed precision.

Key monthly differences

Warmest months (mean temperature) (°C)

Rabat
August: 24.00
Shanghai
August: 28.29

Coolest months (mean temperature) (°C)

Rabat
January: 12.71
Shanghai
January: 5.26

Months with the lowest daily rainfall average (mm/day)

Rabat
July, August: 0.04
Shanghai
December: 1.38

Months with the most daily sunshine (hours/day)

Rabat
July: 12.50
Shanghai
August: 9.58
Share this climate chart on Share
Climate Compare: Shanghai (China)
Climate Compare: Rabat (Morocco)
Compare the climate of two locations

Climate comparison questions

When are the temperatures most similar and most different?

The smallest difference in monthly mean temperature is 0.96 °C (April); the largest is 7.45 °C (January).

How much do temperatures vary across the year?

The difference between the warmest and coolest monthly means is 11.29 °C in Rabat (Morocco) and 23.02 °C in Shanghai (China). This describes seasonal variation, not the range between daytime highs and nighttime lows.

Which location has more rainfall?

Rabat (Morocco) has a higher daily rainfall average in 3 months and Shanghai (China) in 9; 0 months are equal at the displayed precision. Rainfall amounts do not tell us how many days it rains.

Which location has more sunshine?

Rabat (Morocco) has more average sunshine hours per day in 12 months and Shanghai (China) in 0; 0 months are equal at the displayed precision. Sunshine duration is different from daylight duration.

Data and measurement guide

Daily values are averaged separately for each calendar month over the saved reference period. Temperatures are daily means, not daytime highs. Rainfall is an average daily amount, not a monthly total; sunshine is average hours per day. These historical averages are not a weather forecast. Each location’s reference period is listed below and may differ.

  • Rabat (Morocco) — Reference period: 2013–2023
  • Shanghai (China) — Reference period: 2013–2023

Monthly climate data

Difference: Shanghai (China) minus Rabat (Morocco)

Temperature °C

Month Rabat Shanghai +/-
Jan 12.71 5.26 -7.45
Feb 13.24 6.44 -6.81
Mar 14.63 11.03 -3.60
Apr 16.70 15.74 -0.96
May 19.35 20.74 1.39
Jun 21.45 24.23 2.78
Jul 23.32 28.23 4.92
Aug 24.00 28.29 4.29
Sep 22.49 24.04 1.55
Oct 20.74 18.91 -1.83
Nov 16.47 13.71 -2.76
Dec 14.07 6.64 -7.43
⌀ Month 18.27 16.94 -1.33

Average sunshine (hours/day)

Month Rabat Shanghai +/-
Jan 8.23 5.82 -2.41
Feb 8.88 5.73 -3.15
Mar 9.90 6.75 -3.15
Apr 11.10 7.97 -3.13
May 12.02 7.64 -4.38
Jun 12.33 6.55 -5.78
Jul 12.50 8.73 -3.77
Aug 11.96 9.58 -2.38
Sep 10.48 7.71 -2.76
Oct 9.53 7.16 -2.36
Nov 8.45 6.10 -2.35
Dec 8.00 6.33 -1.66
⌀ Month 10.28 7.17 -3.11

Average daily rainfall (mm/day)

Month Rabat Shanghai +/-
Jan 2.05 1.91 -0.14
Feb 1.73 2.35 0.61
Mar 1.93 2.67 0.74
Apr 1.27 3.16 1.89
May 0.64 4.32 3.68
Jun 0.22 8.37 8.15
Jul 0.04 6.82 6.78
Aug 0.04 5.10 5.06
Sep 0.36 4.86 4.50
Oct 1.25 2.08 0.83
Nov 2.20 2.11 -0.08
Dec 1.80 1.38 -0.42
⌀ Month 1.13 3.76 2.63

Snow (mm)

Month Rabat Shanghai +/-
Jan 0.00 0.69 0.69
Feb 0.00 0.99 0.99
Mar 0.00 0.01 0.01
Apr 0.00 0.00 0.00
May 0.00 0.00 0.00
Jun 0.00 0.00 0.00
Jul 0.00 0.00 0.00
Aug 0.00 0.00 0.00
Sep 0.00 0.00 0.00
Oct 0.00 0.00 0.00
Nov 0.00 0.01 0.01
Dec 0.00 0.40 0.40
⌀ Month 0.00 0.17 0.17