Skip to content

motuclient 1.8.4 and Python script #19

Description

@GeoTuxMan

Hello !

After I install motuclient 1.8.4 (with pip), I try to run motuclient from a Python script:

`import datetime
import time
from datetime import timedelta

time_min = datetime.date.today().isoformat()
time_max = (datetime.date.today()+timedelta(days=3)).isoformat()
nc_name = time.strftime("%d_%m_%Y_%H_%M.nc")

os.system("C:\Python27\python.exe -m motuclient -u lbuga -p 9YxKdFEK -m http://nrt.cmems-du.eu/motu-web/Motu -s BLKSEA_ANALYSIS_FORECAST_PHYS_007_001-TDS -d sv03-bs-cmcc-tem-an-fc-h -t time_min -T time_max -x 28.5 -X 32.5 -y 42.5 -Y 46.0 -z 2.501 -Z 266.0668 -v votemper -o out_dir/NC -f nc_name %*")`

and I got this error:
motuclient is a package and cannot be directly executed

Look forward for some tips.

Cheers !
George

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions