def custom_settings(self):
     return (
         CustomSetting(
             name='Database Name',
             type=CustomSetting.TYPE_STRING,
             description='The name of the database containing the land use shapefile.',
             required=True
         ),
         CustomSetting(
             name='Database IP',
             type=CustomSetting.TYPE_STRING,
             description='The IP address of the database.',
             required=True
         ),
         CustomSetting(
             name='Database Port',
             type=CustomSetting.TYPE_INTEGER,
             description='The port of the database containing the land use shapefile.',
             required=True
         ),
         CustomSetting(
             name='Database Username',
             type=CustomSetting.TYPE_STRING,
             description='The name of the database user.',
             required=True
         ),
         CustomSetting(
             name='Database Password',
             type=CustomSetting.TYPE_STRING,
             description='The password of the database user.',
             required=True
         ),
     )
Exemplo n.º 2
0
    def custom_settings(self):
        """
        Example custom_settings method.
        """
        custom_settings = (
            CustomSetting(
                name='default_name',
                type=CustomSetting.TYPE_STRING,
                description='Default model name.',
                required=True,
            ),
            CustomSetting(name='max_count',
                          type=CustomSetting.TYPE_INTEGER,
                          description='Maximum allowed count in a method.',
                          required=False),
            CustomSetting(
                name='change_factor',
                type=CustomSetting.TYPE_FLOAT,
                description='Change factor that is applied to some process.',
                required=False),
            CustomSetting(name='enable_feature',
                          type=CustomSetting.TYPE_BOOLEAN,
                          description='Enable this feature when True.',
                          required=False))

        return custom_settings
Exemplo n.º 3
0
 def custom_settings(self):
     custom_settings = (
         CustomSetting(
             name='Local Thredds Folder Path',
             type=CustomSetting.TYPE_STRING,
             description=
             "Local file path to folder containing these datasets, same as is used by THREDDS "
             "(e.g. /home/thredds/myDataFolder/)",
             required=True,
         ),
         CustomSetting(
             name='Thredds WMS URL',
             type=CustomSetting.TYPE_STRING,
             description=
             "URL to the Earth Observer app's folder on the THREDDS server "
             "(e.g. http://[host]/thredds/earthobserver/)",
             required=True,
         ),
         CustomSetting(
             name='Geoserver Workspace URL',
             type=CustomSetting.TYPE_STRING,
             description=
             "WFS URL of the geoserver workspace containing the world region shapefiles for this app "
             "(e.g. https://[host]/geoserver/earthobserver/ows)"
             "Enter geojson instead of a url if you experience GeoServer problems.",
             required=True,
         ),
     )
     return custom_settings
    def custom_settings(self):

        return (
            CustomSetting(
                name='spt_url',
                type=CustomSetting.TYPE_STRING,
                description='URL for the Streamflow Prediction Tool',
                required=True,
                # default='https://tethys.byu.edu/apps/streamflow-prediction-tool'
            ),
            CustomSetting(
                name='spt_access_token',
                type=CustomSetting.TYPE_STRING,
                description='Unique token to access data from Streamflow Prediction Tool',
                required=True,
                # default='4d16dfa39c26a2200e49d2662215b988fb3d53cf'
            ),
            CustomSetting(
                name='thredds_folder',
                type=CustomSetting.TYPE_STRING,
                description='Flood Extent Thredds Directory (must contain geojson drainage lines, hand, rating curve, and catchments)',
                required=True,
                # default=os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(
                #     os.path.dirname(os.path.dirname(__file__)))))), 'thredds', 'public', 'flood_extent_data')
            ),
            CustomSetting(
                name='thredds_url',
                type=CustomSetting.TYPE_STRING,
                description='Flood Extent Thredds URL',
                required=True,
                # default='http://localhost:9000/thredds/'
            )
        )
Exemplo n.º 5
0
 def custom_settings(self):
     """
     Custom app settings.
     """
     return (
         CustomSetting(
             name='app_instance_id',
             type=CustomSetting.TYPE_STRING,
             description='Unique identifier for this instance of the app.',
             value=uuid5(NAMESPACE_DNS, '%s%s' % ("spt", datetime.now())),
             required=True
         ),
         CustomSetting(
             name='ecmwf_forecast_folder',
             type=CustomSetting.TYPE_STRING,
             description='Server directory path to ECMWF forecasts.',
             required=True
         ),
         CustomSetting(
             name='historical_folder',
             type=CustomSetting.TYPE_STRING,
             description=('Server directory path to historical streamflow, '
                          'return period, and seasonal files.'),
             required=True
         ),
     )
    def custom_settings(self):

        return (
            CustomSetting(
                name='spt_url',
                type=CustomSetting.TYPE_STRING,
                description='URL for the Streamflow Prediction Tool',
                required=True
            ),
            CustomSetting(
                name='spt_access_token',
                type=CustomSetting.TYPE_STRING,
                description='Unique token to access data from Streamflow Prediction Tool',
                required=True
            ),
            CustomSetting(
                name='thredds_folder',
                type=CustomSetting.TYPE_STRING,
                description='Flood Extent Thredds Directory (must contain geojson drainage lines, hand, rating curve, and catchments)',
                required=True
            ),
            CustomSetting(
                name='thredds_url',
                type=CustomSetting.TYPE_STRING,
                description='Flood Extent Thredds URL',
                required=True
            )
        )
