[gradsusr] Antw: Re: download grib data from Meteo-France

Rainer Behrendt Rainer.Behrendt at hr.de
Thu Nov 26 15:22:12 EST 2015


Hello Marian,
thank you very much for your script. I couldn't imagine that they want
the users to take that unpleasent way.
But at least it works. Do they keep the value of the "token" constant
all the time?
Kind Regards,
Rainer





__________________________

Dipl.-Met. Rainer Behrendt
Hessischer Rundfunk
Anstalt des öffentlichen Rechts
Bertramstraße 8
60320 Frankfurt am Main
Telefon: 069/155-6331
>>> AMS EmsiWx Bytča<emsiwx at pocasie-bytca.sk> 26.11.15 19.02 Uhr >>>
Hello Rainer,

I have made myself this bat file for use in WIN,but can be easilly 
modified for Linux: (anyway, if someone have another source or way I 
would be more than glad to know), I am in frequent communication with 
them, because I miss precipitation field
in the public packages, they made some tries to include, last answer was

that total PCP are under PRATE field (wronglly packed), but this field 
is full of undefined values.

Anyway here is the bat file:


*******************************************************************************************************************
@ECHO OFF
set FileDate=%date:~9,4%%date:~6,2%%date:~3,2%
set FileTime=%time:~0,2%

for /f "delims=" %%a in ('wmic OS Get localdatetime  ^| find "."') do 
set "dt=%%a"
set YYYY=%dt:~0,4%
set MM=%dt:~4,2%
set DD=%dt:~6,2%
set HH=%dt:~8,2%
set Min=%dt:~10,2%
set Sec=%dt:~12,2%

set FileDate=%YYYY%-%MM%-%DD%
set timestamp=%HH%%Min%%Sec%
set FileTime=%HH%
set fullstamp=%YYYY%-%MM%-%DD%_%HH%-%Min%-%Sec%


if /i %FileTime% GEQ 00 (
set T=18
set /a nDD=%DD% - 1
)
if /i %FileTime% GEQ 04 (
set T=00
set nDD=%DD%
)
rem if /i %FileTime% GEQ 11 (set T=06)
if /i %FileTime% GEQ 16 (
set T=12)
set nDD=%DD%
)
@echo Year = %YYYY%-%MM%-%nDD%
@echo Time = %FileTime%
echo %T%

del *.grb
start ARPEGEjob2.bat

