NOA-ReACT / PollyXT-SCC-Pipelines

Tool for the processing of PollyXT using Single Calculus Chain
https://noa-react.github.io/PollyXT-SCC-Pipelines/
GNU Lesser General Public License v3.0
3 stars 2 forks source link

Sun is always above the horizon ValueError #32

Closed ulysses78 closed 9 months ago

ulysses78 commented 9 months ago

For our mobile pollyxt device Arielle @ Antarctica (Neumayer III station), the following error occurs, when trying to convert to scc-format with pollyxt_pipelines:

ValueError

  Sun is always above the horizon on this day, at this location.

  at ~/scc_env/lib64/python3.8/site-packages/astral/sun.py:823 in sunrise
       819│             if z > 90.0:
       820│                 msg = "Sun is always below the horizon on this day, at this location."
       821│             else:
       822│                 msg = "Sun is always above the horizon on this day, at this location."
    →  823│             raise ValueError(msg) from exc
       824│         else:
       825│             raise
       826│

This Error occurs since 2023-11-15, because the sun is always above the horizont there. Could you please fix this bug? Otherwise we are not able to upload this data to the scc. Thanks in advance.

thgeorgiou commented 9 months ago

Hello! Can you send be the station config so I can reproduce this? Seems like an easy fix.

Cheers

ulysses78 commented 9 months ago

Here is the entry from the locations.ini :

[Arielle_neu]
scc_code = ari
lat = -70.64
lon = -8.27
altitude_asl = 42.7
daytime_configuration = 791
nighttime_configuration = 790
channel_id = 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 1631
background_low = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
background_high = 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240
lr_input = 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
temperature = 15
pressure = 1000
total_channel_355_nm_idx = 0
cross_channel_355_nm_idx = 1
total_channel_532_nm_idx = 4
cross_channel_532_nm_idx = 5
calibration_355nm_total_channel_ids = 613, 617
calibration_355nm_cross_channel_ids = 614, 619
calibration_532nm_total_channel_ids = 615, 618
calibration_532nm_cross_channel_ids = 616, 620
calibration_configuration_355nm =792
calibration_configuration_532nm =794
depol_calibration_zero_state = 350
profile_name = ARIELLE
sounding_provider = automatic
thgeorgiou commented 9 months ago

@ulysses78 Hello! Could you try the new version (1.14.5) and see if it fixes this issue?

ulysses78 commented 9 months ago

@thgeorgiou . Sorry for the delay. Yesterday was a public holiday in some parts of Germany. Thank you for the new version. It works fine :-)

ulysses78 commented 9 months ago

This issue can be closed now...