Ignore:
Timestamp:
Jan 9, 2024, 10:55:18 AM (13 months ago)
Author:
jbclement
Message:

PEM:

  • Correction of script "launch_orb_1Dchained.sh" which read orbital parameters missing one interval of years in two.
  • Addition of the Martian date in "info_PEM.txt" for post-processing.

JBC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/evolution/deftank/launch_orb_1Dchained.sh

    r3149 r3173  
    8585    yearlask=$(echo "$eyears_bp_ini + $i_myear*$convert_years" | bc -l)
    8686    found=false
    87     while read -r y1 obl1 ecc1 lsp1 && read -r y2 obl2 ecc2 lsp2; do
    88         y1=$(echo "$y1*1000" | bc -l)
    89         y2=$(echo "$y2*1000" | bc -l)
     87    read -r y1 obl1 ecc1 lsp1 < "$orb_data"
     88    while read -r y2 obl2 ecc2 lsp2; do
     89        if [ "$first_line" = true ]; then
     90            first_line=false
     91            continue # Skip the first line as it's already read outside the loop
     92        fi
    9093        if [ "$(echo "$y1 >= $yearlask && $yearlask > $y2" | bc)" -eq 1 ]; then
    9194            found=true
     
    107110            break
    108111        fi
     112        y1=$y2
     113        obl1=$obl2
     114        ecc1=$ecc2
     115        lsp1=$lsp2
    109116    done < "$orb_data"
    110117    if [ "$found" = false ]; then
Note: See TracChangeset for help on using the changeset viewer.