:000
wget -O arpege_sp1_00_12.grb 
http://dcpc-nwp.meteo.fr/services/PS_GetCache_DCPCPreviNum?token=__5yLVTdr-sGeHoPitnFc7TZ6MhBcJxuSsoZp6y0leVHU__^&model=ARPEGE^&grid=0.1^&package=SP1^&time=00H12H^&referencetime=%YYYY%-%MM%-%nDD%T%T%:00:00Z
IF %ERRORLEVEL% NEQ 0 @ECHO Waiting for file... & TIMEOUT /T 180 & GOTO
000
:003
wget -O arpege_sp1_13_24.grb 
http://dcpc-nwp.meteo.fr/services/PS_GetCache_DCPCPreviNum?token=__5yLVTdr-sGeHoPitnFc7TZ6MhBcJxuSsoZp6y0leVHU__^&model=ARPEGE^&grid=0.1^&package=SP1^&time=13H24H^&referencetime=%YYYY%-%MM%-%nDD%T%T%:00:00Z
IF %ERRORLEVEL% NEQ 0 @ECHO Waiting for file... & TIMEOUT /T 180 & GOTO
003
:006
wget -O arpege_sp1_25_36.grb 
http://dcpc-nwp.meteo.fr/services/PS_GetCache_DCPCPreviNum?token=__5yLVTdr-sGeHoPitnFc7TZ6MhBcJxuSsoZp6y0leVHU__^&model=ARPEGE^&grid=0.1^&package=SP1^&time=25H36H^&referencetime=%YYYY%-%MM%-%nDD%T%T%:00:00Z
IF %ERRORLEVEL% NEQ 0 @ECHO Waiting for file... & TIMEOUT /T 180 & GOTO
006
:009
wget -O arpege_sp1_37_48.grb 
http://dcpc-nwp.meteo.fr/services/PS_GetCache_DCPCPreviNum?token=__5yLVTdr-sGeHoPitnFc7TZ6MhBcJxuSsoZp6y0leVHU__^&model=ARPEGE^&grid=0.1^&package=SP1^&time=37H48H^&referencetime=%YYYY%-%MM%-%nDD%T%T%:00:00Z
IF %ERRORLEVEL% NEQ 0 @ECHO Waiting for file... & TIMEOUT /T 180 & GOTO
009
:012
wget -O arpege_sp1_49_60.grb 
http://dcpc-nwp.meteo.fr/services/PS_GetCache_DCPCPreviNum?token=__5yLVTdr-sGeHoPitnFc7TZ6MhBcJxuSsoZp6y0leVHU__^&model=ARPEGE^&grid=0.1^&package=SP1^&time=49H60H^&referencetime=%YYYY%-%MM%-%nDD%T%T%:00:00Z
IF %ERRORLEVEL% NEQ 0 @ECHO Waiting for file... & TIMEOUT /T 180 & GOTO
012
:015
wget -O arpege_sp1_61_72.grb 
http://dcpc-nwp.meteo.fr/services/PS_GetCache_DCPCPreviNum?token=__5yLVTdr-sGeHoPitnFc7TZ6MhBcJxuSsoZp6y0leVHU__^&model=ARPEGE^&grid=0.1^&package=SP1^&time=61H72H^&referencetime=%YYYY%-%MM%-%nDD%T%T%:00:00Z
IF %ERRORLEVEL% NEQ 0 @ECHO Waiting for file... & TIMEOUT /T 180 & GOTO
015
:018
wget -O arpege_sp1_73_84.grb 
http://dcpc-nwp.meteo.fr/services/PS_GetCache_DCPCPreviNum?token=__5yLVTdr-sGeHoPitnFc7TZ6MhBcJxuSsoZp6y0leVHU__^&model=ARPEGE^&grid=0.1^&package=SP1^&time=73H84H^&referencetime=%YYYY%-%MM%-%nDD%T%T%:00:00Z
IF %ERRORLEVEL% NEQ 0 @ECHO Waiting for file... & TIMEOUT /T 180 & GOTO
018http://dcpc-nwp.meteo.fr/services/PS_GetCache_DCPCPreviNum?token=__5yLVTdr-sGeHoPitnFc7TZ6MhBcJxuSsoZp6y0leVHU__^&model=ARPEGE^&grid=0.1^&package=SP1^&time=85H96H^&referencetime=%YYYY%-%MM%-%nDD%T%T%:00:00Z


