diff --git a/mapies/viirs.py b/mapies/viirs.py index 462fdbfc05ef7b43e66412cbb6ef9e13a32b27e3..f2568d9137e4d1b4f1feb8ba5063db6b1c2d75f0 100644 --- a/mapies/viirs.py +++ b/mapies/viirs.py @@ -97,7 +97,7 @@ class VIIRS(MAPIES): for date in self.dates_slice: date = datetime.strptime(date, '%Y%m%d%H%M').strftime('%Y%j') - filepaths = f'{self.indir}/**/AERDB_L2_VIIRS_NOAA20.A{date}*' + filepaths = f'{self.indir}/**/AERDB_L2_VIIRS_*.A{date}*' file_patterns.append(filepaths) files = sorted(get_file_list(file_patterns)) diff --git a/run/run_viirs.py b/run/run_viirs.py index 4239d78884c4d5440f031c2cdc3286dc368c2b7e..1bc50375244a7e9a3981282a68d181fb2213b8e0 100644 --- a/run/run_viirs.py +++ b/run/run_viirs.py @@ -12,15 +12,15 @@ if __name__ == "__main__": outdir="/esarchive/scratch/cmeikle/" - indir="/esarchive/obs/nasa/viirs_noaa20_aerdb_l2/original_files/VIIRS/" + indir="/esarchive/obs/nasa/viirs_snpp_aerdb_l2_v2/original_files/VIIRS" start_time = time.time() - c = VIIRS(start_date, end_date, dest=outdir, indir=indir, grid_repr="global") + c = VIIRS(start_date, end_date, dest=outdir, indir=indir, grid_repr="bdrc") c.gather_nc_files() - c.process_avg_data(monthly_avg=False, batch_size=20, save=True) + c.process_avg_data(frequency_avg=None, batch_size=10, save=True) c.plot_2D_observations(months=[0], filename="month_without_min_obs_and_qa_applied.png", outdir=outdir) c.plot_2D_num_obs(months=[0], outdir=outdir) #c.process_lazy_data(apply_qa=True, save=False)