@@ -56,7 +56,7 @@ function init_external_aerosol_file(config)
56
56
local aerosols = {}
57
57
for idx = 0 ,type_indexes :rows ()- 1 do
58
58
if (type_indexes (idx ) >= 0 ) then
59
- type_idx = type_indexes (idx )
59
+ local type_idx = type_indexes (idx )
60
60
table.insert (aerosols , type_names :value (type_idx ))
61
61
end
62
62
end
@@ -75,7 +75,7 @@ function init_external_aerosol_file(config)
75
75
local aer_index
76
76
for idx = 0 ,type_indexes :rows ()- 1 do
77
77
if (type_indexes (idx ) >= 0 ) then
78
- type_idx = type_indexes (idx )
78
+ local type_idx = type_indexes (idx )
79
79
if (type_names :value (type_idx ) == aer_name ) then
80
80
aer_index = idx
81
81
end
@@ -96,7 +96,7 @@ function init_external_aerosol_file(config)
96
96
local sounding_idx = sid :sounding_number ()
97
97
98
98
local type_index = self .config :aerosol_type_index (aer_name )
99
- return self .config :aer_priori_file ():read_double_4d (" /Aerosol/GaussianParam" )(frame_idx , sounding_idx , type_idx , Range .all ())
99
+ return self .config :aer_priori_file ():read_double_4d (" /Aerosol/GaussianParam" )(frame_idx , sounding_idx , type_index , Range .all ())
100
100
end
101
101
end
102
102
@@ -107,7 +107,7 @@ function init_external_aerosol_file(config)
107
107
local sounding_idx = sid :sounding_number ()
108
108
109
109
local type_index = self .config :aerosol_type_index (aer_name )
110
- val = self .config :aer_priori_file ():read_double_5d (" /Aerosol/GaussianParamCov" )(frame_idx , sounding_idx , type_idx , Range .all (), Range .all ())
110
+ val = self .config :aer_priori_file ():read_double_5d (" /Aerosol/GaussianParamCov" )(frame_idx , sounding_idx , type_index , Range .all (), Range .all ())
111
111
print (" cov = " , val )
112
112
return val
113
113
end
0 commit comments