Skip to content

Commit

Permalink
pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
cehbrecht committed Oct 13, 2023
1 parent 501de28 commit 5d628c1
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions shearwater/processes/wps_cyclone.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from pywps import Process, LiteralInput, LiteralOutput, UOM
from pywps import Process, LiteralInput, LiteralOutput
from pywps.app.Common import Metadata
from datetime import datetime
# from datetime import datetime

import intake

Expand Down Expand Up @@ -55,16 +55,16 @@ def __init__(self):
def _handler(request, response):
LOGGER.info("running cyclone ...")

master_catalog=intake.open_catalog(["https://gitlab.dkrz.de/data-infrastructure-services/intake-esm/-/raw/master/esm-collections/cloud-access/dkrz_catalog.yaml"])
master_catalog = intake.open_catalog(["https://gitlab.dkrz.de/data-infrastructure-services/intake-esm/-/raw/master/esm-collections/cloud-access/dkrz_catalog.yaml"]) # noqa
# master_catalog = intake.open_catalog('/pool/data/Catalogs/dkrz_catalog.yaml')
era5_catalog = master_catalog['dkrz_era5_disk']

query = {
'era_id': 'ET',
'level_type':'surface',
'level_type': 'surface',
'table_id': 128,
#'frequency':'hourly',
'code':34,
# 'frequency':'hourly',
'code': 34,
'dataType': 'an',
'validation_date': '2023-06-27',
}
Expand All @@ -73,7 +73,6 @@ def _handler(request, response):
# my_catalog.df

era_path = my_catalog.df['uri'].iloc[0]

response.outputs['output'].data = f'netcdf {era_path}'
response.outputs['output_csv'].data = 'csv ' + request.inputs['model'][0].data
return response

0 comments on commit 5d628c1

Please sign in to comment.