Exemplo n.º 7
0
 def custom_settings(self):
     custom_settings = (CustomSetting(name='Geoserver Endpoint',
                                      type=CustomSetting.TYPE_STRING,
                                      description='Geoserver Endpoint',
                                      required=False),
                        CustomSetting(name='Geoserver Workspace',
                                      type=CustomSetting.TYPE_STRING,
                                      description='Geoserver Workspace',
                                      required=False))
     return custom_settings
    def custom_settings(self):
        custom_settings = (
            CustomSetting(name='hydroshare_url',
                          type=CustomSetting.TYPE_STRING,
                          description='HydroShare URL',
                          required=True),
            CustomSetting(name='hydroserver_url',
                          type=CustomSetting.TYPE_STRING,
                          description='HydroServer URL',
                          required=True),
        )

        return custom_settings
Exemplo n.º 9
0
 def custom_settings(self):
     return (CustomSetting(
         name='thredds_path',
         type=CustomSetting.TYPE_STRING,
         description=
         "Local file path to the folder used by the Thredds server",
         required=True,
     ),
             CustomSetting(
                 name='thredds_url',
                 type=CustomSetting.TYPE_STRING,
                 description="Url of the thredds server",
                 required=True,
             ))
Exemplo n.º 10
0
 def custom_settings(self):
     return (CustomSetting(
         name='thredds_path',
         type=CustomSetting.TYPE_STRING,
         description=
         "Local file path to datasets (same as used by Thredds) (e.g. /home/thredds/myDataFolder/)",
         required=True,
     ),
             CustomSetting(
                 name='thredds_url',
                 type=CustomSetting.TYPE_STRING,
                 description=
                 "URL to the GLDAS folder on the thredds server (e.g. http://[host]/thredds/gldas/)",
                 required=True,
             ))
Exemplo n.º 11
0
    def custom_settings(self):
        return (CustomSetting(name='sudo_server_pass',
                              type=CustomSetting.TYPE_STRING,
                              description='Sudo password for server',
                              required=False), )

        return custom_settings
Exemplo n.º 12
0
    def custom_settings(self):

        custom_settings = (
            CustomSetting(
                name='gw_thredds_directoy',
                type=CustomSetting.TYPE_STRING,
                description='Path to the Ground Water Thredds Directory',
                required=True),
            CustomSetting(
                name='gw_thredds_catalog',
                type=CustomSetting.TYPE_STRING,
                description='Path to the Ground Water Thredds Catalog XML URL',
                required=True),
        )

        return custom_settings
Exemplo n.º 13
0
 def custom_settings(self):
     return (
         CustomSetting(
             name='api_source',
             type=CustomSetting.TYPE_STRING,
             description='Tethys portal where Streamflow Prediction Tool is installed (e.g. '
                         'https://tethys.byu.edu). Note: No trailing slash!',
             required=True
         ),
         CustomSetting(
             name='spt_token',
             type=CustomSetting.TYPE_STRING,
             description='Unique token to access data from the Streamflow Prediction Tool (API Key from the Portal)',
             required=True
         ),
     )
Exemplo n.º 14
0
 def custom_settings(self):
     custom_settings = (
         CustomSetting(
             name='Local Thredds Folder Path',
             type=CustomSetting.TYPE_STRING,
             description='Path to Global NetCDF Directory (Local Folder Mounted to Thredds Docker)',
             required=True,
         ),
         CustomSetting(
             name='Thredds wms URL',
             type=CustomSetting.TYPE_STRING,
             description='URL to thredds Global Directory folder (make sure it paths to the folder and not a specific layer)',
             required=True,
         ),
     )
     return custom_settings
Exemplo n.º 15
0
 def custom_settings(self):
     return (
         CustomSetting(
             name='geoserver_workspace',
             type=CustomSetting.TYPE_STRING,
             description='Name of the workspace containing the drainage line, catchment, and boundary shapefiles on '
                         'the GeoServer that you specified in Spatial Dataset Service Settings',
             required=True,
         ),
         CustomSetting(
             name='api_token',
             type=CustomSetting.TYPE_STRING,
             description='A valid api token to the azure ai for earth api system',
             required=True,
         ),
     )
