@@ -79,7 +79,7 @@ def parse_arguments():
7979 '--stride' ,
8080 type = int ,
8181 help = ("Number of hours between time steps."
82- + "\n Defaults to 6 hours for WACCM and 1 hour for WRF-Chem." )
82+ + "\n Defaults to 6 hours for WACCM and 1 hour for WRF-Chem." )
8383 )
8484 parser .add_argument (
8585 '--latitude' ,
@@ -370,11 +370,11 @@ def convertWaccm(varDict):
370370 units = vTuple [unitIndex ]
371371 if (units == "mol/mol" ):
372372 varDict [key ] = (vTuple [0 ], "mol m-3" ,
373- [vTuple [valueIndex ][0 ] * air_density ])
373+ [vTuple [valueIndex ][0 ] * air_density ])
374374 if (units == "kg/kg" ):
375375 # soa species only
376376 varDict [key ] = (vTuple [0 ], "mol m-3" ,
377- [vTuple [valueIndex ][0 ] * soa_density / soa_molecular_weight ])
377+ [vTuple [valueIndex ][0 ] * soa_density / soa_molecular_weight ])
378378
379379 return (varDict )
380380
@@ -675,7 +675,7 @@ def main():
675675 waccmFullPath = os .path .join (modelDir , waccmFilename )
676676 if not os .path .exists (waccmFullPath ):
677677 logger .warning (f"File { waccmFullPath } does not exist. Skipping..." )
678- when += datetime .timedelta (hours = strideHours )
678+ when += datetime .timedelta (hours = strideHours )
679679 continue
680680
681681 # read and glean chemical species from WACCM and MUSICA
@@ -695,7 +695,7 @@ def main():
695695 # Read named variables from WACCM model output.
696696 logger .info (f"Retrieve WACCM conditions at ({ lats } North, { lons } East) when { when } ." )
697697 waccmValues = readWACCM (commonDict , lats , lons , alts ,
698- when , modelDir , waccmFilename , modelType )
698+ when , modelDir , waccmFilename , modelType )
699699 logger .debug (f"Original WACCM waccmValues = { waccmValues } " )
700700 varValues .update (waccmValues )
701701
@@ -715,7 +715,7 @@ def main():
715715 appendRow (accumValues , varValues )
716716
717717 # move on to the next time step
718- when += datetime .timedelta (hours = strideHours )
718+ when += datetime .timedelta (hours = strideHours )
719719
720720 logger .info (f"Final frameCount = { frameCount } " )
721721 logger .debug (f"Final WACCM accumValues = { accumValues } " )
@@ -728,14 +728,14 @@ def main():
728728 if (outputCSV ):
729729 # Write CSV file for MusicBox initial conditions.
730730 csvName = os .path .join (musicaDir ,
731- "{}_conditions-{}.csv" .format (spanConditions , modelNames [modelType ]))
731+ "{}_conditions-{}.csv" .format (spanConditions , modelNames [modelType ]))
732732 logger .info (f"csvName = { csvName } " )
733733 writeInitCSV (accumValues , csvName )
734734
735735 if (outputJSON ):
736736 # Write JSON file for MusicBox initial conditions.
737737 jsonName = os .path .join (musicaDir ,
738- "{}_config-{}.json" .format (spanConditions , modelNames [modelType ]))
738+ "{}_config-{}.json" .format (spanConditions , modelNames [modelType ]))
739739 logger .info (f"jsonName = { jsonName } " )
740740 writeInitJSON (accumValues , jsonName )
741741
0 commit comments