sloop fetch

usage: sloop fetch [-h] [--cfg-file CFG_FILE] [--begindate BEGINDATE]
                   [--enddate ENDDATE]

Named Arguments

--cfg-file

configuration file

Default: “fetch.cfg”

--begindate

begindate: YYYYMMDD

Default: “20230322”

--enddate

enddate: YYYYMMDD

The sloop fetch command will fill a Python script template

based on the Vortex library.

A configuration file can be edited to configure the sloop fetch command regarding the specification file sloop/cli/fetch.ini:

[__many__]
    kind = option(model,postprod,default=model)
    postprod = option(soap,sterne,datashom,default=datashom)
    pp_geos = strings(default=list(None))
    model = string(default=hycom3d)
    conf = option(manga,indien,med,default=manga)
    xpid = string(default=OPER)
    mode = option(analyse,forecast,bestanalyse,default=forecast)
    dim = option(2D,3D,default=2D)
    term = integers(default=list(-24,0,24,48,72,96,120))
    field = options(all,dyn,hydro,u,v,ssh,sst,sss,temp,saln,sigma,h,ubavg,vbavg)
    filtering = options(none,mean,demerliac,godin,spectral,default=list(mean))
    interp=option(zlevel,none,default=zlevel)
    dirout = string(default=None)
    patrename = string(default="[geometry::tag]/[date::ymd]/[field]_[filling]_[geometry::area].nc")
    walltime = string(default="01:00:00")
    

Hereafter, see an example of a configuration file in order to fetch a datashom product as well as a model output:

[daily_datashom]
    kind=postprod
    postprod=datashom
    model=hycom3d
    mode=forecast
    field=all,
    dim=2D
    filtering=none,
    dirout="./"
    term=-24,
    patrename="HYCOM3D_surf_[term::fmth].nc"
[daily_model]
    kind=model
    model=hycom3d
    mode=analyse
    field=ssh,
    dim=2D
    dirout="./"
    patrename="ssh2D_analyse.nc"     

Then, the Python script generated is either submitted to a scheduler, or executed directly. The log files are stored in the logs/ directory.