IF %ERRORLEVEL% NEQ 0 @ECHO Waiting for file... & TIMEOUT /T 180 & GOTO
021
:024
wget -O arpege_sp2_00_12.grb 
http://dcpc-nwp.meteo.fr/services/PS_GetCache_DCPCPreviNum?token=__5yLVTdr-sGeHoPitnFc7TZ6MhBcJxuSsoZp6y0leVHU__^&model=ARPEGE^&grid=0.1^&package=SP2^&time=00H12H^&referencetime=%YYYY%-%MM%-%nDD%T%T%:00:00Z
IF %ERRORLEVEL% NEQ 0 @ECHO Waiting for file... & TIMEOUT /T 180 & GOTO
024
:027
wget -O arpege_sp2_13_24.grb 
http://dcpc-nwp.meteo.fr/services/PS_GetCache_DCPCPreviNum?token=__5yLVTdr-sGeHoPitnFc7TZ6MhBcJxuSsoZp6y0leVHU__^&model=ARPEGE^&grid=0.1^&package=SP2^&time=13H24H^&referencetime=%YYYY%-%MM%-%nDD%T%T%:00:00Z
IF %ERRORLEVEL% NEQ 0 @ECHO Waiting for file... & TIMEOUT /T 180 & GOTO
027
:030
wget -O arpege_sp2_25_36.grb 
http://dcpc-nwp.meteo.fr/services/PS_GetCache_DCPCPreviNum?token=__5yLVTdr-sGeHoPitnFc7TZ6MhBcJxuSsoZp6y0leVHU__^&model=ARPEGE^&grid=0.1^&package=SP2^&time=25H36H^&referencetime=%YYYY%-%MM%-%nDD%T%T%:00:00Z
IF %ERRORLEVEL% NEQ 0 @ECHO Waiting for file... & TIMEOUT /T 180 & GOTO
030
:033
wget -O arpege_sp2_37_48.grb 
http://dcpc-nwp.meteo.fr/services/PS_GetCache_DCPCPreviNum?token=__5yLVTdr-sGeHoPitnFc7TZ6MhBcJxuSsoZp6y0leVHU__^&model=ARPEGE^&grid=0.1^&package=SP2^&time=37H48H^&referencetime=%YYYY%-%MM%-%nDD%T%T%:00:00Z
IF %ERRORLEVEL% NEQ 0 @ECHO Waiting for file... & TIMEOUT /T 180 & GOTO
033
:036
wget -O arpege_sp2_49_60.grb 
http://dcpc-nwp.meteo.fr/services/PS_GetCache_DCPCPreviNum?token=__5yLVTdr-sGeHoPitnFc7TZ6MhBcJxuSsoZp6y0leVHU__^&model=ARPEGE^&grid=0.1^&package=SP2^&time=49H60H^&referencetime=%YYYY%-%MM%-%nDD%T%T%:00:00Z
IF %ERRORLEVEL% NEQ 0 @ECHO Waiting for file... & TIMEOUT /T 180 & GOTO
036
:039
wget -O arpege_sp2_61_72.grb 
http://dcpc-nwp.meteo.fr/services/PS_GetCache_DCPCPreviNum?token=__5yLVTdr-sGeHoPitnFc7TZ6MhBcJxuSsoZp6y0leVHU__^&model=ARPEGE^&grid=0.1^&package=SP2^&time=61H72H^&referencetime=%YYYY%-%MM%-%nDD%T%T%:00:00Z
IF %ERRORLEVEL% NEQ 0 @ECHO Waiting for file... & TIMEOUT /T 180 & GOTO
039
:042
wget -O arpege_sp2_73_84.grb 
http://dcpc-nwp.meteo.fr/services/PS_GetCache_DCPCPreviNum?token=__5yLVTdr-sGeHoPitnFc7TZ6MhBcJxuSsoZp6y0leVHU__^&model=ARPEGE^&grid=0.1^&package=SP2^&time=73H84H^&referencetime=%YYYY%-%MM%-%nDD%T%T%:00:00Z
IF %ERRORLEVEL% NEQ 0 @ECHO Waiting for file... & TIMEOUT /T 180 & GOTO
042
:045
wget -O arpege_sp2_85_96.grb 
http://dcpc-nwp.meteo.fr/services/PS_GetCache_DCPCPreviNum?token=__5yLVTdr-sGeHoPitnFc7TZ6MhBcJxuSsoZp6y0leVHU__^&model=ARPEGE^&grid=0.1^&package=SP2^&time=85H96H^&referencetime=%YYYY%-%MM%-%nDD%T%T%:00:00Z
IF %ERRORLEVEL% NEQ 0 @ECHO Waiting for file... & TIMEOUT /T 180 & GOTO
045

@echo Waiting for IPx packages...
:pod1
If NOT exist finish.tst goto pod1


@ECHO Please wait, concatenating grb files...
cat *.grb > arpege%YYYY%%MM%%nDD%%T%.grib2

@ECHO Please wait, creating ctl file...
perl g2ctl.pl -verf arpege%YYYY%%MM%%nDD%%T%.grib2 > 
arpege%YYYY%%MM%%nDD%%T%.ctl
@ECHO Please wait, creating idx file...
gribmap -i arpege%YYYY%%MM%%nDD%%T%.ctl -e

start _.arp_modan.bat

start opengrads -lbxc 'arpege_compcld.gs %YYYY%%MM%%nDD%%T%'
start opengrads -lbxc 'arpege_gp500.gs %YYYY%%MM%%nDD%%T%'
start opengrads -lbxc 'arpege_gp850.gs %YYYY%%MM%%nDD%%T%'
start opengrads -lbxc 'arpege_gust10m.gs %YYYY%%MM%%nDD%%T%'
start opengrads -lbxc 'arpege_hcld.gs %YYYY%%MM%%nDD%%T%'
start opengrads -lbxc 'arpege_lcld.gs %YYYY%%MM%%nDD%%T%'
start opengrads -lbxc 'arpege_mcld.gs %YYYY%%MM%%nDD%%T%'
start opengrads -lbxc 'arpege_mslp.gs %YYYY%%MM%%nDD%%T%'
start opengrads -lbxc 'arpege_snowlevel.gs %YYYY%%MM%%nDD%%T%'
start opengrads -lbxc 'arpege_t2m.gs %YYYY%%MM%%nDD%%T%'
start opengrads -lbxc 'arpege_t500.gs %YYYY%%MM%%nDD%%T%'
start opengrads -lbxc 'arpege_t850.gs %YYYY%%MM%%nDD%%T%'
start opengrads -lbxc 'arpege_tcld.gs %YYYY%%MM%%nDD%%T%'
start opengrads -lbxc 'arpstart opengrads -lbxc 'arpege_wind300.gs %YYYY%%MM%%nDD%%T%'
start opengrads -lbxc 'arpege_wind500.gs %YYYY%%MM%%nDD%%T%'

