goes2go icon indicating copy to clipboard operation
goes2go copied to clipboard

Error when trying to make RGB images from full-res data

Open manresa opened this issue 4 months ago • 1 comments

I have successfully used goes2go to create true-color images from reduced resolution products (MCMIPF) but when I try to create natural color or true color images from the full-res L1b radiance products (ABI-L1b-RadF) I get the following error repeated indefinitely (after the data have downloaded):

Traceback (most recent call last):
  File "<string>", line 1, in <module>
    from multiprocessing.spawn import spawn_main; spawn_main(tracker_fd=14, pipe_handle=42)
                                                  ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/username/miniconda3/envs/goes2go/lib/python3.14/multiprocessing/spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "/Users/username/miniconda3/envs/goes2go/lib/python3.14/multiprocessing/spawn.py", line 131, in _main
    prepare(preparation_data)
    ~~~~~~~^^^^^^^^^^^^^^^^^^
  File "/Users/username/miniconda3/envs/goes2go/lib/python3.14/multiprocessing/spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/username/miniconda3/envs/goes2go/lib/python3.14/multiprocessing/spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
                                  run_name="__mp_main__")
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "/Users/username/Documents/Work/Visualizations/hurricane_melissa/goes2go_truecolor_latest.py", line 6, in <module>
    G = GOES(satellite=18, product="ABI-L1b-RadF", domain="C").nearesttime("2025-10-26 18:00")
  File "/Users/username/miniconda3/envs/goes2go/lib/python3.14/site-packages/goes2go/NEW.py", line 204, in nearesttime
    return goes_nearesttime(
        attime,
    ...<5 lines>...
        **kwargs,
    )
  File "/Users/username/miniconda3/envs/goes2go/lib/python3.14/site-packages/goes2go/data.py", line 784, in goes_nearesttime
    return _as_xarray(df, **params)
  File "/Users/username/miniconda3/envs/goes2go/lib/python3.14/site-packages/goes2go/data.py", line 300, in _as_xarray
    with multiprocessing.Pool(cpus) as p:
         ~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/Users/username/miniconda3/envs/goes2go/lib/python3.14/multiprocessing/context.py", line 119, in Pool
    return Pool(processes, initializer, initargs, maxtasksperchild,
                context=self.get_context())
  File "/Users/username/miniconda3/envs/goes2go/lib/python3.14/multiprocessing/pool.py", line 215, in __init__
    self._repopulate_pool()
    ~~~~~~~~~~~~~~~~~~~~~^^
  File "/Users/username/miniconda3/envs/goes2go/lib/python3.14/multiprocessing/pool.py", line 306, in _repopulate_pool
    return self._repopulate_pool_static(self._ctx, self.Process,
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
                                        self._processes,
                                        ^^^^^^^^^^^^^^^^
    ...<3 lines>...
                                        self._maxtasksperchild,
                                        ^^^^^^^^^^^^^^^^^^^^^^^
                                        self._wrap_exception)
                                        ^^^^^^^^^^^^^^^^^^^^^
  File "/Users/username/miniconda3/envs/goes2go/lib/python3.14/multiprocessing/pool.py", line 329, in _repopulate_pool_static
    w.start()
    ~~~~~~~^^
  File "/Users/username/miniconda3/envs/goes2go/lib/python3.14/multiprocessing/process.py", line 121, in start
    self._popen = self._Popen(self)
                  ~~~~~~~~~~~^^^^^^
  File "/Users/username/miniconda3/envs/goes2go/lib/python3.14/multiprocessing/context.py", line 288, in _Popen
    return Popen(process_obj)
  File "/Users/username/miniconda3/envs/goes2go/lib/python3.14/multiprocessing/popen_spawn_posix.py", line 32, in __init__
    super().__init__(process_obj)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
  File "/Users/username/miniconda3/envs/goes2go/lib/python3.14/multiprocessing/popen_fork.py", line 20, in __init__
    self._launch(process_obj)
    ~~~~~~~~~~~~^^^^^^^^^^^^^
  File "/Users/username/miniconda3/envs/goes2go/lib/python3.14/multiprocessing/popen_spawn_posix.py", line 42, in _launch
    prep_data = spawn.get_preparation_data(process_obj._name)
  File "/Users/username/miniconda3/envs/goes2go/lib/python3.14/multiprocessing/spawn.py", line 164, in get_preparation_data
    _check_not_importing_main()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/Users/username/miniconda3/envs/goes2go/lib/python3.14/multiprocessing/spawn.py", line 140, in _check_not_importing_main
    raise RuntimeError('''
    ...<16 lines>...
    ''')
RuntimeError: 
        An attempt has been made to start a new process before the
        current process has finished its bootstrapping phase.

        This probably means that you are not using fork to start your
        child processes and you have forgotten to use the proper idiom
        in the main module:

            if __name__ == '__main__':
                freeze_support()
                ...

        The "freeze_support()" line can be omitted if the program
        is not going to be frozen to produce an executable.

        To fix this issue, refer to the "Safe importing of main module"
        section in https://docs.python.org/3/library/multiprocessing.html

Installed from the YAML with Conda on an Apple-silicon Mac.

manresa avatar Oct 27 '25 22:10 manresa

Based on this one line of code that I see: G = GOES(satellite=18, product="ABI-L1b-RadF", domain="C").nearesttime("2025-10-26 18:00")

you are trying to grab CONUS data (domain), but trying to grab the Full Disk (product="") ending in "F". If you drop the F from that product name, does it work then? OR if you wanted the Full Disk, can you change the domain to F and see what happens?

bryanguarente avatar Nov 19 '25 20:11 bryanguarente