Skip to content

Commit

Permalink
Update AEMET.py
Browse files Browse the repository at this point in the history
  • Loading branch information
navass11 committed Dec 17, 2024
1 parent 3d74232 commit a8723f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SIMPCCe/AEMET.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,9 @@ def extract_climate_aemet(self,X,Y):
Temperatura_Minima = pd.DataFrame(index = time, columns=np.arange(1, len(coordenadas_basin)+1))


prec_day_nc = xr.open_dataset(self.path_aemet+'/Spain02_v5.0_DD_010reg_aa3d_pr.nc')
tasmax_day_nc = xr.open_dataset(self.path_aemet+'/Spain02_v5.0_DD_010reg_aa3d_tasmax.nc')
tasmin_day_nc = xr.open_dataset(self.path_aemet+'/Spain02_v5.0_DD_010reg_aa3d_tasmin.nc')
prec_day_nc = xr.open_dataset(self.path_aemet+'/Spain02_v5.0_DD_010reg_aa3d_pr.nc')/10
tasmax_day_nc = xr.open_dataset(self.path_aemet+'/Spain02_v5.0_DD_010reg_aa3d_tasmax.nc')/10
tasmin_day_nc = xr.open_dataset(self.path_aemet+'/Spain02_v5.0_DD_010reg_aa3d_tasmin.nc')/10

prec_nc = prec_day_nc.resample(time='M').sum(min_count=1)
tasmax_nc = tasmax_day_nc.resample(time='M').mean()
Expand Down

0 comments on commit a8723f2

Please sign in to comment.