start opengrads -lbxc 'svk_arpege_cld3panel.gs %YYYY%%MM%%nDD%%T%'
start opengrads -lbxc 'svk_arpege_compcld.gs %YYYY%%MM%%nDD%%T%'
start opengrads -lbxc 'svk_arpege_gust10m.gs %YYYY%%MM%%nDD%%T%'
start opengrads -lbxc 'svk_arpege_snowindex.gs %YYYY%%MM%%nDD%%T%'
start opengrads -lbxc 'svk_arpege_snowlevel.gs %YYYY%%MM%%nDD%%T%'
start opengrads -lbxc 'svk_arpege_t2m.gs %YYYY%%MM%%nDD%%T%'
start opengrads -lbxc 'svk_arpege_tcld.gs %YYYY%%MM%%nDD%%T%'
start opengrads -lbxc 'svk_arpege_wind10m.gs %YYYY%%MM%%nDD%%T%'

exit
**********************************************************************************************************************

Regards,

Marian


Dňa 26. 11. 2015 o 18:21 Rainer Behrendt napísal(a):
> Hello!
> Meteo France as of late offers public grib data from their NWP-Models 
> such as the ARPEGE (Open Licence).
> See Meteo-France page: 
>
https://donneespubliques.meteofrance.fr/?fond=produit&id_produit=130&id_rubrique=51
> But it seems the only way to download the files from this source is to

> make a selection with the web browser and
> finally click "save as". Of course this is not very helpfull if one 
> wants to download the files automatically as a batch job.
> Does someone know if the disired files can be retrieved by a command 
> like "wget"?
> Does Meteo-France provide a more convenient source for that data?
> Kind Regards,
> Rainer
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> __________________________
>
> Dipl.-Met. Rainer Behrendt
> Hessischer Rundfunk
> Anstalt des öffentlichen Rechts
> Bertramstraße 8
> 60320 Frankfurt am Main
> Telefon: 069/155-6331
>
>
> __________________________
>
> Dipl.-Met. Rainer Behrendt
> Hessischer Rundfunk
> Anstalt des öffentlichen Rechts
> Bertramstraße 8
> 60320 Frankfurt am Main
> Telefon: 069/155-6331
> Der Inhalt dieser E-Mail stellt keine rechtsverbindliche Erklärung des

> Absenders dar. Der Absender kann nur von zwei bevollmächtigten 
> Personen rechtsverbindlich vertreten werden.
>
> Der Inhalt dieser E-Mail (einschließlich beigefügter Dateien) ist 
> vertraulich und nur für den Empfänger bestimmt; dies gilt nicht für 
> Mails der Pressestelle oder für Newsletter. Wenn Sie nicht der 
> bestimmungsgemäße Empfänger dieser E-Mail sind, informieren Sie bitte 
> sofort den Absender und löschen Sie diese Mail von Ihrem System. 
> Beachten Sie, dass die Verbreitung, das Kopieren sowie die Weitergabe 
> der E-Mail nicht gestattet sind; dies gilt nicht für Mails der 
> Pressestelle oder für Newsletter.
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr

-- 


Der Inhalt dieser E-Mail stellt keine rechtsverbindliche Erklärung des
Absenders dar. Der Absender kann nur von zwei bevollmächtigten Personen
rechtsverbindlich vertreten werden.

Der Inhalt dieser E-Mail (einschließlich beigefügter Dateien) ist
vertraulich und nur für den Empfänger bestimmt; dies gilt nicht für
Mails der Pressestelle oder für Newsletter. Wenn Sie nicht der
bestimmungsgemäße Empfänger dieser E-Mail sind, informieren Sie bitte
sofort den Absender und löschen Sie diese Mail von Ihrem System.
Beachten Sie, dass die Verbreitung, das Kopieren sowie die Weitergabe
der E-Mail nicht gestattet sind; dies gilt nicht für Mails der
Pressestelle oder für Newsletter.


More information about the gradsusr mailing list