diff --git a/src/pypromice/process/L1toL2.py b/src/pypromice/process/L1toL2.py index 01fa9f4d..5e0ff14e 100644 --- a/src/pypromice/process/L1toL2.py +++ b/src/pypromice/process/L1toL2.py @@ -52,10 +52,11 @@ def toL2(L1, T_0=273.15, ews=1013.246, ei0=6.1071, eps_overcast=1., # Determiune cloud cover for on-ice stations if not ds.attrs['bedrock']: - cc = calcCloudCoverage(ds['t_u'], T_0, eps_overcast, eps_clear, # Calculate cloud coverage + cc = calcCloudCoverage(ds['t_u'], T_0, eps_overcast, eps_clear, # Calculate cloud coverage ds['dlr'], ds.attrs['station_id']) ds['cc'] = (('time'), cc.data) else: + # Default cloud cover for bedrock station for which tilt should be 0 anyway. cc = 0.8 # Determine surface temperature diff --git a/src/pypromice/process/aws.py b/src/pypromice/process/aws.py index 081d2457..6a33975b 100644 --- a/src/pypromice/process/aws.py +++ b/src/pypromice/process/aws.py @@ -119,7 +119,8 @@ def getL3(self): # Switch gps_lon to negative (degrees_east) # Do this here, and NOT in addMeta, otherwise we switch back to positive # when calling getMeta in joinL3! PJW - self.L3['gps_lon'] = self.L3['gps_lon'] * -1 + if self.attrs['station_id'] not in ['UWN', 'Roof_GEUS', 'Roof_PROMICE']: + self.L3['gps_lon'] = self.L3['gps_lon'] * -1 # Add variable attributes and metadata self.L3 = self.addAttributes(self.L3)