[gradsusr] download grib data from Meteo-France
Chorley Weather
weatherstu at chorleyweather.com
Wed Dec 2 08:40:38 EST 2015
On 26-11-2015 17:52, AMS EmsiWx Bytča wrote:
> 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 [3]
> 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 [4]
> 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 [5]
> 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 [6]
> 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 [7]
> 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 [8]
> 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 [9]
> IF %ERRORLEVEL% NEQ 0 @ECHO Waiting for file... & TIMEOUT /T 180 & GOTO 018
> :021
> wget -O arpege_sp1_85_96.grb http://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 [10]
> 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 [11]
> 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 [12]
> 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 [13]
> 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 [14]
> 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 [15]
> 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 [16]
> 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 [17]
> 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 [18]
> 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 'arpege_wind10m.gs %YYYY%%MM%%nDD%%T%'
> start 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 [2]
>> 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 [1]
>
> --
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr [1]
Hi guys,
Any more joy with regards the precipitation field? The prate as you
mentioned is full of undefined values. Or has anybody found a way around
this because I see meteociel & metocenter both run the arpege model with
no issues on the precip.
--
Stuart Markham
Links:
------
[1] http://gradsusr.org/mailman/listinfo/gradsusr
[2]
https://donneespubliques.meteofrance.fr/?fond=produit&id_produit=130&id_rubrique=51
[3]
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
[4]
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
[5]
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
[6]
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
[7]
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
[8]
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
[9]
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
[10]
http://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
[11]
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
[12]
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
[13]
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
[14]
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
[15]
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
[16]
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
[17]
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
[18]
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20151202/f1759dfc/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: podpis_new.png
Type: image/png
Size: 42309 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20151202/f1759dfc/attachment-0001.png
More information about the gradsusr
mailing list