diff --git a/.README.txt.swp b/.README.txt.swp deleted file mode 100644 index d5666534131a220441d401770251c97d4211c743..0000000000000000000000000000000000000000 Binary files a/.README.txt.swp and /dev/null differ diff --git a/dynamic/.palm_dynamic_output.py.swp b/dynamic/.palm_dynamic_output.py.swp new file mode 100644 index 0000000000000000000000000000000000000000..71ec2f95fd6bf73e6686fd3220998f1544c77edb Binary files /dev/null and b/dynamic/.palm_dynamic_output.py.swp differ diff --git a/dynamic/palm_dynamic_output.py b/dynamic/palm_dynamic_output.py index 8c088185c0572a787d4eda164e94cdb34db4307c..54fa3495f0847da076b3288d3505ad763bfb81ea 100644 --- a/dynamic/palm_dynamic_output.py +++ b/dynamic/palm_dynamic_output.py @@ -83,6 +83,17 @@ def palm_dynamic_output(wrf_files, interp_files, dynamic_driver_file, times_sec, outfile.createDimension('Dmid', sum(nbin)) outfile.createDimension('composition_index', len(listspec)) outfile.createDimension('max_string_length', 25) + # variables + val_dmid = outfile.createVariable('Dmid', "f4",('Dmid',)) + val_dmid.setncattr('units', 'm') + _dmid, _bim = palm_dynamic_aerosol.define_bins(nbin, reglim) + _dmid = np.array(_dmid) + val_dmid[:] = _dmid[:] + + val_idx = outfile.createVariable('composition_index', "i4", ('composition_index',)) + for n in range(0, len(listspec)): + val_idx[n] = n+1 + # 2D vertical profile variables _val_composition_name = outfile.createVariable('composition_name',"S1", ("composition_index", "max_string_length")) _val_composition_name.setncattr('long_name', "aerosol composition name")