Dynamic visualization of odv files via WPS State of the project – Split, Croatia Giorgio Santinelli, Gerben de Boer 4 december 2018
Introduction WPS – Web Processing Services Standard Dynamic 4 december 2018 Introduction WPS – Web Processing Services Standard Dynamic INPUT (parameter, value) OUTPUT (parameter, value) Web browser OUTPUT 4 december 2018
Introduction pyWPS – Web Processing Services using a Python framework 4 december 2018 Introduction pyWPS – Web Processing Services using a Python framework server-side plotting of data in multiple format (.png, Google Earth .kmz, …) on the fly See the tutorials in openearth.eu INPUT (parameter, value) OUTPUT (parameter, value) Web browser OUTPUT We downloaded odv files and made plots on the flight. 4 december 2018
Process flow WPS 1 GetCapabilities 2 DescribeProcess 3 Request 4 december 2018
Process flow WPS 1 GetCapabilities 2 DescribeProcess 3 Request …with ODV files?!? 4 december 2018
Process flow pyWPS-ODV 1 GetCapabilities 2 odvGetCDI odvGetParameters 3 odv2maps odv2timeseries odv2profiles 4 december 2018
1. GetCapabilities http://dtvirt5.deltares.nl/wps?service=wps&request=GetCapabilities … 4 december 2018
4 december 2018 2. odvGetCDI http://dtvirt5.deltares.nl/wps?service=wps&request=Execute&Identifier=odvGetCDI&DataInputs=[]&version=1.0.0 usergd30d98-data_centre120-2014-03-20_result FOLDER 285916_20140320_163008.txt FILE 285921_20140320_163008.txt … // //SDN_parameter_mapping METADATA //<subject>SDN:LOCAL:COREDIST</subject><object>SDN:P011:… //<subject>SDN:LOCAL:OCCNXXXX</subject… //<subject>SDN:LOCAL:CORGCOPW</:… //<subject>SDN:LOCAL:AMONAADC… //<subject>SDN:LOCAL:NTRI… we need to know what parameters are in the odv: we ask a file. We get the codes and second step we execute. Cruise Station Type … LOCAL_CDI_ID EDMO_code … COREDIST [meter] QV:SEADATANET 9 fields (fixed) Param1, QV1, Param2, QV2, … 4 december 2018
2. odvGetCDI odvGetCDI “285916” + “_20140320_163008” 4 december 2018 2. odvGetCDI http://dtvirt5.deltares.nl/wps?service=wps&request=Execute&Identifier=odvGetCDI&DataInputs=[]&version=1.0.0 120 EDMO_code FOLDER 285916_20140320_163008.txt LOCAL_CDI_ID + suffix FILE 285921_20140320_163008.txt … “285916” + “_20140320_163008” You give some data and metadata, we give back visualization services, via some input and output specifications How to integrate to seadatanet: ODV caches. We have Matlab lib, python lib, parsing P01, postgres, netcdf, odvGetCDI List of EDMO_code’s, LOCAL_CDI_ID’s, suffixes. JSON: JavaScript Object Notation for /folders/files visualization 4 december 2018
2a. odvGetCDI http://dtvirt5.deltares.nl/wps?service=wps&request=Execute&Identifier=odvGetCDI&DataInputs=[]&version=1.0.0 … 4 december 2018
2b. odvGetParameters Get parameters inside the odv files. in html format: http://dtvirt5.deltares.nl/wps?service=wps&request=Execute&Identifier=odvGetParameters&DataInputs=[EDMO_code=632;LOCAL_CDI_ID=world_N50W10N40E0;suffix=_20060101_2007010]&responsedocument=Parameters=@mimetype=text/html&version=1.0.0 in json format: http://dtvirt5.deltares.nl/wps?service=wps&request=Execute&Identifier=odvGetParameters&DataInputs=[EDMO_code=632;LOCAL_CDI_ID=world_N50W10N40E0;suffix=_20060101_20070101]&version=1.0.0 4 december 2018
3. Requests Three methods: Local file url of the output mimetype 4 december 2018
3. Requests Odv2map – png http://dtvirt5.deltares.nl/wps? service=wps&request=Execute&Identifier=odv2map&DataInputs=[EDMO_code=632;LOCAL_CDI_ID=world_N50W10N40E0_20060101_20070101;parameter=PSSTTS01;clim0=10;clim1=20;]&version=1.0.0 4 december 2018
3. Requests Odv2map – png http://dtvirt5.deltares.nl/wps? service=wps&request=Execute&Identifier=odv2map&DataInputs=[EDMO_code=632;LOCAL_CDI_ID=world_N50W10N40E0_20060101_20070101;parameter=PSSTTS01;clim0=10;clim1=20;colormap=winter;marker=^;alpha=0.5;]&version=1.0.0 4 december 2018
3. Requests Odv2map – kmz http://dtvirt5.deltares.nl/wps? service=wps&request=Execute&Identifier=odv2map&DataInputs=[EDMO_code=632;LOCAL_CDI_ID=world_N50W10N40E0_20070101_20080101;parameter=PSSTTS01;clim0=10;clim1=20;colormap=jet;]&responsedocument=mapname=@mimetype=application/vnd.google-earth.kmz&version=1.0.0 4 december 2018
3. Requests Odv2profile http://dtvirt5.deltares.nl/wps?service=wps&request=Execute&Identifier=odv2profile&DataInputs=[EDMO_code=729;LOCAL_CDI_ID=CTD_11249;suffix=_20140603_024844;parameter=TEMPST01;z=PSALST01;clim0=0;clim1=30;color=cyan;linestyle=--;linewidth=6;]&version=1.0.0 4 december 2018
3. Requests Odv2timeseries http://dtvirt5.deltares.nl/wps?service=wps&request=Execute&Identifier=odv2timeseries&DataInputs=[EDMO_code=632;LOCAL_CDI_ID=world_N50W10N40E0;suffix=_20070101_20080101;parameter=CDTBSS01;clim0=0;clim1=30;color=brown;marker=d;markersize=12;alpha=0.2]&version=1.0.0 4 december 2018
3. Requests Issues Parameters inconsistency: EDMO_CODE EDMO_code Time columns: 'yyyy-mm-ddThh:mm:ss.sss‘ 'Chronological_Julian_Date‘ ISO 8601 ‘time_ISO8601’ Mime type application: Binary file Saved in local directory As a link 4 december 2018
Discussion and further work Plot on the flight with JavaScript Pop-ups in the browser Oceanbrowser making the interface pyWPS can be host in the same server where data is 4 december 2018
THANKS! QUESTIONS? 4 december 2018