CEMPD / SMOKE

Create emissions inputs for multiple air quality modeling systems with unmatched speed and flexibility
https://www.cmascenter.org/smoke/
46 stars 22 forks source link

CMV AERMOD script error #108

Open cseppan opened 2 months ago

cseppan commented 2 months ago

Errors reported by Matt running the CMV AERMOD script on RHEL 8

Experimental keys on scalar is now forbidden at /work/EMIS/users/mroark/WO270.5/aermod/aermod_script_testing/cmv.pl line 384. Type of arg 1 to keys must be hash or array (not hash element) at /work/EMIS/users/mroark/WO270.5/aermod/aermod_script_testing/cmv.pl line 384, near "}) " Experimental keys on scalar is now forbidden at /work/EMIS/users/mroark/WO270.5/aermod/aermod_script_testing/cmv.pl line 388. Type of arg 1 to keys must be hash or array (not hash element) at /work/EMIS/users/mroark/WO270.5/aermod/aermod_script_testing/cmv.pl line 388, near "}) " Experimental keys on scalar is now forbidden at /work/EMIS/users/mroark/WO270.5/aermod/aermod_script_testing/cmv.pl line 437. Type of arg 1 to keys must be hash or array (not hash element) at /work/EMIS/users/mroark/WO270.5/aermod/aermod_script_testing/cmv.pl line 437, near "}) " Experimental keys on scalar is now forbidden at /work/EMIS/users/mroark/WO270.5/aermod/aermod_script_testing/cmv.pl line 451. Type of arg 1 to keys must be hash or array (not hash element) at /work/EMIS/users/mroark/WO270.5/aermod/aermod_script_testing/cmv.pl line 451, near "}) " Experimental keys on scalar is now forbidden at /work/EMIS/users/mroark/WO270.5/aermod/aermod_script_testing/cmv.pl line 472. Type of arg 1 to keys must be hash or array (not hash element) at /work/EMIS/users/mroark/WO270.5/aermod/aermod_script_testing/cmv.pl line 472, near "}) "

cseppan commented 2 months ago

Old:

foreach my $group_type (sort keys $port_cell_emissions{$facility_id}) {

New:

foreach my $group_type (sort keys %{$port_cell_emissions{$facility_id}}) {

cmv.pl.txt