We derive empirical magnitude scaling relationships for southern California using a dataset of 59 past earthquakes recorded in southern California by the Southern California Seismic Network (SCSN) between 1992 and 2003. The events range in magnitude from 3.0 to 7.3. We use the maximum predominant period (τpmax) and the peak displacement amplitude (Pd) measured from the first 4 seconds of P-wave arrivals to determine period-magnitude and amplitude-magnitude scaling relationships respectively. Our calibration study shows that the scaling relationships are similar to those derived for northern California. The average error in magnitude estimates is 0.2 magnitude units for events with magnitudes smaller than 4.5 (M < = 4.5), 0.3 magnitude units for events with magnitudes ranging from 4.5 to 6.5 (4.5 < M < = 6.5), and 0.5 magnitude units for events with magnitudes greater than 6.5 (M > 6.5).
 The proximity of metropolitan cities to active faults within southern California presents a challenge in developing an earthquake early warning system (EEW) capable of providing advance warning of peak ground shaking associated with large earthquakes.
 Earthquake Alarm Systems (ElarmS) is a methodology to integrate realtime geophysical data during the course of an earthquake for the purpose of providing warnings prior to damaging ground shaking (http://www.elarms.org/). ElarmS uses multiple seismic stations to detect and locate earthquakes, estimate the magnitude from P-waves, and predict the distribution of ground shaking. The methodology was initially developed by Allen and Kanamori , is described more fully by Allen , and has been extended by Wurman et al. . ElarmS has been extensively tested offline within northern California, and shown effective as an algorithm for providing accurate estimates of earthquake magnitude, location and the distribution of peak ground acceleration within a few to a few tens of seconds after the earthquake origin time.
 Using the same methodology described by Wurman et al. , we derive empirical magnitude scaling relationships exclusively for southern California and evaluate the quality of the calibration using 59 past earthquakes recorded in the region. This provides the necessary scaling relations for future application of ElarmS to southern California. We also compare the magnitude scaling relationships derived in southern California with those derived for northern California.
 The ElarmS methodology [Allen and Kanamori, 2003] was developed using past earthquake waveforms to derive empirical scaling relationships between the maximum predominant period (τpmax) of the first 4 seconds of a P-wave arrival at a seismic station, and the final network-recorded event magnitude. A similar methodology is used in the UrEDAS system implemented in Japan [Nakamura, 1988].
Wurman et al.  improve upon the accuracy of produced magnitude estimates by incorporating an additional method for magnitude estimation: scaling the peak displacement or velocity amplitude (Pd/v) of the first 4 seconds of a P-wave arrival with the final network-recorded magnitude via an empirically derived scaling relationship. [Wu et al., 2006].
 In this study, we use a dataset of 59 past earthquakes to derive empirical best-fit period-magnitude and amplitude-magnitude scaling relationships for southern California. These events occurred in southern California between 1992 and 2003, and range in magnitude from 3.0 to 7.3. The dataset includes the three largest magnitude earthquakes for which digital recordings are available. The 1992 Landers event (M = 7.3), the 1994 Northridge event (M = 6.7) and the 1999 Hector Mine event (M = 7.1). The waveforms were recorded by seismic stations within the Southern California Seismic Network (SCSN) and obtained from the Southern California Earthquake Center (SCEC). Figure 1 shows a map of all the events and SCSN stations used in this study.
 We plot observations of τpmax measured within the first 4 seconds of a P-wave arrival versus the network magnitude, and fit a least squares linear regression line to the observations. We define the period-magnitude scaling relationship as the equation of this line. Likewise, we obtain the amplitude-magnitude scaling relationship using observations of the peak displacement amplitude (Pd) within the first 4 seconds of a P-wave arrival. We define the ElarmS magnitude estimate as the linear average of the magnitude estimates obtained from τpmax and Pd.
 Using the derived best-fit relationships and algorithmic components from ShakeMap specific to southern California [Newmark and Hall, 1982; Joyner and Boore, 1988; Boore et al., 1997; Wald et al., 1999, 2005], we run ElarmS on the 59 events in our dataset, and determine the associated magnitude errors and uncertainties in peak ground acceleration estimates at “alarm-time” (defined as the time when 4 seconds of data is available from 4 different channels), in order to evaluate the quality of the calibration.
3.1. Period-Magnitude Scaling Relationship
 We obtain the following best-fit relationship between τpmax in the first 4 seconds of a P-wave arrival at a station, and the event magnitude:
 The solid line in Figure 2a shows a plot of this relationship through the maximum predominant period observations from the 59 events used for the calibration. The variance of the observed τpmax values from the best-fit line is 0.0228 log units in period.
3.2. Amplitude-Magnitude Scaling Relationship
 We obtain the following best-fit relationship between Pd in the first 4 seconds of a P-wave arrival at a station, and the event magnitude:
where R is the distance between the station and the epicenter, in kilometers. Here the variance between observed Pd and the model is 0.134 log units in amplitude. The solid line in Figure 2b shows a plot of this relationship through the peak displacement observations from the 59 events used for the calibration. Using this relation to estimate magnitude in a realtime early warning environment requires a good estimate of the epicentral distance and therefore the event location. This does not cause a problem when using the dense regional networks in California as multiple stations have usually triggered by the time of the first magnitude estimate.
3.3. Quality of the Calibration
 The average magnitude error using τpmax observations from a single seismic station is 1.1 magnitude units. This is greater than an average error of 0.4 magnitude units that we find using the peak displacement amplitude (Pd) observations from a single station. Figure 3 shows a scatter plot of ElarmS magnitude versus network-recorded magnitude (Mw or ML). The dashed line on the plot represents a 1:1 relationship between the estimated magnitude and the observed magnitude. We can therefore evaluate the accuracy of the ElarmS magnitude calibrations by analyzing the scatter of the observation points about this line. The triangles plotted on Figure 3 show the magnitude estimates from τpmax. They show little scatter for small events (M < = 4.5), but more scatter for events with magnitudes greater than 4.5. The squares in Figure 3 represent the magnitude estimates from Pd. They lie remarkably close to the plotted dashed line when event magnitudes are smaller than 5.5. However, at magnitudes larger than 5.5, more scatter occurs. Joint τpmax and Pd magnitude estimates are plotted as circles in Figure 3. The scatter in the combined ElarmS magnitude is significantly less than that of τpmax and Pd magnitude estimates individually, at a given network-recorded magnitude. This justifies using both estimators to provide the most accurate estimate of the earthquake magnitude.
 For small events (we define these as events with M < = 4.5), the average error in ElarmS magnitude estimates is 0.2 magnitude units. For moderate-sized events (4.5 < M < = 6.5), this error is slightly larger: 0.3 magnitude units. This is reflected by the greater scatter in Figure 3 at larger magnitudes. Since we are primarily concerned with the accuracy in parameter estimates of large earthquakes, which potentially cause the most socio-economic damage in cities, we evaluate the accuracy of the calibration for the three largest events in the dataset. In the case of the 1992 M7.3 Landers earthquake, the magnitude is underestimated by 1.0 magnitude units. The magnitude error is primarily due to the fact that there were only 2 stations to report τpmax and Pd measurements within 100 km of the epicenter at the time of earthquake. We find the ElarmS magnitude error for the 1999 M7.1 Hector Mine earthquake to be lower: 0.5 magnitude units. For the 1994 M6.7 Northridge earthquake, despite the fact that only 2 stations were located within 100 km of the epicenter, the magnitude is only underestimated by less than 0.1 magnitude units. The average ElarmS magnitude error for these three large events is 0.5 magnitude units.
 ElarmS provides realtime predictions of peak ground acceleration (PGA), peak ground velocity (PGV), and Modified Mercalli Intensity (MMI) using a similar approach to that used by ShakeMap. Here we present only the errors for PGA due to space limitations, however, they are representative of the errors in PGV and MMI also. Figure 4 shows the error in PGA estimates for all 59 events. This is expressed as the log (PGA) error, which is calculated by subtracting the logarithm of the observed peak ground acceleration from the logarithm of the estimated peak ground acceleration. An error of 1 represents an overprediction of the peak ground acceleration by a factor of 10. The plots in Figure 4 show that the log (PGA) error decreases from an average error of −0.5 initially (i.e. 1 second after event detection) (Figure 4a) to 0.0 at “alarm-time” meaning that the PGA estimates are centered on the true value (Figure 4b). The standard deviation of the error in the log (PGA) estimates is 0.8 initially, and decreases to 0.5 at “alarm-time”. The log (PGA) errors associated with all three of the largest events at “alarm-time” were small. For the Northridge event, we find the average log (PGA) error to be −0.2 with a standard deviation of 0.3 (−0.2 ± 0.3). This corresponds to an average underestimation of peak ground acceleration by a factor of 0.6. The log (PGA) errors for Landers and Hector Mine were less, (−0.1 ± 0.2) and (0.0 ± 0.2) respectively. It is worth noting that the PGA errors at “alarm-time” do not correlate with the size of the magnitude errors.
Figure 2a shows that compared to northern California, shorter maximum predominant periods (higher frequencies) are found within southern California, for any given network magnitude. While the slight difference in scaling slope between northern and southern California is statistically insignificant with this dataset, the difference in scaling offset is a statistically significant result, with greater than 99.99% confidence (Student-t value of 7.17 with 1760 degrees of freedom). Presently we are unsure of reasons for this, although fault rupture dynamics and regional crustal structure may play a role in explaining this observation. For the amplitude-magnitude calibration, we find that measuring the peak amplitude in displacement (Pd) yields the lowest errors for both velocity sensors and accelerometers. This therefore allows us to derive a single best-fit scaling relationship using Pd measurements only. By contrast, in northern California two individual amplitude-magnitude scaling relationships were necessary for velocity sensors and accelerometers; peak amplitude in displacement (Pd) was used for velocity instruments, whereas peak amplitude in velocity records (Pv) were used for accelerometers (for a full discussion to justify deriving scaling relationships for individual channels, refer to Wurman et al. ). The lower errors associated with using peak amplitude in displacement in southern California may be attributed to the housing of accelerometers at stations located at lower noise sites. We speculate that the larger number of stations further from the coast in southern California are subject to less noise due to ocean waves and tides. Since we are able to obtain Pd measurements from both velocity sensors and accelerometers in southern California, we have a larger number of Pd data points on our scatter plot of Pd vs. network magnitude providing for a more robust fit. This ensures that we can obtain a well-constrained amplitude-magnitude scaling relationship. Figure 2b shows the similarity between the Pd amplitude-magnitude scaling relationships obtained for southern and northern California respectively.
 The dataset we use in this calibration study includes large magnitude events recorded by seismic networks when the density of station coverage was much lower than that of the present day. Hence the accuracy of rapid-magnitude estimates determined from ElarmS in this study would be further improved if we were able to include within our dataset large magnitude earthquake data recorded by a seismic network similar to today's station coverage density. This study therefore exemplifies the threshold accuracy of magnitude and peak ground acceleration estimates ElarmS can provide for large magnitude earthquake events. We calculate that if a repeat Hector Mine-sized earthquake occurs along the Lavic Lake/Bullion fault, ElarmS could potentially provide the following warning times for populated cities at “alarm-time”: 10 seconds for Barstow (located 75 kilometers from the epicenter); 20 seconds for Moreno Valley/Riverside (located approximately 104 kilometers away), and 30 seconds for downtown Los Angeles (located 190 kilometers away). The warning times given here indicate the amount of time available before the S-wave arrival, which is the earliest time at which peak ground shaking would occur. It should be noted that these times do not take into account delays due to transmission of data over seismic networks which would likely be a few seconds. The density of the seismic network in 1999 was similar to that of today, therefore these warning times are a good indication of the warning time ElarmS could provide.
 The results of our calibration study show that the scaling relationships between τpmax and Pd measured from the first 4 seconds of the P-wave and earthquake magnitude are similar but not identical to those of northern California. Combining these scaling relations to determine the ElarmS magnitude estimate we find that the uncertainty for small magnitude events (M < = 4.5) is 0.2 magnitude units. For 4.5 < M < = 6.5 events the uncertainty is 0.3 and for M > 6.5 the uncertainty is 0.5. It is a challenge to estimate the accuracy for large events given the small waveform dataset available due to few events and fewer stations providing τpmax and Pd measurements at the time of the events. Errors in the peak ground acceleration estimates have a mean and standard deviation of (0.0 ± 0.5) at “alarm-time”. The errors for the three largest events were (−0.2 ± 0.3), (−0.1 ± 0.2) and (0.0 ± 0.2) for Northridge, Landers and Hector Mine respectively. The errors are smallest for the most recent Hector Mine earthquake by which time many more stations were operating in southern California. For this earthquake 11 channels were providing data about the earthquake at “alarm-time” while only 4 were available for both Northridge and Landers.
 Given the present day density of station coverage in southern California, these magnitude scaling relationships can potentially provide rapid and accurate real-time magnitude and ground motion estimates for populated areas in epicentral regions. This would allow existing seismic networks to provide seconds to tens of seconds warning prior to damaging ground shaking.
 The authors thank Pete Lombard for assistance in incorporating ShakeMap algorithms for southern California into ElarmS. This project was made possible by an exchange program between the Department of Earth Science and Engineering at Imperial College London, and the Department of Earth and Planetary Science at University of California Berkeley. Support for this work was provided by USGS/NEHRP grant 06HQAG0147.