Exemplo n.º 16
0
 def custom_settings(self):
     return (
         CustomSetting(name='thredds_path',
                       type=CustomSetting.TYPE_STRING,
                       description='Path to the DATA shared by TDS',
                       required=True,
                       default="/Users/jonjones/threddsdata/data_viewer/"),
         CustomSetting(
             name='thredds_url',
             type=CustomSetting.TYPE_STRING,
             description='Url to the chirpsapp directory on the TDS',
             required=True,
             default=
             "http://127.0.0.1:7000/thredds/wms/testAll/data_viewer/",
         ),
     )
Exemplo n.º 17
0
 def custom_settings(self):
     return (
         CustomSetting(
             name='thredds_path',
             type=CustomSetting.TYPE_STRING,
             description="Local file path to datasets (same as used by Thredds) (e.g. /home/thredds/myDataFolder/)",
             required=True,
             default='/Users/rileyhales/thredds/gldas/',
         ),
         CustomSetting(
             name='thredds_url',
             type=CustomSetting.TYPE_STRING,
             description="URL to the GLDAS folder on the thredds server (e.g. http://[host]/thredds/gldas/)",
             required=True,
             default='https://tethys2.byu.edu/thredds/wms/testAll/gldas/',
         )
     )
Exemplo n.º 18
0
    def custom_settings(self):
        custom_settings = (

            CustomSetting(
                name='Views Names',
                type = CustomSetting.TYPE_STRING,
                description='Name of the region holding the views (e.g. La Plata Basin)',
                required=False
            ),
            CustomSetting(
                name='InstitutionLogo',
                type = CustomSetting.TYPE_STRING,
                description='Link containing the isntitution logo.',
                required=False
            ),
            CustomSetting(
                name='Boundary Geoserver Endpoint',
                type = CustomSetting.TYPE_STRING,
                description='Geoserver endpoint for the hydroshare resource containning the layer (e.g:"https://geoserver.hydroshare.org/geoserver/layerID")',
                required=False
            ),
            CustomSetting(
                name='Boundary Workspace Name',
                type = CustomSetting.TYPE_STRING,
                description='workspace and layer name (e.g workspace:layername)',
                required=False
            ),
            CustomSetting(
                name='Boundary Layer Name',
                type = CustomSetting.TYPE_STRING,
                description='layer name (e.g workspace:layername)',
                required=False
            ),
            CustomSetting(
                name='Boundary Movement',
                type = CustomSetting.TYPE_BOOLEAN,
                description='Block or Allow movement outside the map boundary layer (True/False)',
                required=False

            ),
            CustomSetting(
                name='Boundary Color',
                type = CustomSetting.TYPE_STRING,
                description='The color style for the boundary (e.g #ffcc33)',
                required=False
            ),
            CustomSetting(
                name='Boundary Width',
                type = CustomSetting.TYPE_STRING,
                description='Width of the boundary. A number from 1 to 10',
                required=False
            ),

        )
        # return
        return custom_settings
    def custom_settings(self):
        custom_settings = (
            CustomSetting(name='hydroshare_url',
                          type=CustomSetting.TYPE_STRING,
                          description='HydroShare URL to connect to.',
                          required=True),
            CustomSetting(name='geoserver_url',
                          type=CustomSetting.TYPE_STRING,
                          description='GeoServer URL to connect to.',
                          required=False),
            CustomSetting(name='hydroserver_url',
                          type=CustomSetting.TYPE_STRING,
                          description='HydroServer URL to connect to.',
                          required=False),
            CustomSetting(name='include_feature',
                          type=CustomSetting.TYPE_BOOLEAN,
                          description='Include Geographic Feature content?',
                          required=True),
            CustomSetting(name='include_raster',
                          type=CustomSetting.TYPE_BOOLEAN,
                          description='Include Geographic Raster content?',
                          required=True),
            CustomSetting(name='include_timeseries',
                          type=CustomSetting.TYPE_BOOLEAN,
                          description='Include Time Series content?',
                          required=True),
            CustomSetting(name='max_layers',
                          type=CustomSetting.TYPE_INTEGER,
                          description=
                          'Maximum number of layers allowed in the workspace.',
                          required=True),
        )

        return custom_settings
 def custom_settings(self):
     custom_settings = (
         CustomSetting(
             name='Local Thredds Folder Path',
             type=CustomSetting.TYPE_STRING,
             description=
             'Path to Global NetCDF Directory (Local Folder Mounted to Thredds Docker)',
             required=True,
         ),
         CustomSetting(
             name='Thredds wms URL',
             type=CustomSetting.TYPE_STRING,
             description=
             'URL to thredds Global Directory folder.  Should end in .../thredds/ (ex: 127.0.0.1:7000/thredds/)',
             required=True,
         ),
     )
     return custom_settings
