diff --git a/roles/grdc/defaults/main.yml b/roles/grdc/defaults/main.yml index 45e7bf06..18a515b9 100644 --- a/roles/grdc/defaults/main.yml +++ b/roles/grdc/defaults/main.yml @@ -12,18 +12,4 @@ grdc_station_zips: - ftp://ftp.bafg.de/pub/REFERATE/GRDC/catalogue/grdc_stations.zip # Archycos daily zip url grds_archycos_day_zip: ftp://ftp.bafg.de/pub/REFERATE/GRDC/ARC_HYCOS/arc_hycos_day.zip -# Global Terrestrial Network for River Discharge (GTN-R) datasets -# https://www.bafg.de/GRDC/EN/04_spcldtbss/44_GTNR/GTN-R%20SOS2.html -grdc_gtnr: - - id: 1 - name: WMO Region 1 (Africa) - stations: ftp://ftp.bafg.de/pub/REFERATE/GRDC/website/GTNR_ONLINE_1.txt - periods: - - range: 1931-1960 - url: https://gemstat.bafg.de/KiWISGRDC/KiWIS?datasource=1&service=SOS&version=2.0&request=GetObservation&featureOfInterest=http://gemstat.bafg.de/stations/1104150,1104530,1159100,1160235,1160378,1160500,1160580,1160684,1160788,1160880,1255100,1257100,1259100,1445100,1732100,1733600&temporalFilter=phenomenonTime,1931-01-01T00:00:00.000Z/1960-12-31T00:00:00.000Z - - range: 1961-1990 - url: https://gemstat.bafg.de/KiWISGRDC/KiWIS?datasource=1&service=SOS&version=2.0&request=GetObservation&featureOfInterest=http://gemstat.bafg.de/stations/1104150,1104530,1159100,1160235,1160378,1160500,1160580,1160684,1160788,1160880,1255100,1257100,1259100,1445100,1732100,1733600&temporalFilter=phenomenonTime,1961-01-01T00:00:00.000Z/1990-12-31T00:00:00.000Z - - range: 1981-2010 - url: https://gemstat.bafg.de/KiWISGRDC/KiWIS?datasource=1&service=SOS&version=2.0&request=GetObservation&featureOfInterest=http://gemstat.bafg.de/stations/1104150,1104530,1159100,1160235,1160378,1160500,1160580,1160684,1160788,1160880,1255100,1257100,1259100,1445100,1732100,1733600&temporalFilter=phenomenonTime,1981-01-01T00:00:00.000Z/2010-12-31T00:00:00.000Z - # TODO add all regions -grdc_researchdrive_archives: [] +# TODO fetch grdc data from dcache \ No newline at end of file diff --git a/roles/grdc/tasks/gtnr.yml b/roles/grdc/tasks/gtnr.yml deleted file mode 100644 index 22e6cac1..00000000 --- a/roles/grdc/tasks/gtnr.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -- name: Wich region - debug: - msg: 'Region {{ item.id }}: {{ item.name }}' -- name: GTN-R - Stations - get_url: - url: '{{ item.stations }}' - dest: '{{ grdc_root_dir }}/stations/' -- name: GTN-R - monthlies - get_url: - url: '{{ period.url }}' - dest: '{{ grdc_root_dir }}/monthlies/GTNR_{{ item.id }}.{{ period.range }}.wml2' - loop: '{{ item.periods }}' - loop_control: - loop_var: period diff --git a/roles/grdc/tasks/researchdrive.yml b/roles/grdc/tasks/researchdrive.yml deleted file mode 100644 index cdd58af6..00000000 --- a/roles/grdc/tasks/researchdrive.yml +++ /dev/null @@ -1,12 +0,0 @@ ---- -- name: research drive archive - copy - command: rclone --config /home/ubuntu/.config/rclone/rclone.conf copy RD:/eWaterCycle/GRDC/{{ item }} {{ grdc_root_dir }}/archives/ - args: - chdir: '{{ grdc_root_dir }}/archives' - creates: '{{ grdc_root_dir }}/archives/{{ item }}' -- name: research drive archive - dailies - unarchive: - src: '{{ grdc_root_dir }}/archives/{{ item }}' - dest: '{{ grdc_root_dir }}/dailies' - exclude: '*_Q_Month.txt' - remote_src: yes