npsphinx prolog… I dont know what to write here….

create L1C file from L1B

[1]:
import os, sys
from glob import glob
from slcl1butils.scripts.do_IW_L1C_SAFE_from_L1B_SAFE import do_L1C_SAFE_from_L1B_SAFE
import slcl1butils.utils
from importlib import reload
from slcl1butils.utils import get_test_file
import logging
reload(logging)
logging.basicConfig(level=logging.INFO)
config path: /home/docs/checkouts/readthedocs.org/user_builds/slcl1butils/checkouts/latest/slcl1butils/config.yaml
config path: /home/docs/checkouts/readthedocs.org/user_builds/slcl1butils/checkouts/latest/slcl1butils/config.yaml
[2]:
from slcl1butils.get_config import get_conf
conf = get_conf()
conf
INFO:root:config path: /home/docs/checkouts/readthedocs.org/user_builds/slcl1butils/checkouts/latest/slcl1butils/config.yaml
config path: /home/docs/checkouts/readthedocs.org/user_builds/slcl1butils/checkouts/latest/slcl1butils/config.yaml
[2]:
{'ecmwf0.1_pattern': './%Y/%j/ECMWF_FORECAST_0100_%Y%m%d%H%M_10U_10V.nc',
 'ww3_pattern': './%Y/FIELD_NC/LOPS_WW3-GLOB-30M_%Y%m.nc',
 'l1c_iw_version': '0.1',
 'iw_outputdir': 'none',
 'data_dir': '../assests/',
 'wv_outputdir': 'none'}
[3]:
#l1bncfile_pattern = os.path.abspath('../../assests/*IW*SAFE')

#print(l1bncfile_pattern)
#lst = glob(l1bncfile_pattern)
one_safe_l1b = get_test_file('S1B_IW_XSP__1SDV_20211026T045709_20211026T045736_029302_037F35_1CD7.SAFE')
#full_safe_files = lst[0]
#full_safe_files
one_safe_l1b
[3]:
'/home/docs/checkouts/readthedocs.org/user_builds/slcl1butils/checkouts/latest/assests/S1B_IW_XSP__1SDV_20211026T045709_20211026T045736_029302_037F35_1CD7.SAFE'
[4]:
full_safe_files = [one_safe_l1b]
version = '0.1'
for full_safe_file in full_safe_files:

    print('')
    print('===')
    print(os.path.basename(full_safe_file))
    print('===')
    ret = do_L1C_SAFE_from_L1B_SAFE(full_safe_file,version=version,outputdir=conf['iw_outputdir'])
INFO:root:ancillary data: [{'resource': './%Y/%j/ECMWF_FORECAST_0100_%Y%m%d%H%M_10U_10V.nc', 'step': 1, 'name': 'ecmwf_0100_1h'}, {'resource': './%Y/FIELD_NC/LOPS_WW3-GLOB-30M_%Y%m.nc', 'step': 3, 'name': 'ww3_global_yearly_3h'}]
INFO:root:Number of files: 6

===
S1B_IW_XSP__1SDV_20211026T045709_20211026T045736_029302_037F35_1CD7.SAFE
===
  0%|          | 0/6 [00:00<?, ?it/s]INFO:root:File out: none/0.1/S1B_IW_XSP__1SDV_20211026T045709_20211026T045736_029302_037F35_1CD7.SAFE/s1b-iw2-slc-vh-20211026t045711-20211026t045736-029302-037f35-002_L1C_xspec_IFR_0.1.nc
INFO:root:File in: /home/docs/checkouts/readthedocs.org/user_builds/slcl1butils/checkouts/latest/assests/S1B_IW_XSP__1SDV_20211026T045709_20211026T045736_029302_037F35_1CD7.SAFE/s1b-iw2-slc-vh-20211026t045711-20211026t045736-029302-037f35-002_L1B_xspec_IFR_1.4g.nc
INFO:root:time_separation : 2tau
INFO:root:time_separation : None
INFO:root:no ancillary files matching ./2021/299/ECMWF_FORECAST_0100_202110260500_10U_10V.nc
INFO:root:no ancillary files matching ./2021/FIELD_NC/LOPS_WW3-GLOB-30M_202110.nc
 17%|█▋        | 1/6 [00:01<00:09,  1.98s/it]INFO:root:File out: none/0.1/S1B_IW_XSP__1SDV_20211026T045709_20211026T045736_029302_037F35_1CD7.SAFE/s1b-iw2-slc-vv-20211026t045711-20211026t045736-029302-037f35-005_L1C_xspec_IFR_0.1.nc
