@@ -23,17 +23,17 @@ def get_urban_params(urban_ds: Union[xr.Dataset, str],
2323 Get the urban parameters.
2424
2525 Args:
26- urban_ds (_type_ ): the urban dataset
27- soil_ds (_type_ ): the soil dataset
28- template (_type_ ): the template dataset
29- lat (_type_ ): latitude of interest point
30- lon (_type_ ): longitude of interest point
26+ urban_ds (xr.Dataset or str ): the urban dataset
27+ soil_ds (xr.Dataset or str ): the soil dataset
28+ template (xr.Dataset or str, optional ): the template dataset
29+ lat (float ): latitude of interest point
30+ lon (float ): longitude of interest point
3131 PTC_URBAN (list, optional): The percentage of urban. Defaults to [0,0,100].
3232 0. TBD urban, 1. HD urban, 2. MD urban
33- outputname (_type_ , optional): the output file name. Defaults to "surfdata.nc".
33+ outputname (str , optional): the output file name. Defaults to "surfdata.nc".
3434
3535 Returns:
36- _type_ : the modified template dataset
36+ xr.Dataset : the modified template dataset
3737 """
3838
3939 if lon > 180 :
@@ -95,9 +95,9 @@ def get_soil_params(ds: Union [xr.Dataset, xr.DataArray, str],
9595 Get the soil parameters.
9696
9797 Args:
98- ds (_type_ ): the soil dataset
99- lat (_type_ ): latitude of interest point
100- lon (_type_ ): longitude of interest point
98+ ds (xr.Dataset or xr.DataArray or str ): the soil dataset
99+ lat (float ): latitude of interest point
100+ lon (float ): longitude of interest point
101101
102102 Returns:
103103 tuple: sand and clay content from the soil dataset
@@ -147,30 +147,31 @@ def get_soil_params(ds: Union [xr.Dataset, xr.DataArray, str],
147147 return sand , clay
148148
149149
150- def get_forcing (start_year , end_year ,
151- start_month , end_month ,
152- lat , lon , zbot ,
153- source = 'cds'
150+ def get_forcing (start_year :int ,
151+ end_year : int ,
152+ start_month : int , end_month : int ,
153+ lat : float , lon : float , zbot : float ,
154+ source : str = 'cds'
154155 ):
155156
156157 """
157158 get the forcing data from the era5 dataset
158159
159160 Args:
160- start_year (_type_ ): the start year
161- end_year (_type_ ): the end year
162- start_month (_type_ ): the start month
163- end_month (_type_ ): the end month
164- lat (_type_ ): latitude of interest point
165- lon (_type_ ): longitude of interest point
166- zbot (_type_ ): the bottom level height
167- source (_type_ ): the source of the data, can be "cds", "arco-era5", "era5-land-ts", "gee"
161+ start_year (int ): the start year
162+ end_year (int ): the end year
163+ start_month (int ): the start month
164+ end_month (int ): the end month
165+ lat (float ): latitude of interest point
166+ lon (float ): longitude of interest point
167+ zbot (float ): the bottom level height
168+ source (str ): the source of the data, can be "cds", "arco-era5", "era5-land-ts", "gee"
168169 "cds": download data from the Copernicus Climate Data Store (CDS) using the CDS API
169170 "arco-era5": download data from the ARCO ERA5 dataset
170171 "era5-land-ts": download data from the ERA5-Land Time Series dataset
171172 "gee": download data from the Google Earth Engine (GEE) using the GEE API
172173 Returns:
173- _type_ : the forcing dataset
174+ xr.Dataset : the forcing dataset
174175 """
175176
176177 if source == "cds" :
0 commit comments