@@ -95,7 +95,7 @@ class ForecastModel(object):
95
95
vert_level = 100000
96
96
97
97
units = {
98
- 'temperature ' : 'C' ,
98
+ 'temp_air ' : 'C' ,
99
99
'wind_speed' : 'm/s' ,
100
100
'ghi' : 'W/m^2' ,
101
101
'ghi_raw' : 'W/m^2' ,
@@ -491,7 +491,7 @@ def __init__(self, resolution='half', set_type='best'):
491
491
model = 'GFS {} Degree Forecast' .format (resolution )
492
492
493
493
self .variables = {
494
- 'temperature ' : 'Temperature_surface' ,
494
+ 'temp_air ' : 'Temperature_surface' ,
495
495
'wind_speed_gust' : 'Wind_speed_gust_surface' ,
496
496
'wind_speed_u' : 'u-component_of_wind_isobaric' ,
497
497
'wind_speed_v' : 'v-component_of_wind_isobaric' ,
@@ -504,7 +504,7 @@ def __init__(self, resolution='half', set_type='best'):
504
504
'ghi_raw' : 'Downward_Short-Wave_Radiation_Flux_surface_Mixed_intervals_Average' , }
505
505
506
506
self .output_variables = [
507
- 'temperature ' ,
507
+ 'temp_air ' ,
508
508
'wind_speed' ,
509
509
'ghi' ,
510
510
'dni' ,
@@ -534,7 +534,7 @@ def process_data(self, data, cloud_cover='total_clouds', **kwargs):
534
534
Processed forecast data.
535
535
"""
536
536
data = super (GFS , self ).process_data (data , ** kwargs )
537
- data ['temperature ' ] = self .kelvin_to_celsius (data ['temperature ' ])
537
+ data ['temp_air ' ] = self .kelvin_to_celsius (data ['temp_air ' ])
538
538
data ['wind_speed' ] = self .uv_to_speed (data )
539
539
data = data .join (self .cloud_cover_to_irradiance (data [cloud_cover ]),
540
540
how = 'outer' )
@@ -579,7 +579,7 @@ def __init__(self, set_type='best'):
579
579
model = 'GSD HRRR CONUS 3km surface'
580
580
581
581
self .variables = {
582
- 'temperature ' : 'Temperature_surface' ,
582
+ 'temp_air ' : 'Temperature_surface' ,
583
583
'wind_speed_gust' : 'Wind_speed_gust_surface' ,
584
584
'total_clouds' : 'Total_cloud_cover_entire_atmosphere' ,
585
585
'low_clouds' : 'Low_cloud_cover_UnknownLevelType-214' ,
@@ -588,7 +588,7 @@ def __init__(self, set_type='best'):
588
588
'ghi_raw' : 'Downward_short-wave_radiation_flux_surface' , }
589
589
590
590
self .output_variables = [
591
- 'temperature ' ,
591
+ 'temp_air ' ,
592
592
'wind_speed'
593
593
'ghi_raw' ,
594
594
'ghi' ,
@@ -620,7 +620,7 @@ def process_data(self, data, cloud_cover='total_clouds', **kwargs):
620
620
"""
621
621
622
622
data = super (HRRR_ESRL , self ).process_data (data , ** kwargs )
623
- data ['temperature ' ] = self .kelvin_to_celsius (data ['temperature ' ])
623
+ data ['temp_air ' ] = self .kelvin_to_celsius (data ['temp_air ' ])
624
624
data ['wind_speed' ] = self .gust_to_speed (data )
625
625
data = data .join (self .cloud_cover_to_irradiance (data [cloud_cover ]),
626
626
how = 'outer' )
@@ -661,7 +661,7 @@ def __init__(self, set_type='best'):
661
661
model = 'NAM CONUS 12km from CONDUIT'
662
662
663
663
self .variables = {
664
- 'temperature ' : 'Temperature_surface' ,
664
+ 'temp_air ' : 'Temperature_surface' ,
665
665
'wind_speed_gust' : 'Wind_speed_gust_surface' ,
666
666
'total_clouds' : 'Total_cloud_cover_entire_atmosphere_single_layer' ,
667
667
'low_clouds' : 'Low_cloud_cover_low_cloud' ,
@@ -670,7 +670,7 @@ def __init__(self, set_type='best'):
670
670
'ghi_raw' : 'Downward_Short-Wave_Radiation_Flux_surface' , }
671
671
672
672
self .output_variables = [
673
- 'temperature ' ,
673
+ 'temp_air ' ,
674
674
'wind_speed' ,
675
675
'ghi' ,
676
676
'dni' ,
@@ -701,7 +701,7 @@ def process_data(self, data, cloud_cover='total_clouds', **kwargs):
701
701
"""
702
702
703
703
data = super (NAM , self ).process_data (data , ** kwargs )
704
- data ['temperature ' ] = self .kelvin_to_celsius (data ['temperature ' ])
704
+ data ['temp_air ' ] = self .kelvin_to_celsius (data ['temp_air ' ])
705
705
data ['wind_speed' ] = self .gust_to_speed (data )
706
706
data = data .join (self .cloud_cover_to_irradiance (data [cloud_cover ]),
707
707
how = 'outer' )
@@ -753,7 +753,7 @@ def __init__(self, set_type='best'):
753
753
'condensation_height' : 'Geopotential_height_adiabatic_condensation_lifted' }
754
754
755
755
self .output_variables = [
756
- 'temperature ' ,
756
+ 'temp_air ' ,
757
757
'wind_speed' ,
758
758
'ghi' ,
759
759
'dni' ,
@@ -784,8 +784,8 @@ def process_data(self, data, cloud_cover='total_clouds', **kwargs):
784
784
"""
785
785
786
786
data = super (HRRR , self ).process_data (data , ** kwargs )
787
- data ['temperature ' ] = self .isobaric_to_ambient_temperature (data )
788
- data ['temperature ' ] = self .kelvin_to_celsius (data ['temperature ' ])
787
+ data ['temp_air ' ] = self .isobaric_to_ambient_temperature (data )
788
+ data ['temp_air ' ] = self .kelvin_to_celsius (data ['temp_air ' ])
789
789
data ['wind_speed' ] = self .gust_to_speed (data )
790
790
data = data .join (self .cloud_cover_to_irradiance (data [cloud_cover ]),
791
791
how = 'outer' )
@@ -824,12 +824,12 @@ def __init__(self, set_type='best'):
824
824
model_type = 'Forecast Products and Analyses'
825
825
model = 'National Weather Service CONUS Forecast Grids (CONDUIT)'
826
826
self .variables = {
827
- 'temperature ' : 'Temperature_surface' ,
827
+ 'temp_air ' : 'Temperature_surface' ,
828
828
'wind_speed' : 'Wind_speed_surface' ,
829
829
'wind_speed_gust' : 'Wind_speed_gust_surface' ,
830
830
'total_clouds' : 'Total_cloud_cover_surface' , }
831
831
self .output_variables = [
832
- 'temperature ' ,
832
+ 'temp_air ' ,
833
833
'wind_speed' ,
834
834
'ghi' ,
835
835
'dni' ,
@@ -855,7 +855,7 @@ def process_data(self, data, **kwargs):
855
855
856
856
cloud_cover = 'total_clouds'
857
857
data = super (NDFD , self ).process_data (data , ** kwargs )
858
- data ['temperature ' ] = self .kelvin_to_celsius (data ['temperature ' ])
858
+ data ['temp_air ' ] = self .kelvin_to_celsius (data ['temp_air ' ])
859
859
data = data .join (self .cloud_cover_to_irradiance (data [cloud_cover ]),
860
860
how = 'outer' )
861
861
return data .ix [:, self .output_variables ]
@@ -902,14 +902,14 @@ def __init__(self, resolution='20', set_type='best'):
902
902
model_type = 'Forecast Model Data'
903
903
model = 'Rapid Refresh CONUS {}km' .format (resolution )
904
904
self .variables = {
905
- 'temperature ' : 'Temperature_surface' ,
905
+ 'temp_air ' : 'Temperature_surface' ,
906
906
'wind_speed_gust' : 'Wind_speed_gust_surface' ,
907
907
'total_clouds' : 'Total_cloud_cover_entire_atmosphere_single_layer' ,
908
908
'low_clouds' : 'Low_cloud_cover_low_cloud' ,
909
909
'mid_clouds' : 'Medium_cloud_cover_middle_cloud' ,
910
910
'high_clouds' : 'High_cloud_cover_high_cloud' , }
911
911
self .output_variables = [
912
- 'temperature ' ,
912
+ 'temp_air ' ,
913
913
'wind_speed' ,
914
914
'ghi' ,
915
915
'dni' ,
@@ -939,7 +939,7 @@ def process_data(self, data, cloud_cover='total_clouds', **kwargs):
939
939
"""
940
940
941
941
data = super (RAP , self ).process_data (data , ** kwargs )
942
- data ['temperature ' ] = self .kelvin_to_celsius (data ['temperature ' ])
942
+ data ['temp_air ' ] = self .kelvin_to_celsius (data ['temp_air ' ])
943
943
data ['wind_speed' ] = self .gust_to_speed (data )
944
944
data = data .join (self .cloud_cover_to_irradiance (data [cloud_cover ]),
945
945
how = 'outer' )
0 commit comments