INFO:root:File in: /home/docs/checkouts/readthedocs.org/user_builds/slcl1butils/checkouts/latest/assests/S1B_IW_XSP__1SDV_20211026T045709_20211026T045736_029302_037F35_1CD7.SAFE/s1b-iw2-slc-vv-20211026t045711-20211026t045736-029302-037f35-005_L1B_xspec_IFR_1.4g.nc
INFO:root:time_separation : 2tau
INFO:root:time_separation : None
INFO:root:no ancillary files matching ./2021/299/ECMWF_FORECAST_0100_202110260500_10U_10V.nc
INFO:root:no ancillary files matching ./2021/FIELD_NC/LOPS_WW3-GLOB-30M_202110.nc
 33%|███▎      | 2/6 [00:03<00:07,  1.88s/it]INFO:root:File out: none/0.1/S1B_IW_XSP__1SDV_20211026T045709_20211026T045736_029302_037F35_1CD7.SAFE/s1b-iw1-slc-vh-20211026t045710-20211026t045735-029302-037f35-001_L1C_xspec_IFR_0.1.nc
INFO:root:File in: /home/docs/checkouts/readthedocs.org/user_builds/slcl1butils/checkouts/latest/assests/S1B_IW_XSP__1SDV_20211026T045709_20211026T045736_029302_037F35_1CD7.SAFE/s1b-iw1-slc-vh-20211026t045710-20211026t045735-029302-037f35-001_L1B_xspec_IFR_1.4g.nc
INFO:root:time_separation : 2tau
INFO:root:time_separation : None
INFO:root:no ancillary files matching ./2021/299/ECMWF_FORECAST_0100_202110260500_10U_10V.nc
INFO:root:no ancillary files matching ./2021/FIELD_NC/LOPS_WW3-GLOB-30M_202110.nc
 50%|█████     | 3/6 [00:05<00:04,  1.59s/it]INFO:root:File out: none/0.1/S1B_IW_XSP__1SDV_20211026T045709_20211026T045736_029302_037F35_1CD7.SAFE/s1b-iw3-slc-vv-20211026t045709-20211026t045734-029302-037f35-006_L1C_xspec_IFR_0.1.nc
INFO:root:File in: /home/docs/checkouts/readthedocs.org/user_builds/slcl1butils/checkouts/latest/assests/S1B_IW_XSP__1SDV_20211026T045709_20211026T045736_029302_037F35_1CD7.SAFE/s1b-iw3-slc-vv-20211026t045709-20211026t045734-029302-037f35-006_L1B_xspec_IFR_1.4g.nc
INFO:root:time_separation : 2tau
INFO:root:time_separation : None
INFO:root:no ancillary files matching ./2021/299/ECMWF_FORECAST_0100_202110260500_10U_10V.nc
INFO:root:no ancillary files matching ./2021/FIELD_NC/LOPS_WW3-GLOB-30M_202110.nc
 67%|██████▋   | 4/6 [00:06<00:03,  1.56s/it]INFO:root:File out: none/0.1/S1B_IW_XSP__1SDV_20211026T045709_20211026T045736_029302_037F35_1CD7.SAFE/s1b-iw3-slc-vh-20211026t045709-20211026t045734-029302-037f35-003_L1C_xspec_IFR_0.1.nc
INFO:root:File in: /home/docs/checkouts/readthedocs.org/user_builds/slcl1butils/checkouts/latest/assests/S1B_IW_XSP__1SDV_20211026T045709_20211026T045736_029302_037F35_1CD7.SAFE/s1b-iw3-slc-vh-20211026t045709-20211026t045734-029302-037f35-003_L1B_xspec_IFR_1.4g.nc
INFO:root:time_separation : 2tau
INFO:root:time_separation : None
INFO:root:no ancillary files matching ./2021/299/ECMWF_FORECAST_0100_202110260500_10U_10V.nc
INFO:root:no ancillary files matching ./2021/FIELD_NC/LOPS_WW3-GLOB-30M_202110.nc
 83%|████████▎ | 5/6 [00:08<00:01,  1.52s/it]INFO:root:File out: none/0.1/S1B_IW_XSP__1SDV_20211026T045709_20211026T045736_029302_037F35_1CD7.SAFE/s1b-iw1-slc-vv-20211026t045710-20211026t045735-029302-037f35-004_L1C_xspec_IFR_0.1.nc
INFO:root:File in: /home/docs/checkouts/readthedocs.org/user_builds/slcl1butils/checkouts/latest/assests/S1B_IW_XSP__1SDV_20211026T045709_20211026T045736_029302_037F35_1CD7.SAFE/s1b-iw1-slc-vv-20211026t045710-20211026t045735-029302-037f35-004_L1B_xspec_IFR_1.4g.nc
INFO:root:time_separation : 2tau
INFO:root:time_separation : None
INFO:root:no ancillary files matching ./2021/299/ECMWF_FORECAST_0100_202110260500_10U_10V.nc
INFO:root:no ancillary files matching ./2021/FIELD_NC/LOPS_WW3-GLOB-30M_202110.nc
100%|██████████| 6/6 [00:09<00:00,  1.54s/it]
INFO:root:cpt: defaultdict(<class 'int'>, {'L1B_traeted': 6, 'saved_in_nc': 6})