.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/ex4_viirs_local.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_ex4_viirs_local.py: VIIRS L3 Local Disk =================== This script is designed to make custom L3 files from SNPP VIIRS Deep Blue using files that have already been downloaded to local disk. This example can be edited to work with TropOMI HCHO, VIIRS_AERDB, OMNO2, OMHCHO, ... This example assumes you have downloaded satellite files. The code is largely the same as the previous. Instead of `cmr_to_level3`, it the method uses `glob` to make a list of files that it passes to `paths_to_level3`. .. GENERATED FROM PYTHON SOURCE LINES 14-16 Import Library and Configure ---------------------------- .. GENERATED FROM PYTHON SOURCE LINES 16-32 .. code-block:: default from glob import glob import cmaqsatproc as csp GDNAM = '12US1' date='2019-07-24' readername = 'VIIRS_AERDB' # or TropOMIHCHO, VIIRS_AERDB, ... outpath = f'{readername}_{date}_{GDNAM}.nc' cg = csp.open_griddesc(GDNAM) satreader = csp.reader_dict[readername] paths = sorted(glob('AERDB_L2_VIIRS_SNPP*.nc')) l3 = satreader.paths_to_level3( paths, bbox=cg.csp.bbox(), grid=cg.csp.geodf, verbose=9 ) l3.to_netcdf(outpath) .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.000 seconds) .. _sphx_glr_download_auto_examples_ex4_viirs_local.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: ex4_viirs_local.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: ex4_viirs_local.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_