# Designing and Implementing Weather Generators as Web Services
## 4 Case Study  
Several studies utilized DisAg and PredictWTD model for generating weather realizations in order to predict yield by crop modeling for example [9] and [40]. This section demonstrates two case studies in which weather generator web services are used for preparing weather realizations. The generated weather realizations are in WTD format following ICASA standard as for the input to DSSAT crop model. The study area for both cases is in Gamagoori City, Aichi Prefecture. Gamagoori is nationally recognized for horticulture crops especially for mandarin oranges. Small rice fields are also spread around the city. Climatological data (1979-2016; 37 years) were derived from MeteoCrop DB [33]. The station's name is urn:IBUNYA:AMeDAS-NIAES:GAMAGOORI-51281. This station is located at 34.845 degrees latitude and 137.217 degrees longitude. Table 8 shows monthly average of daily SRAD, TMIN, TMAX and monthly precipitation total of climatological data in the location. In Japan, during \begin{table}
\begin{tabular}{c l} \hline \hline
**Service Endpoint** & [[http://ec2-52-69-188-223.ap-northeast-1.compute.amazonaws.com:8080/WSc](http://ec2-52-69-188-223.ap-northeast-1.compute.amazonaws.com:8080/WSc)]([http://ec2-52-69-188-223.ap-northeast-1.compute.amazonaws.com:8080/WSc](http://ec2-52-69-188-223.ap-northeast-1.compute.amazonaws.com:8080/WSc))\_SOS\_1/service? \\ \hline
**Operation** & \\ \hline \multirow{2}{*}{GetCapabilities} & This operation is to request a list of available weather realization which is available on this WCs SOS Server \\ \cline{2-3}  & [[http://ec2-52-69-188-223.ap-northeast-1.compute.amazonaws.com:8080/WSc](http://ec2-52-69-188-223.ap-northeast-1.compute.amazonaws.com:8080/WSc)]([http://ec2-52-69-188-223.ap-northeast-1.compute.amazonaws.com:8080/WSc](http://ec2-52-69-188-223.ap-northeast-1.compute.amazonaws.com:8080/WSc))\_SOS\_2/service?service=SOS&request=GetCapabilities\&AcceptVersions=2.0.0 \\ \hline \multirow{2}{*}{GetObservation} & This operation is to request data which is weather realization. The following HTTP GET is for acquiring two scenarios of weather realization. \\ \cline{2-3}  & [[http://ec2-52-69-188-223.ap-northeast-1.compute.amazonaws.com:8080/WSc](http://ec2-52-69-188-223.ap-northeast-1.compute.amazonaws.com:8080/WSc)]([http://ec2-52-69-188-223.ap-northeast-1.compute.amazonaws.com:8080/WSc](http://ec2-52-69-188-223.ap-northeast-1.compute.amazonaws.com:8080/WSc))\_SOS\_2/service?service=SOS&version=2.0.0&request=GetObservation\&MergeObservationsIntoDataArray=true&offering=scenario\_1\_generator\_DISAG\_climatforecast\_IoRMA\_foi\_urn:IBUNYA:AMeDAS-NIAES:GAMAGOORI-51281, Scenario\_2\_generator\_DISAG\_climatforecast\_NORMAL\_foi\_urn:IBUNYA:AMeDAS-NIAES:GAMAGOORI-51281 \\ \hline \hline \end{tabular}
\end{table} 
Table 6: Request parameter of the predictWTD service. \begin{table}
\begin{tabular}{l l} \hline \hline
**Service Endpoint** & [[http://ec2-52-69-188-223.ap-northeast-1.compute.amazonaws.com:8080/DataTransformation/rest/transform/](http://ec2-52-69-188-223.ap-northeast-1.compute.amazonaws.com:8080/DataTransformation/rest/transform/)]([http://ec2-52-69-188-223.ap-northeast-1.compute.amazonaws.com:8080/DataTransformation/rest/transform/](http://ec2-52-69-188-223.ap-northeast-1.compute.amazonaws.com:8080/DataTransformation/rest/transform/)) \\ \hline
**HTTP GET Parameter** & **Description** \\ \hline URL of historical data & URL of historical data in O \& M format \\ \hline \hline \end{tabular}
\end{table} 
Table 7: Request parameter of the DisAg service. early summer (June to July) is called \"baiu\". Baiu is a cloudy and rainy period. SRAD in period is lesser, even if the sun elevation is high compared with non-Baiu period. Weather realizations were generated from March to December to cover the rice season, which is around April to October for the center of Japan. Case Study 1: This Case Used DISAG Web Service for Generating Weather Realizations That Follows Climatology.