Skip to content

argo downloader scripts#140

Merged
maverick-7487 merged 5 commits into
masterfrom
139-download-of-floats-from-ifremer
May 7, 2026
Merged

argo downloader scripts#140
maverick-7487 merged 5 commits into
masterfrom
139-download-of-floats-from-ifremer

Conversation

@maverick-7487

Copy link
Copy Markdown
Collaborator

closes #139

@maverick-7487 maverick-7487 linked an issue Apr 22, 2026 that may be closed by this pull request
maverick-7487 and others added 2 commits April 22, 2026 20:54
added default values to script arguments
Co-authored-by: Copilot <copilot@github.com>
Comment thread src/bitsea/Float/argo_downloader_2.py Outdated
''', formatter_class=argparse.RawTextHelpFormatter)


parser.add_argument( '--remotedir',"-r",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rimuovi l'argomento, usa il path hardcoded

Comment thread src/bitsea/Float/argo_downloader_2.py Outdated

local_tmp_download_path = local_coriolis_dir / "download" / "tmp"

def parse_float_line(line):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aggiungi la docstring a tutte le funzioni

Comment thread src/bitsea/Float/argo_downloader_2.py Outdated
already_downloaded_floats = set(line.strip() for line in f)
for line in already_downloaded_floats:
float_path_remote, float_path_local, float_file_name = parse_float_line(line)
if float_path_local is not None and \

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

definisci una condition_to_download =
evitiamo gli if su più righe
if condition_to_download:

Comment thread src/bitsea/Float/argo_downloader_2.py Outdated
if filename.startswith('SD') and filename.endswith('.nc'):
sr_path = local_float_dir / ('SR' + filename[2:])
if sr_path.exists():
os.remove(sr_path) No newline at end of file

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ci vuole un print per ogni file aggiunto o eliminato

print statements of downloaded and removed files,
readability of conditions to download,
removed 'remotedir' argument,
docstrings of the functions,
facultative 'getcommand' argument in argo_downloader.py,
added optional lines and comments to launcher.sh
@maverick-7487 maverick-7487 merged commit 30e3f64 into master May 7, 2026
3 checks passed
@maverick-7487 maverick-7487 deleted the 139-download-of-floats-from-ifremer branch May 7, 2026 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

download of floats from ifremer

2 participants