aria-tools / ARIA-tools

Tools for exploiting ARIA standard products
Apache License 2.0
99 stars 36 forks source link

[BUG] TSSetup bug when extracting ionosphere layer #420

Closed sssangha closed 5 months ago

sssangha commented 5 months ago

Describe the bug When specifying the extraction of the ionosphere layer through ariaTSSetup.py, an error is raised from the part of the code which checks for consistency in extracted layer dimensions.

To Reproduce Steps to reproduce the behavior:

  1. Download: ariaDownload.py --num_threads 16 -b '33.4 34.5 -119.0 -117.4' -s 20190117 -e 20190210 -t 64 --version 3_0_1 -o Download

  2. Command used: ariaTSsetup.py -f "products/*.nc" -b '33.6 34.3 -118.5 -117.5' --verbose -w test_iono -l ionosphere --log-level debug

  3. Error Output:

    Traceback (most recent call last):
    File "/u/trappist-r0/ssangha/conda_installation/miniforge/miniforge/ARIA-tools_dev/tools/bin/ariaTSsetup.py", line 634, in <module>
    main()
    File "/u/trappist-r0/ssangha/conda_installation/miniforge/miniforge/ARIA-tools_dev/tools/bin/ariaTSsetup.py", line 570, in main
    ARIAtools.util.vrt.dim_check(ref_arr_record, prod_arr_record)
    File "/u/trappist-r0/ssangha/conda_installation/miniforge/miniforge/ARIA-tools_dev/tools/ARIAtools/util/vrt.py", line 542, in dim_check
    raise Exception(
    Exception: Inconsistent product dims between products test_iono/unwrappedPhase/20190123_20190117 and None: check respective width (1201, None) and height (841, None) and geotrans ((-118.500785933, 0.000833333000000001, -0.0, 34.300819613, -0.0, -0.000833333000000001), None)

Desktop (please complete the following information):

Proposed fix I have a working patch, just raising this issue ticket to record and reference it.