Hirdetés

Új hozzászólás Aktív témák

  • olivera88

    veterán

    Mi lehet a gond ezzel a curl scriptel? Ezt a hibákat kapom. jq: error (at <stdin>:0): Cannot iterate over null (null)
    sh: 1: cannot create : Directory nonexistent
    A második hibát azt tudom, nem létező könyvtár, de nem tudom kijavítani.
    # Latest model run:
    curl https://dmigw.govcloud.dk/v1/forecastdata/collections/harmonie_dini_sf/items?api-key=xxxx | jq '[.features[].properties.modelRun]|unique|sort|.[-1]'
    # Retrieve download links from latest model run, paste the output of the previous command into where it says ?modelRun\=
    curl https://dmigw.govcloud.dk/v1/forecastdata/collections/harmonie_dini_sf/items\?modelRun\=06\&api-key=xxxx | jq -r '.features[]|[.asset.data.href,.id]|@csv' > latest_model_run_links
    # Download the actual GRIB files
    cat latest_model_run_links | awk -F, '{print $1, $2}' | xargs -L1 sh -c 'curl $0 > $1' 

Új hozzászólás Aktív témák