Exemplo n.º 21
0
 def custom_settings(self):
     return (CustomSetting(
         name='thredds_wms_base',
         type=CustomSetting.TYPE_STRING,
         description=
         "WMS URL to the THREDDS directory containing the Schigella data",
         required=True,
         default='http://0.0.0.0:7000/thredds/wms/data/jhudata/',
     ), )
Exemplo n.º 22
0
 def custom_settings(self):
     """
     Example custom_settings method.
     """
     custom_settings = (CustomSetting(name='Region',
                                      type=CustomSetting.TYPE_STRING,
                                      description='Region to process.',
                                      required=False), )
     return custom_settings
Exemplo n.º 23
0
 def custom_settings(self):
     """
     Example custom_settings method.
     """
     custom_settings = (CustomSetting(
         name='max size',
         type=CustomSetting.TYPE_INTEGER,
         description=
         'Maximum number of size in MB for data analysis - test feature',
         required=False), )
     return custom_settings
Exemplo n.º 24
0
 def custom_settings(self):
     settings = (
         CustomSetting(
             name='datadirpath',
             type=CustomSetting.TYPE_STRING,
             description=
             'Path to the DIRECTORY of netCDF data for this app. ex ~/Users/rileyhales/thredds/malaria',
             required=True,
             # /opt/tomcat/content/thredds/public/testdata/malaria/ on tethys.byu.edu
         ),
         CustomSetting(
             name='threddsurl',
             type=CustomSetting.TYPE_STRING,
             description=
             'URL of the thredds wms for this app\'s data. ex byu.edu/thredds/wms/',
             required=True,
             # https://tethys.byu.edu/thredds/wms/testAll/malaria/
         ),
     )
     return settings
Exemplo n.º 25
0
 def custom_settings(self):
     """
     Example custom settings method.
     """
     custom_settings = (CustomSetting(
         name='max_dams',
         type=CustomSetting.TYPE_INTEGER,
         description=
         'Maximum number of dams that can be created in the app.',
         required=False), )
     return custom_settings
Exemplo n.º 26
0
    def custom_settings(self):
        """
        Example custom_settings method.
        """
        custom_settings = (CustomSetting(
            name='project_id',
            type=CustomSetting.TYPE_STRING,
            description='Project ID on the UIT supercomputing resources.',
            required=True), )

        return custom_settings
Exemplo n.º 27
0
    def custom_settings(self):
        """
        Example custom_settings method.
        """
        custom_settings = (CustomSetting(
            name='user_services',
            type=CustomSetting.TYPE_STRING,
            description='Comma separated list of user services urls.',
            required=False), )

        return custom_settings
Exemplo n.º 28
0
 def custom_settings(self):
     CustomSettings = (
         CustomSetting(
             name='Local Thredds Folder Path',
             type=CustomSetting.TYPE_STRING,
             description=
             "Path to data in the folder mounted by Thredds (e.g. /home/thredds/myDataFolder/)",
             required=True,
             # /home/rchales/thredds/gfs/
         ),
         CustomSetting(
             name='Thredds WMS URL',
             type=CustomSetting.TYPE_STRING,
             description=
             "URL to the folder of GFS data and .ncml files on the thredds server (e.g. tethys.byu.edu/thredds/myDataFolder/)",
             required=True,
             # http://127.0.0.1:7000/thredds/wms/testAll/
         ),
     )
     return CustomSettings
Exemplo n.º 29
0
 def custom_settings(self):
     return (
         CustomSetting(
             name='thredds_path',
             type=CustomSetting.TYPE_STRING,
             description=
             "Local file path to datasets (same as used by Thredds) "
             "(e.g.~/spatialdata/thredds/timeseries-workshop)",
             required=True,
             # default='~/spatialdata/thredds/timeseries-workshop'
         ),
         CustomSetting(
             name='thredds_url',
             type=CustomSetting.TYPE_STRING,
             description=
             "URL to the GLDAS folder on the thredds server with trailing / "
             "(e.g. http://127.0.0.1:7000/thredds/)",
             required=True,
             default=
             'http://127.0.0.1:7000/thredds/wms/thredds-demo/timeseries-workshop/',
         ))
Exemplo n.º 30
0
 def custom_settings(self):
     """
     Custom settings.
     """
     custom_settings = (
         CustomSetting(
             name='service_account_email',
             type=CustomSetting.TYPE_STRING,
             description='Email associated with the service account.',
             default='',
             required=False,
         ),
         CustomSetting(
             name='private_key_file',
             type=CustomSetting.TYPE_STRING,
             description='Path to service account JSON file containing the private key.',
             default='',
             required=False,
         ),
     )
     return custom_settings