Skip to content

Merge branch 'develop' #112

Merge branch 'develop'

Merge branch 'develop' #112

GitHub Actions / Petals / Unit Test Results (3.9) failed Jul 19, 2024 in 0s

2 fail, 190 pass in 7m 41s

192 tests   190 ✅  7m 41s ⏱️
  1 suites    0 💤
  1 files      2 ❌

Results for commit dc47702.

Annotations

Check warning on line 0 in climada_petals.hazard.test.test_tc_rainfield.TestReader

See this annotation in the file changed.

@github-actions github-actions / Petals / Unit Test Results (3.9)

test_cross_antimeridian (climada_petals.hazard.test.test_tc_rainfield.TestReader) failed

climada_petals/tests_xml/tests.xml [took 1m 45s]
Raw output
ValueError: Error while downloading https://www.ncei.noaa.gov/data/international-best-track-archive-for-climate-stewardship-ibtracs/v04r00/access/netcdf. Try to download it manually and put the file in /home/runner/climada/data/IBTrACS.ALL.v04r00.nc
url = 'https://www.ncei.noaa.gov/data/international-best-track-archive-for-climate-stewardship-ibtracs/v04r00/access/netcdf/IBTrACS.ALL.v04r00.nc'
file_name = 'IBTrACS.ALL.v04r00.nc'

    def download_ftp(url, file_name):
        """Download file from ftp in current folder.
    
        Parameters
        ----------
        url : str
            url containing data to download
        file_name : str
            name of the file to dowload
    
        Raises
        ------
        ValueError
        """
        LOGGER.info('Downloading file %s', file_name)
        try:
            with DownloadProgressBar(unit='B', unit_scale=True, miniters=1,
                                     desc=url.split('/')[-1]) as prog_bar:
>               urllib.request.urlretrieve(url, file_name, reporthook=prog_bar.update_to)

../../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/climada/util/files_handler.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../../micromamba/envs/climada_env_3.9/lib/python3.9/urllib/request.py:239: in urlretrieve
    with contextlib.closing(urlopen(url, data)) as fp:
../../../../micromamba/envs/climada_env_3.9/lib/python3.9/urllib/request.py:214: in urlopen
    return opener.open(url, data, timeout)
../../../../micromamba/envs/climada_env_3.9/lib/python3.9/urllib/request.py:523: in open
    response = meth(req, response)
../../../../micromamba/envs/climada_env_3.9/lib/python3.9/urllib/request.py:632: in http_response
    response = self.parent.error(
../../../../micromamba/envs/climada_env_3.9/lib/python3.9/urllib/request.py:561: in error
    return self._call_chain(*args)
../../../../micromamba/envs/climada_env_3.9/lib/python3.9/urllib/request.py:494: in _call_chain
    result = func(*args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <urllib.request.HTTPDefaultErrorHandler object at 0x7f44c04b8fa0>
req = <urllib.request.Request object at 0x7f44abab48b0>
fp = <http.client.HTTPResponse object at 0x7f44abab4dc0>, code = 502
msg = 'Proxy Error', hdrs = <http.client.HTTPMessage object at 0x7f44abab4b50>

    def http_error_default(self, req, fp, code, msg, hdrs):
>       raise HTTPError(req.full_url, code, msg, hdrs, fp)
E       urllib.error.HTTPError: HTTP Error 502: Proxy Error

../../../../micromamba/envs/climada_env_3.9/lib/python3.9/urllib/request.py:641: HTTPError

The above exception was the direct cause of the following exception:

cls = <class 'climada.hazard.tc_tracks.TCTracks'>, provider = None
rescale_windspeeds = True, storm_id = ['2020346S13168'], year_range = None
basin = None, genesis_basin = None, interpolate_missing = True
estimate_missing = False, correct_pres = False, discard_single_points = True
additional_variables = None, file_name = 'IBTrACS.ALL.v04r00.nc'

    @classmethod
    def from_ibtracs_netcdf(cls, provider=None, rescale_windspeeds=True, storm_id=None,
                            year_range=None, basin=None, genesis_basin=None,
                            interpolate_missing=True, estimate_missing=False, correct_pres=False,
                            discard_single_points=True, additional_variables=None,
                            file_name='IBTrACS.ALL.v04r00.nc'):
        """Create new TCTracks object from IBTrACS databse.
    
        When using data from IBTrACS, make sure to be familiar with the scope and limitations of
        IBTrACS, e.g. by reading the official documentation
        (https://www.ncdc.noaa.gov/ibtracs/pdf/IBTrACS_version4_Technical_Details.pdf). Reading the
        CLIMADA documentation can't replace a thorough understanding of the underlying data. This
        function only provides a (hopefully useful) interface for the data input, but cannot
        provide any guidance or make recommendations about if and how to use IBTrACS data for your
        particular project.
    
        Resulting tracks are required to have both pressure and wind speed information at all time
        steps. Therefore, all track positions where one of wind speed or pressure are missing are
        discarded unless one of `interpolate_missing` or `estimate_missing` are active.
    
        Some corrections are automatically applied, such as: `environmental_pressure` is enforced
        to be larger than `central_pressure`.
    
        Note that the tracks returned by this function might contain irregular time steps since
        that is often the case for the original IBTrACS records: many agencies add an additional
        time step at landfall. Apply the `equal_timestep` function afterwards to enforce regular
        time steps.
    
        Parameters
        ----------
        provider : str or list of str, optional
            Either specify an agency, such as "usa", "newdelhi", "bom", "cma", "tokyo", or the
            special values "official" and "official_3h":
    
            * "official" means using the (usually 6-hourly) officially reported values of the
              officially responsible agencies.
            * "official_3h" means to include (inofficial) 3-hourly data of the officially
              responsible agencies (whenever available).
    
            If you want to restrict to the officially reported values by the officially responsible
            agencies (`provider="official"`) without any modifications to the original official
            data, make sure to also set `estimate_missing=False` and `interpolate_missing=False`.
            Otherwise, gaps in the official reporting will be filled using interpolation and/or
            statistical estimation procedures (see below).
            If a list is given, the following logic is applied: For each storm, the variables that
            are not reported by the first agency for this storm are taken from the next agency in
            the list that did report this variable for this storm. For different storms, the same
            variable might be taken from different agencies.
            Default: ``['official_3h', 'usa', 'tokyo', 'newdelhi', 'reunion', 'bom', 'nadi',
            'wellington', 'cma', 'hko', 'ds824', 'td9636', 'td9635', 'neumann', 'mlc']``
        rescale_windspeeds : bool, optional
            If True, all wind speeds are linearly rescaled to 1-minute sustained winds.
            Note however that the IBTrACS documentation (Section 5.2,
            https://www.ncdc.noaa.gov/ibtracs/pdf/IBTrACS_version4_Technical_Details.pdf) includes
            a warning about this kind of conversion: "While a multiplicative factor can describe
            the numerical differences, there are procedural and observational differences between
            agencies that can change through time, which confounds the simple multiplicative
            factor." Default: True
        storm_id : str or list of str, optional
            IBTrACS ID of the storm, e.g. 1988234N13299, [1988234N13299, 1989260N11316].
        year_range : tuple (min_year, max_year), optional
            Year range to filter track selection. Default: None.
        basin : str, optional
            If given, select storms that have at least one position in the specified basin. This
            allows analysis of a given basin, but also means that basin-specific track sets should
            not be combined across basins since some storms will be in more than one set. If you
            would like to select storms by their (unique) genesis basin instead, use the parameter
            `genesis_basin`. For possible values (basin abbreviations), see the parameter
            `genesis_basin`. If None, this filter is not applied. Default: None.
        genesis_basin : str, optional
            The basin where a TC is formed is not defined in IBTrACS. However, this filter option
            allows to restrict to storms whose first valid eye position is in the specified basin,
            which simulates the genesis location. Note that the resulting genesis basin of a
            particular track may depend on the selected `provider` and on `estimate_missing`
            because only the first *valid* eye position is considered. Possible values are 'NA'
            (North Atlantic), 'SA' (South Atlantic), 'EP' (Eastern North Pacific, which includes
            the Central Pacific region), 'WP' (Western North Pacific), 'SP' (South Pacific),
            'SI' (South Indian), 'NI' (North Indian). If None, this filter is not applied.
            Default: None.
        interpolate_missing : bool, optional
            If True, interpolate temporal reporting gaps within a variable (such as pressure, wind
            speed, or radius) linearly if possible. Temporal interpolation is with respect to the
            time steps defined in IBTrACS for a particular storm. No new time steps are added that
            are not originally defined in IBTrACS.
            For each time step with a missing value, this procedure is only able to fill in that
            value if there are other time steps before and after this time step for which values
            have been reported.
            This procedure will be applied before the statistical estimations referred to
            by `estimate_missing`. It is applied to all variables (eye position, wind speed,
            environmental and central pressure, storm radius and radius of maximum winds).
            Default: True
        estimate_missing : bool, optional
            For each fixed time step, estimate missing pressure, wind speed and radius using other
            variables that are available at that time step.
            The relationships between the variables are purely statistical. In comparison to
            `interpolate_missing`, this procedure is able to estimate values for variables that
            haven't been reported by any agency at any time step, as long as other variables are
            available.
            A typical example are storms before 1950, for which there are often no reported values
            for pressure, but for wind speed. In this case, a rough statistical pressure-wind
            relationship is applied to estimate the missing pressure values from the available
            wind-speed values.
            Make sure to set `rescale_windspeeds=True` when using this option because the
            statistical relationships are calibrated using rescaled wind speeds.
            Default: False
        correct_pres : bool, optional
            For backwards compatibility, alias for `estimate_missing`.
            This is deprecated, use `estimate_missing` instead!
        discard_single_points : bool, optional
            Whether to discard tracks that consists of a single point. Recommended for full
            compatiblity with other functions such as `equal_timesteps`. Default: True.
        file_name : str, optional
            Name of NetCDF file to be dowloaded or located at climada/data/system.
            Default: 'IBTrACS.ALL.v04r00.nc'
        additional_variables : list of str, optional
            If specified, additional IBTrACS data variables are extracted, such as "nature" or
            "storm_speed". Only variables that are not agency-specific are supported.
            Default: None.
    
        Returns
        -------
        tracks : TCTracks
            TCTracks with data from IBTrACS
        """
        if correct_pres:
            LOGGER.warning("`correct_pres` is deprecated. "
                           "Use `estimate_missing` instead.")
            estimate_missing = True
        if estimate_missing and not rescale_windspeeds:
            LOGGER.warning(
                "Using `estimate_missing` without `rescale_windspeeds` is strongly discouraged!")
    
        ibtracs_path = SYSTEM_DIR.joinpath(file_name)
        if not ibtracs_path.is_file():
            try:
>               download_ftp(f'{IBTRACS_URL}/{IBTRACS_FILE}', IBTRACS_FILE)

../../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/climada/hazard/tc_tracks.py:459: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

url = 'https://www.ncei.noaa.gov/data/international-best-track-archive-for-climate-stewardship-ibtracs/v04r00/access/netcdf/IBTrACS.ALL.v04r00.nc'
file_name = 'IBTrACS.ALL.v04r00.nc'

    def download_ftp(url, file_name):
        """Download file from ftp in current folder.
    
        Parameters
        ----------
        url : str
            url containing data to download
        file_name : str
            name of the file to dowload
    
        Raises
        ------
        ValueError
        """
        LOGGER.info('Downloading file %s', file_name)
        try:
            with DownloadProgressBar(unit='B', unit_scale=True, miniters=1,
                                     desc=url.split('/')[-1]) as prog_bar:
                urllib.request.urlretrieve(url, file_name, reporthook=prog_bar.update_to)
        except Exception as exc:
>           raise ValueError(
                f'{exc.__class__} - "{exc}": failed to retrieve {url} into {file_name}'
            ) from exc
E           ValueError: <class 'urllib.error.HTTPError'> - "HTTP Error 502: Proxy Error": failed to retrieve https://www.ncei.noaa.gov/data/international-best-track-archive-for-climate-stewardship-ibtracs/v04r00/access/netcdf/IBTrACS.ALL.v04r00.nc into IBTrACS.ALL.v04r00.nc

../../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/climada/util/files_handler.py:131: ValueError

The above exception was the direct cause of the following exception:

self = <climada_petals.hazard.test.test_tc_rainfield.TestReader testMethod=test_cross_antimeridian>

    def test_cross_antimeridian(self):
        # Two locations on the island Taveuni (Fiji), one west and one east of 180° longitude.
        # We list the second point twice, with different lon-normalization:
        cen = Centroids.from_lat_lon([-16.95, -16.8, -16.8], [179.9, 180.1, -179.9])
    
        # Cyclone YASA (2020) passed directly over Fiji
>       tr = TCTracks.from_ibtracs_netcdf(storm_id=["2020346S13168"])

climada_petals/hazard/test/test_tc_rainfield.py:121: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'climada.hazard.tc_tracks.TCTracks'>, provider = None
rescale_windspeeds = True, storm_id = ['2020346S13168'], year_range = None
basin = None, genesis_basin = None, interpolate_missing = True
estimate_missing = False, correct_pres = False, discard_single_points = True
additional_variables = None, file_name = 'IBTrACS.ALL.v04r00.nc'

    @classmethod
    def from_ibtracs_netcdf(cls, provider=None, rescale_windspeeds=True, storm_id=None,
                            year_range=None, basin=None, genesis_basin=None,
                            interpolate_missing=True, estimate_missing=False, correct_pres=False,
                            discard_single_points=True, additional_variables=None,
                            file_name='IBTrACS.ALL.v04r00.nc'):
        """Create new TCTracks object from IBTrACS databse.
    
        When using data from IBTrACS, make sure to be familiar with the scope and limitations of
        IBTrACS, e.g. by reading the official documentation
        (https://www.ncdc.noaa.gov/ibtracs/pdf/IBTrACS_version4_Technical_Details.pdf). Reading the
        CLIMADA documentation can't replace a thorough understanding of the underlying data. This
        function only provides a (hopefully useful) interface for the data input, but cannot
        provide any guidance or make recommendations about if and how to use IBTrACS data for your
        particular project.
    
        Resulting tracks are required to have both pressure and wind speed information at all time
        steps. Therefore, all track positions where one of wind speed or pressure are missing are
        discarded unless one of `interpolate_missing` or `estimate_missing` are active.
    
        Some corrections are automatically applied, such as: `environmental_pressure` is enforced
        to be larger than `central_pressure`.
    
        Note that the tracks returned by this function might contain irregular time steps since
        that is often the case for the original IBTrACS records: many agencies add an additional
        time step at landfall. Apply the `equal_timestep` function afterwards to enforce regular
        time steps.
    
        Parameters
        ----------
        provider : str or list of str, optional
            Either specify an agency, such as "usa", "newdelhi", "bom", "cma", "tokyo", or the
            special values "official" and "official_3h":
    
            * "official" means using the (usually 6-hourly) officially reported values of the
              officially responsible agencies.
            * "official_3h" means to include (inofficial) 3-hourly data of the officially
              responsible agencies (whenever available).
    
            If you want to restrict to the officially reported values by the officially responsible
            agencies (`provider="official"`) without any modifications to the original official
            data, make sure to also set `estimate_missing=False` and `interpolate_missing=False`.
            Otherwise, gaps in the official reporting will be filled using interpolation and/or
            statistical estimation procedures (see below).
            If a list is given, the following logic is applied: For each storm, the variables that
            are not reported by the first agency for this storm are taken from the next agency in
            the list that did report this variable for this storm. For different storms, the same
            variable might be taken from different agencies.
            Default: ``['official_3h', 'usa', 'tokyo', 'newdelhi', 'reunion', 'bom', 'nadi',
            'wellington', 'cma', 'hko', 'ds824', 'td9636', 'td9635', 'neumann', 'mlc']``
        rescale_windspeeds : bool, optional
            If True, all wind speeds are linearly rescaled to 1-minute sustained winds.
            Note however that the IBTrACS documentation (Section 5.2,
            https://www.ncdc.noaa.gov/ibtracs/pdf/IBTrACS_version4_Technical_Details.pdf) includes
            a warning about this kind of conversion: "While a multiplicative factor can describe
            the numerical differences, there are procedural and observational differences between
            agencies that can change through time, which confounds the simple multiplicative
            factor." Default: True
        storm_id : str or list of str, optional
            IBTrACS ID of the storm, e.g. 1988234N13299, [1988234N13299, 1989260N11316].
        year_range : tuple (min_year, max_year), optional
            Year range to filter track selection. Default: None.
        basin : str, optional
            If given, select storms that have at least one position in the specified basin. This
            allows analysis of a given basin, but also means that basin-specific track sets should
            not be combined across basins since some storms will be in more than one set. If you
            would like to select storms by their (unique) genesis basin instead, use the parameter
            `genesis_basin`. For possible values (basin abbreviations), see the parameter
            `genesis_basin`. If None, this filter is not applied. Default: None.
        genesis_basin : str, optional
            The basin where a TC is formed is not defined in IBTrACS. However, this filter option
            allows to restrict to storms whose first valid eye position is in the specified basin,
            which simulates the genesis location. Note that the resulting genesis basin of a
            particular track may depend on the selected `provider` and on `estimate_missing`
            because only the first *valid* eye position is considered. Possible values are 'NA'
            (North Atlantic), 'SA' (South Atlantic), 'EP' (Eastern North Pacific, which includes
            the Central Pacific region), 'WP' (Western North Pacific), 'SP' (South Pacific),
            'SI' (South Indian), 'NI' (North Indian). If None, this filter is not applied.
            Default: None.
        interpolate_missing : bool, optional
            If True, interpolate temporal reporting gaps within a variable (such as pressure, wind
            speed, or radius) linearly if possible. Temporal interpolation is with respect to the
            time steps defined in IBTrACS for a particular storm. No new time steps are added that
            are not originally defined in IBTrACS.
            For each time step with a missing value, this procedure is only able to fill in that
            value if there are other time steps before and after this time step for which values
            have been reported.
            This procedure will be applied before the statistical estimations referred to
            by `estimate_missing`. It is applied to all variables (eye position, wind speed,
            environmental and central pressure, storm radius and radius of maximum winds).
            Default: True
        estimate_missing : bool, optional
            For each fixed time step, estimate missing pressure, wind speed and radius using other
            variables that are available at that time step.
            The relationships between the variables are purely statistical. In comparison to
            `interpolate_missing`, this procedure is able to estimate values for variables that
            haven't been reported by any agency at any time step, as long as other variables are
            available.
            A typical example are storms before 1950, for which there are often no reported values
            for pressure, but for wind speed. In this case, a rough statistical pressure-wind
            relationship is applied to estimate the missing pressure values from the available
            wind-speed values.
            Make sure to set `rescale_windspeeds=True` when using this option because the
            statistical relationships are calibrated using rescaled wind speeds.
            Default: False
        correct_pres : bool, optional
            For backwards compatibility, alias for `estimate_missing`.
            This is deprecated, use `estimate_missing` instead!
        discard_single_points : bool, optional
            Whether to discard tracks that consists of a single point. Recommended for full
            compatiblity with other functions such as `equal_timesteps`. Default: True.
        file_name : str, optional
            Name of NetCDF file to be dowloaded or located at climada/data/system.
            Default: 'IBTrACS.ALL.v04r00.nc'
        additional_variables : list of str, optional
            If specified, additional IBTrACS data variables are extracted, such as "nature" or
            "storm_speed". Only variables that are not agency-specific are supported.
            Default: None.
    
        Returns
        -------
        tracks : TCTracks
            TCTracks with data from IBTrACS
        """
        if correct_pres:
            LOGGER.warning("`correct_pres` is deprecated. "
                           "Use `estimate_missing` instead.")
            estimate_missing = True
        if estimate_missing and not rescale_windspeeds:
            LOGGER.warning(
                "Using `estimate_missing` without `rescale_windspeeds` is strongly discouraged!")
    
        ibtracs_path = SYSTEM_DIR.joinpath(file_name)
        if not ibtracs_path.is_file():
            try:
                download_ftp(f'{IBTRACS_URL}/{IBTRACS_FILE}', IBTRACS_FILE)
                shutil.move(IBTRACS_FILE, ibtracs_path)
            except ValueError as err:
>               raise ValueError(
                    f'Error while downloading {IBTRACS_URL}. Try to download it manually and '
                    f'put the file in {ibtracs_path}') from err
E               ValueError: Error while downloading https://www.ncei.noaa.gov/data/international-best-track-archive-for-climate-stewardship-ibtracs/v04r00/access/netcdf. Try to download it manually and put the file in /home/runner/climada/data/IBTrACS.ALL.v04r00.nc

../../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/climada/hazard/tc_tracks.py:462: ValueError

Check warning on line 0 in climada_petals.hazard.test.test_tc_surge_bathtub.TestTCSurgeBathtub

See this annotation in the file changed.

@github-actions github-actions / Petals / Unit Test Results (3.9)

test_cross_antimeridian (climada_petals.hazard.test.test_tc_surge_bathtub.TestTCSurgeBathtub) failed

climada_petals/tests_xml/tests.xml [took 1m 44s]
Raw output
ValueError: Error while downloading https://www.ncei.noaa.gov/data/international-best-track-archive-for-climate-stewardship-ibtracs/v04r00/access/netcdf. Try to download it manually and put the file in /home/runner/climada/data/IBTrACS.ALL.v04r00.nc
url = 'https://www.ncei.noaa.gov/data/international-best-track-archive-for-climate-stewardship-ibtracs/v04r00/access/netcdf/IBTrACS.ALL.v04r00.nc'
file_name = 'IBTrACS.ALL.v04r00.nc'

    def download_ftp(url, file_name):
        """Download file from ftp in current folder.
    
        Parameters
        ----------
        url : str
            url containing data to download
        file_name : str
            name of the file to dowload
    
        Raises
        ------
        ValueError
        """
        LOGGER.info('Downloading file %s', file_name)
        try:
            with DownloadProgressBar(unit='B', unit_scale=True, miniters=1,
                                     desc=url.split('/')[-1]) as prog_bar:
>               urllib.request.urlretrieve(url, file_name, reporthook=prog_bar.update_to)

../../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/climada/util/files_handler.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../../micromamba/envs/climada_env_3.9/lib/python3.9/urllib/request.py:239: in urlretrieve
    with contextlib.closing(urlopen(url, data)) as fp:
../../../../micromamba/envs/climada_env_3.9/lib/python3.9/urllib/request.py:214: in urlopen
    return opener.open(url, data, timeout)
../../../../micromamba/envs/climada_env_3.9/lib/python3.9/urllib/request.py:523: in open
    response = meth(req, response)
../../../../micromamba/envs/climada_env_3.9/lib/python3.9/urllib/request.py:632: in http_response
    response = self.parent.error(
../../../../micromamba/envs/climada_env_3.9/lib/python3.9/urllib/request.py:561: in error
    return self._call_chain(*args)
../../../../micromamba/envs/climada_env_3.9/lib/python3.9/urllib/request.py:494: in _call_chain
    result = func(*args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <urllib.request.HTTPDefaultErrorHandler object at 0x7f44c04b8fa0>
req = <urllib.request.Request object at 0x7f44abfaca90>
fp = <http.client.HTTPResponse object at 0x7f44abfac5e0>, code = 502
msg = 'Proxy Error', hdrs = <http.client.HTTPMessage object at 0x7f44ab6e7280>

    def http_error_default(self, req, fp, code, msg, hdrs):
>       raise HTTPError(req.full_url, code, msg, hdrs, fp)
E       urllib.error.HTTPError: HTTP Error 502: Proxy Error

../../../../micromamba/envs/climada_env_3.9/lib/python3.9/urllib/request.py:641: HTTPError

The above exception was the direct cause of the following exception:

cls = <class 'climada.hazard.tc_tracks.TCTracks'>, provider = None
rescale_windspeeds = True, storm_id = ['2020346S13168'], year_range = None
basin = None, genesis_basin = None, interpolate_missing = True
estimate_missing = False, correct_pres = False, discard_single_points = True
additional_variables = None, file_name = 'IBTrACS.ALL.v04r00.nc'

    @classmethod
    def from_ibtracs_netcdf(cls, provider=None, rescale_windspeeds=True, storm_id=None,
                            year_range=None, basin=None, genesis_basin=None,
                            interpolate_missing=True, estimate_missing=False, correct_pres=False,
                            discard_single_points=True, additional_variables=None,
                            file_name='IBTrACS.ALL.v04r00.nc'):
        """Create new TCTracks object from IBTrACS databse.
    
        When using data from IBTrACS, make sure to be familiar with the scope and limitations of
        IBTrACS, e.g. by reading the official documentation
        (https://www.ncdc.noaa.gov/ibtracs/pdf/IBTrACS_version4_Technical_Details.pdf). Reading the
        CLIMADA documentation can't replace a thorough understanding of the underlying data. This
        function only provides a (hopefully useful) interface for the data input, but cannot
        provide any guidance or make recommendations about if and how to use IBTrACS data for your
        particular project.
    
        Resulting tracks are required to have both pressure and wind speed information at all time
        steps. Therefore, all track positions where one of wind speed or pressure are missing are
        discarded unless one of `interpolate_missing` or `estimate_missing` are active.
    
        Some corrections are automatically applied, such as: `environmental_pressure` is enforced
        to be larger than `central_pressure`.
    
        Note that the tracks returned by this function might contain irregular time steps since
        that is often the case for the original IBTrACS records: many agencies add an additional
        time step at landfall. Apply the `equal_timestep` function afterwards to enforce regular
        time steps.
    
        Parameters
        ----------
        provider : str or list of str, optional
            Either specify an agency, such as "usa", "newdelhi", "bom", "cma", "tokyo", or the
            special values "official" and "official_3h":
    
            * "official" means using the (usually 6-hourly) officially reported values of the
              officially responsible agencies.
            * "official_3h" means to include (inofficial) 3-hourly data of the officially
              responsible agencies (whenever available).
    
            If you want to restrict to the officially reported values by the officially responsible
            agencies (`provider="official"`) without any modifications to the original official
            data, make sure to also set `estimate_missing=False` and `interpolate_missing=False`.
            Otherwise, gaps in the official reporting will be filled using interpolation and/or
            statistical estimation procedures (see below).
            If a list is given, the following logic is applied: For each storm, the variables that
            are not reported by the first agency for this storm are taken from the next agency in
            the list that did report this variable for this storm. For different storms, the same
            variable might be taken from different agencies.
            Default: ``['official_3h', 'usa', 'tokyo', 'newdelhi', 'reunion', 'bom', 'nadi',
            'wellington', 'cma', 'hko', 'ds824', 'td9636', 'td9635', 'neumann', 'mlc']``
        rescale_windspeeds : bool, optional
            If True, all wind speeds are linearly rescaled to 1-minute sustained winds.
            Note however that the IBTrACS documentation (Section 5.2,
            https://www.ncdc.noaa.gov/ibtracs/pdf/IBTrACS_version4_Technical_Details.pdf) includes
            a warning about this kind of conversion: "While a multiplicative factor can describe
            the numerical differences, there are procedural and observational differences between
            agencies that can change through time, which confounds the simple multiplicative
            factor." Default: True
        storm_id : str or list of str, optional
            IBTrACS ID of the storm, e.g. 1988234N13299, [1988234N13299, 1989260N11316].
        year_range : tuple (min_year, max_year), optional
            Year range to filter track selection. Default: None.
        basin : str, optional
            If given, select storms that have at least one position in the specified basin. This
            allows analysis of a given basin, but also means that basin-specific track sets should
            not be combined across basins since some storms will be in more than one set. If you
            would like to select storms by their (unique) genesis basin instead, use the parameter
            `genesis_basin`. For possible values (basin abbreviations), see the parameter
            `genesis_basin`. If None, this filter is not applied. Default: None.
        genesis_basin : str, optional
            The basin where a TC is formed is not defined in IBTrACS. However, this filter option
            allows to restrict to storms whose first valid eye position is in the specified basin,
            which simulates the genesis location. Note that the resulting genesis basin of a
            particular track may depend on the selected `provider` and on `estimate_missing`
            because only the first *valid* eye position is considered. Possible values are 'NA'
            (North Atlantic), 'SA' (South Atlantic), 'EP' (Eastern North Pacific, which includes
            the Central Pacific region), 'WP' (Western North Pacific), 'SP' (South Pacific),
            'SI' (South Indian), 'NI' (North Indian). If None, this filter is not applied.
            Default: None.
        interpolate_missing : bool, optional
            If True, interpolate temporal reporting gaps within a variable (such as pressure, wind
            speed, or radius) linearly if possible. Temporal interpolation is with respect to the
            time steps defined in IBTrACS for a particular storm. No new time steps are added that
            are not originally defined in IBTrACS.
            For each time step with a missing value, this procedure is only able to fill in that
            value if there are other time steps before and after this time step for which values
            have been reported.
            This procedure will be applied before the statistical estimations referred to
            by `estimate_missing`. It is applied to all variables (eye position, wind speed,
            environmental and central pressure, storm radius and radius of maximum winds).
            Default: True
        estimate_missing : bool, optional
            For each fixed time step, estimate missing pressure, wind speed and radius using other
            variables that are available at that time step.
            The relationships between the variables are purely statistical. In comparison to
            `interpolate_missing`, this procedure is able to estimate values for variables that
            haven't been reported by any agency at any time step, as long as other variables are
            available.
            A typical example are storms before 1950, for which there are often no reported values
            for pressure, but for wind speed. In this case, a rough statistical pressure-wind
            relationship is applied to estimate the missing pressure values from the available
            wind-speed values.
            Make sure to set `rescale_windspeeds=True` when using this option because the
            statistical relationships are calibrated using rescaled wind speeds.
            Default: False
        correct_pres : bool, optional
            For backwards compatibility, alias for `estimate_missing`.
            This is deprecated, use `estimate_missing` instead!
        discard_single_points : bool, optional
            Whether to discard tracks that consists of a single point. Recommended for full
            compatiblity with other functions such as `equal_timesteps`. Default: True.
        file_name : str, optional
            Name of NetCDF file to be dowloaded or located at climada/data/system.
            Default: 'IBTrACS.ALL.v04r00.nc'
        additional_variables : list of str, optional
            If specified, additional IBTrACS data variables are extracted, such as "nature" or
            "storm_speed". Only variables that are not agency-specific are supported.
            Default: None.
    
        Returns
        -------
        tracks : TCTracks
            TCTracks with data from IBTrACS
        """
        if correct_pres:
            LOGGER.warning("`correct_pres` is deprecated. "
                           "Use `estimate_missing` instead.")
            estimate_missing = True
        if estimate_missing and not rescale_windspeeds:
            LOGGER.warning(
                "Using `estimate_missing` without `rescale_windspeeds` is strongly discouraged!")
    
        ibtracs_path = SYSTEM_DIR.joinpath(file_name)
        if not ibtracs_path.is_file():
            try:
>               download_ftp(f'{IBTRACS_URL}/{IBTRACS_FILE}', IBTRACS_FILE)

../../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/climada/hazard/tc_tracks.py:459: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

url = 'https://www.ncei.noaa.gov/data/international-best-track-archive-for-climate-stewardship-ibtracs/v04r00/access/netcdf/IBTrACS.ALL.v04r00.nc'
file_name = 'IBTrACS.ALL.v04r00.nc'

    def download_ftp(url, file_name):
        """Download file from ftp in current folder.
    
        Parameters
        ----------
        url : str
            url containing data to download
        file_name : str
            name of the file to dowload
    
        Raises
        ------
        ValueError
        """
        LOGGER.info('Downloading file %s', file_name)
        try:
            with DownloadProgressBar(unit='B', unit_scale=True, miniters=1,
                                     desc=url.split('/')[-1]) as prog_bar:
                urllib.request.urlretrieve(url, file_name, reporthook=prog_bar.update_to)
        except Exception as exc:
>           raise ValueError(
                f'{exc.__class__} - "{exc}": failed to retrieve {url} into {file_name}'
            ) from exc
E           ValueError: <class 'urllib.error.HTTPError'> - "HTTP Error 502: Proxy Error": failed to retrieve https://www.ncei.noaa.gov/data/international-best-track-archive-for-climate-stewardship-ibtracs/v04r00/access/netcdf/IBTrACS.ALL.v04r00.nc into IBTrACS.ALL.v04r00.nc

../../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/climada/util/files_handler.py:131: ValueError

The above exception was the direct cause of the following exception:

self = <climada_petals.hazard.test.test_tc_surge_bathtub.TestTCSurgeBathtub testMethod=test_cross_antimeridian>

    def test_cross_antimeridian(self):
        # Two locations on the island Taveuni (Fiji), one west and one east of 180° longitude.
        # We list the second point twice, with different lon-normalization:
        cen = Centroids.from_lat_lon([-16.95, -16.8, -16.8], [179.9, 180.1, -179.9])
    
        # Cyclone YASA (2020) passed directly over Fiji
>       tr = TCTracks.from_ibtracs_netcdf(storm_id=["2020346S13168"])

climada_petals/hazard/test/test_tc_surge_bathtub.py:184: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'climada.hazard.tc_tracks.TCTracks'>, provider = None
rescale_windspeeds = True, storm_id = ['2020346S13168'], year_range = None
basin = None, genesis_basin = None, interpolate_missing = True
estimate_missing = False, correct_pres = False, discard_single_points = True
additional_variables = None, file_name = 'IBTrACS.ALL.v04r00.nc'

    @classmethod
    def from_ibtracs_netcdf(cls, provider=None, rescale_windspeeds=True, storm_id=None,
                            year_range=None, basin=None, genesis_basin=None,
                            interpolate_missing=True, estimate_missing=False, correct_pres=False,
                            discard_single_points=True, additional_variables=None,
                            file_name='IBTrACS.ALL.v04r00.nc'):
        """Create new TCTracks object from IBTrACS databse.
    
        When using data from IBTrACS, make sure to be familiar with the scope and limitations of
        IBTrACS, e.g. by reading the official documentation
        (https://www.ncdc.noaa.gov/ibtracs/pdf/IBTrACS_version4_Technical_Details.pdf). Reading the
        CLIMADA documentation can't replace a thorough understanding of the underlying data. This
        function only provides a (hopefully useful) interface for the data input, but cannot
        provide any guidance or make recommendations about if and how to use IBTrACS data for your
        particular project.
    
        Resulting tracks are required to have both pressure and wind speed information at all time
        steps. Therefore, all track positions where one of wind speed or pressure are missing are
        discarded unless one of `interpolate_missing` or `estimate_missing` are active.
    
        Some corrections are automatically applied, such as: `environmental_pressure` is enforced
        to be larger than `central_pressure`.
    
        Note that the tracks returned by this function might contain irregular time steps since
        that is often the case for the original IBTrACS records: many agencies add an additional
        time step at landfall. Apply the `equal_timestep` function afterwards to enforce regular
        time steps.
    
        Parameters
        ----------
        provider : str or list of str, optional
            Either specify an agency, such as "usa", "newdelhi", "bom", "cma", "tokyo", or the
            special values "official" and "official_3h":
    
            * "official" means using the (usually 6-hourly) officially reported values of the
              officially responsible agencies.
            * "official_3h" means to include (inofficial) 3-hourly data of the officially
              responsible agencies (whenever available).
    
            If you want to restrict to the officially reported values by the officially responsible
            agencies (`provider="official"`) without any modifications to the original official
            data, make sure to also set `estimate_missing=False` and `interpolate_missing=False`.
            Otherwise, gaps in the official reporting will be filled using interpolation and/or
            statistical estimation procedures (see below).
            If a list is given, the following logic is applied: For each storm, the variables that
            are not reported by the first agency for this storm are taken from the next agency in
            the list that did report this variable for this storm. For different storms, the same
            variable might be taken from different agencies.
            Default: ``['official_3h', 'usa', 'tokyo', 'newdelhi', 'reunion', 'bom', 'nadi',
            'wellington', 'cma', 'hko', 'ds824', 'td9636', 'td9635', 'neumann', 'mlc']``
        rescale_windspeeds : bool, optional
            If True, all wind speeds are linearly rescaled to 1-minute sustained winds.
            Note however that the IBTrACS documentation (Section 5.2,
            https://www.ncdc.noaa.gov/ibtracs/pdf/IBTrACS_version4_Technical_Details.pdf) includes
            a warning about this kind of conversion: "While a multiplicative factor can describe
            the numerical differences, there are procedural and observational differences between
            agencies that can change through time, which confounds the simple multiplicative
            factor." Default: True
        storm_id : str or list of str, optional
            IBTrACS ID of the storm, e.g. 1988234N13299, [1988234N13299, 1989260N11316].
        year_range : tuple (min_year, max_year), optional
            Year range to filter track selection. Default: None.
        basin : str, optional
            If given, select storms that have at least one position in the specified basin. This
            allows analysis of a given basin, but also means that basin-specific track sets should
            not be combined across basins since some storms will be in more than one set. If you
            would like to select storms by their (unique) genesis basin instead, use the parameter
            `genesis_basin`. For possible values (basin abbreviations), see the parameter
            `genesis_basin`. If None, this filter is not applied. Default: None.
        genesis_basin : str, optional
            The basin where a TC is formed is not defined in IBTrACS. However, this filter option
            allows to restrict to storms whose first valid eye position is in the specified basin,
            which simulates the genesis location. Note that the resulting genesis basin of a
            particular track may depend on the selected `provider` and on `estimate_missing`
            because only the first *valid* eye position is considered. Possible values are 'NA'
            (North Atlantic), 'SA' (South Atlantic), 'EP' (Eastern North Pacific, which includes
            the Central Pacific region), 'WP' (Western North Pacific), 'SP' (South Pacific),
            'SI' (South Indian), 'NI' (North Indian). If None, this filter is not applied.
            Default: None.
        interpolate_missing : bool, optional
            If True, interpolate temporal reporting gaps within a variable (such as pressure, wind
            speed, or radius) linearly if possible. Temporal interpolation is with respect to the
            time steps defined in IBTrACS for a particular storm. No new time steps are added that
            are not originally defined in IBTrACS.
            For each time step with a missing value, this procedure is only able to fill in that
            value if there are other time steps before and after this time step for which values
            have been reported.
            This procedure will be applied before the statistical estimations referred to
            by `estimate_missing`. It is applied to all variables (eye position, wind speed,
            environmental and central pressure, storm radius and radius of maximum winds).
            Default: True
        estimate_missing : bool, optional
            For each fixed time step, estimate missing pressure, wind speed and radius using other
            variables that are available at that time step.
            The relationships between the variables are purely statistical. In comparison to
            `interpolate_missing`, this procedure is able to estimate values for variables that
            haven't been reported by any agency at any time step, as long as other variables are
            available.
            A typical example are storms before 1950, for which there are often no reported values
            for pressure, but for wind speed. In this case, a rough statistical pressure-wind
            relationship is applied to estimate the missing pressure values from the available
            wind-speed values.
            Make sure to set `rescale_windspeeds=True` when using this option because the
            statistical relationships are calibrated using rescaled wind speeds.
            Default: False
        correct_pres : bool, optional
            For backwards compatibility, alias for `estimate_missing`.
            This is deprecated, use `estimate_missing` instead!
        discard_single_points : bool, optional
            Whether to discard tracks that consists of a single point. Recommended for full
            compatiblity with other functions such as `equal_timesteps`. Default: True.
        file_name : str, optional
            Name of NetCDF file to be dowloaded or located at climada/data/system.
            Default: 'IBTrACS.ALL.v04r00.nc'
        additional_variables : list of str, optional
            If specified, additional IBTrACS data variables are extracted, such as "nature" or
            "storm_speed". Only variables that are not agency-specific are supported.
            Default: None.
    
        Returns
        -------
        tracks : TCTracks
            TCTracks with data from IBTrACS
        """
        if correct_pres:
            LOGGER.warning("`correct_pres` is deprecated. "
                           "Use `estimate_missing` instead.")
            estimate_missing = True
        if estimate_missing and not rescale_windspeeds:
            LOGGER.warning(
                "Using `estimate_missing` without `rescale_windspeeds` is strongly discouraged!")
    
        ibtracs_path = SYSTEM_DIR.joinpath(file_name)
        if not ibtracs_path.is_file():
            try:
                download_ftp(f'{IBTRACS_URL}/{IBTRACS_FILE}', IBTRACS_FILE)
                shutil.move(IBTRACS_FILE, ibtracs_path)
            except ValueError as err:
>               raise ValueError(
                    f'Error while downloading {IBTRACS_URL}. Try to download it manually and '
                    f'put the file in {ibtracs_path}') from err
E               ValueError: Error while downloading https://www.ncei.noaa.gov/data/international-best-track-archive-for-climate-stewardship-ibtracs/v04r00/access/netcdf. Try to download it manually and put the file in /home/runner/climada/data/IBTrACS.ALL.v04r00.nc

../../../../micromamba/envs/climada_env_3.9/lib/python3.9/site-packages/climada/hazard/tc_tracks.py:462: ValueError

Check notice on line 0 in .github

See this annotation in the file changed.

@github-actions github-actions / Petals / Unit Test Results (3.9)

192 tests found

There are 192 tests, see "Raw output" for the full list of tests.
Raw output
climada_petals.engine.test.test_supplychain.TestSupplyChain ‑ test_calc_impacts
climada_petals.engine.test.test_supplychain.TestSupplyChain ‑ test_calc_shock_to_sectors
climada_petals.engine.test.test_supplychain.TestSupplyChain ‑ test_map_exp_to_mriot
climada_petals.engine.test.test_supplychain.TestSupplyChain ‑ test_read_wiot
climada_petals.engine.test.test_warn.TestWarn ‑ test_bin_map
climada_petals.engine.test.test_warn.TestWarn ‑ test_bin_map_negative_levels
climada_petals.engine.test.test_warn.TestWarn ‑ test_bin_map_non_increasing
climada_petals.engine.test.test_warn.TestWarn ‑ test_change_small_regions
climada_petals.engine.test.test_warn.TestWarn ‑ test_filtering
climada_petals.engine.test.test_warn.TestWarn ‑ test_from_hazard
climada_petals.engine.test.test_warn.TestWarn ‑ test_from_map
climada_petals.engine.test.test_warn.TestWarn ‑ test_generate_warn_map_combination
climada_petals.engine.test.test_warn.TestWarn ‑ test_generate_warn_map_functionality
climada_petals.engine.test.test_warn.TestWarn ‑ test_generate_warn_map_gradual_decr
climada_petals.engine.test.test_warn.TestWarn ‑ test_generate_warn_map_multiple_levels
climada_petals.engine.test.test_warn.TestWarn ‑ test_generate_warn_map_neutral_combination
climada_petals.engine.test.test_warn.TestWarn ‑ test_generate_warn_map_single_level
climada_petals.engine.test.test_warn.TestWarn ‑ test_group_cosmo_ensembles
climada_petals.engine.test.test_warn.TestWarn ‑ test_increase_levels
climada_petals.engine.test.test_warn.TestWarn ‑ test_plot_warning
climada_petals.engine.test.test_warn.TestWarn ‑ test_plot_warning_meteoswiss
climada_petals.engine.test.test_warn.TestWarn ‑ test_rectangle_shaped_map
climada_petals.engine.test.test_warn.TestWarn ‑ test_reset_levels
climada_petals.engine.test.test_warn.TestWarn ‑ test_reset_levels_float_error
climada_petals.engine.test.test_warn.TestWarn ‑ test_zeropadding
climada_petals.engine.test.test_warn.TestWarn ‑ test_zeropadding_island
climada_petals.engine.test.test_warn.TestWarn ‑ test_zeropadding_resolution_error
climada_petals.entity.exposures.test.test_black_marble.TestCountryIso ‑ test_bolivia_pass
climada_petals.entity.exposures.test.test_black_marble.TestCountryIso ‑ test_che_kos_pass
climada_petals.entity.exposures.test.test_black_marble.TestCountryIso ‑ test_haiti_pass
climada_petals.entity.exposures.test.test_black_marble.TestCountryIso ‑ test_korea_pass
climada_petals.entity.exposures.test.test_black_marble.TestCountryIso ‑ test_wrong_fail
climada_petals.entity.exposures.test.test_black_marble.TestEconIndices ‑ test_fill_econ_indicators_kwargs_pass
climada_petals.entity.exposures.test.test_black_marble.TestEconIndices ‑ test_fill_econ_indicators_na_pass
climada_petals.entity.exposures.test.test_black_marble.TestEconIndices ‑ test_fill_econ_indicators_pass
climada_petals.entity.exposures.test.test_black_marble.TestEconIndices ‑ test_set_econ_indicators_pass
climada_petals.entity.exposures.test.test_black_marble.TestNightLight ‑ test_cut_country_brb_1km_pass
climada_petals.entity.exposures.test.test_black_marble.TestNightLight ‑ test_cut_country_brb_2km_pass
climada_petals.entity.exposures.test.test_black_marble.TestProvinces ‑ test_country_iso_geom_pass
climada_petals.entity.exposures.test.test_black_marble.TestProvinces ‑ test_fill_admin1_geom_fail
climada_petals.entity.exposures.test.test_black_marble.TestProvinces ‑ test_fill_admin1_geom_pass
climada_petals.entity.exposures.test.test_black_marble.TestProvinces ‑ test_filter_admin1_pass
climada_petals.entity.exposures.test.test_crop_production.TestCropProduction ‑ test_from_area_and_yield_nc4
climada_petals.entity.exposures.test.test_crop_production.TestCropProduction ‑ test_isimip_load_central_EU
climada_petals.entity.exposures.test.test_crop_production.TestCropProduction ‑ test_normalize_with_fao_cp
climada_petals.entity.exposures.test.test_crop_production.TestCropProduction ‑ test_set_value_to_kcal
climada_petals.entity.exposures.test.test_crop_production.TestCropProduction ‑ test_set_value_to_usd
climada_petals.entity.exposures.test.test_crop_production.TestCropProduction ‑ test_value_to_kcal
climada_petals.entity.exposures.test.test_crop_production.TestCropProduction ‑ test_value_to_usd
climada_petals.entity.exposures.test.test_gdp_asset.TestGDP2AssetClass ‑ test_wrong_iso3_fail
climada_petals.entity.exposures.test.test_gdp_asset.TestGDP2AssetFunctions ‑ test_fast_impf_mapping
climada_petals.entity.exposures.test.test_gdp_asset.TestGDP2AssetFunctions ‑ test_read_GDP
climada_petals.entity.exposures.test.test_gdp_asset.TestGDP2AssetFunctions ‑ test_set_one_country
climada_petals.entity.exposures.test.test_osm_dataloader.TestOSMApiQuery ‑ test_area_to_queryformat
climada_petals.entity.exposures.test.test_osm_dataloader.TestOSMApiQuery ‑ test_assemble_from_nodes
climada_petals.entity.exposures.test.test_osm_dataloader.TestOSMApiQuery ‑ test_assemble_from_relations
climada_petals.entity.exposures.test.test_osm_dataloader.TestOSMApiQuery ‑ test_assemble_from_ways
climada_petals.entity.exposures.test.test_osm_dataloader.TestOSMApiQuery ‑ test_assemble_results
climada_petals.entity.exposures.test.test_osm_dataloader.TestOSMApiQuery ‑ test_get_data_overpass
climada_petals.entity.exposures.test.test_osm_dataloader.TestOSMApiQuery ‑ test_insistent_osm_api_query
climada_petals.entity.exposures.test.test_osm_dataloader.TestOSMApiQuery ‑ test_osm_geoms_to_gis
climada_petals.entity.exposures.test.test_osm_dataloader.TestOSMApiQuery ‑ test_osmqpiquery
climada_petals.entity.exposures.test.test_osm_dataloader.TestOSMApiQuery ‑ test_overpass_query_string
climada_petals.entity.exposures.test.test_osm_dataloader.TestOSMApiQuery ‑ test_update_availability
climada_petals.entity.exposures.test.test_spamagrar_unit.TestSetCountry ‑ test_all_names_given
climada_petals.entity.exposures.test.test_spamagrar_unit.TestSetCountry ‑ test_invalid_adm1
climada_petals.entity.exposures.test.test_spamagrar_unit.TestSetCountry ‑ test_invalid_adm2
climada_petals.entity.exposures.test.test_spamagrar_unit.TestSetCountry ‑ test_invalid_country
climada_petals.entity.exposures.test.test_spamagrar_unit.TestSetCountry ‑ test_iso3_country_name
climada_petals.entity.impact_funcs.test.test_fl.TestIFRiverFlood ‑ test_flood_imp_func_set
climada_petals.entity.impact_funcs.test.test_fl.TestIFRiverFlood ‑ test_region_Africa
climada_petals.entity.impact_funcs.test.test_fl.TestIFRiverFlood ‑ test_region_Asia
climada_petals.entity.impact_funcs.test.test_fl.TestIFRiverFlood ‑ test_region_Europe
climada_petals.entity.impact_funcs.test.test_fl.TestIFRiverFlood ‑ test_region_NorthAmerica
climada_petals.entity.impact_funcs.test.test_fl.TestIFRiverFlood ‑ test_region_Oceania
climada_petals.entity.impact_funcs.test.test_fl.TestIFRiverFlood ‑ test_region_SouthAmerica
climada_petals.entity.impact_funcs.test.test_wf.TestImpfWildfire ‑ test_default_values_FIRMS_pass
climada_petals.entity.impact_funcs.test.test_wf.TestImpfWildfire ‑ test_from_default_values_FIRMS_pass
climada_petals.hazard.emulator.test.test_emulator.TestEmulator ‑ test_event_pool
climada_petals.hazard.emulator.test.test_emulator.TestEmulator ‑ test_hazard_emulator
climada_petals.hazard.emulator.test.test_geo.TestGeo ‑ test_get_tc_basin_geometry
climada_petals.hazard.emulator.test.test_geo.TestGeo ‑ test_hazregion_centroids
climada_petals.hazard.emulator.test.test_geo.TestGeo ‑ test_init_hazregion
climada_petals.hazard.emulator.test.test_geo.TestGeo ‑ test_tc_region
climada_petals.hazard.emulator.test.test_random.TestRandom ‑ test_draw_poisson_events
climada_petals.hazard.emulator.test.test_random.TestRandom ‑ test_estimate_drop
climada_petals.hazard.emulator.test.test_stats.TestStats ‑ test_fit_data
climada_petals.hazard.emulator.test.test_stats.TestStats ‑ test_haz_max_events
climada_petals.hazard.emulator.test.test_stats.TestStats ‑ test_norm_seas_stats
climada_petals.hazard.emulator.test.test_stats.TestStats ‑ test_seasonal_average
climada_petals.hazard.emulator.test.test_stats.TestStats ‑ test_seasonal_statistics
climada_petals.hazard.rf_glofas.test.test_cds_glofas_downloader.TestGloFASRequest ‑ test_cleanup_download_dir
climada_petals.hazard.rf_glofas.test.test_cds_glofas_downloader.TestGloFASRequest ‑ test_forecast_filetype
climada_petals.hazard.rf_glofas.test.test_cds_glofas_downloader.TestGloFASRequest ‑ test_forecast_iter
climada_petals.hazard.rf_glofas.test.test_cds_glofas_downloader.TestGloFASRequest ‑ test_forecast_single
climada_petals.hazard.rf_glofas.test.test_cds_glofas_downloader.TestGloFASRequest ‑ test_forecast_wrong_date
climada_petals.hazard.rf_glofas.test.test_cds_glofas_downloader.TestGloFASRequest ‑ test_historical_iter
climada_petals.hazard.rf_glofas.test.test_cds_glofas_downloader.TestGloFASRequest ‑ test_historical_single
climada_petals.hazard.rf_glofas.test.test_cds_glofas_downloader.TestGloFASRequest ‑ test_historical_wrong_date
climada_petals.hazard.rf_glofas.test.test_cds_glofas_downloader.TestGloFASRequest ‑ test_request_single
climada_petals.hazard.rf_glofas.test.test_cds_glofas_downloader.TestGloFASRequest ‑ test_wrong_product
climada_petals.hazard.rf_glofas.test.test_rf_glofas.TestDaskClient ‑ test_dask_client
climada_petals.hazard.rf_glofas.test.test_rf_glofas.TestHazardSeriesFromDataset ‑ test_multi_dims
climada_petals.hazard.rf_glofas.test.test_rf_glofas.TestHazardSeriesFromDataset ‑ test_single_dim
climada_petals.hazard.rf_glofas.test.test_rf_glofas.TestHazardSeriesFromDataset ‑ test_single_hazard
climada_petals.hazard.rf_glofas.test.test_river_flood_computation.TestMaybeOpenDataArray ‑ test_file_is_closed
climada_petals.hazard.rf_glofas.test.test_river_flood_computation.TestMaybeOpenDataArray ‑ test_kwargs
climada_petals.hazard.rf_glofas.test.test_river_flood_computation.TestMaybeOpenDataArray ‑ test_with_arr
climada_petals.hazard.rf_glofas.test.test_river_flood_computation.TestMaybeOpenDataArray ‑ test_without_arr
climada_petals.hazard.rf_glofas.test.test_river_flood_computation.TestRiverFloodInundation ‑ test_apply_protection
climada_petals.hazard.rf_glofas.test.test_river_flood_computation.TestRiverFloodInundation ‑ test_clear_cache
climada_petals.hazard.rf_glofas.test.test_river_flood_computation.TestRiverFloodInundation ‑ test_compute_default
climada_petals.hazard.rf_glofas.test.test_river_flood_computation.TestRiverFloodInundation ‑ test_download_forecast
climada_petals.hazard.rf_glofas.test.test_river_flood_computation.TestRiverFloodInundation ‑ test_download_reanalysis
climada_petals.hazard.rf_glofas.test.test_river_flood_computation.TestRiverFloodInundation ‑ test_flood_depth
climada_petals.hazard.rf_glofas.test.test_river_flood_computation.TestRiverFloodInundation ‑ test_init
climada_petals.hazard.rf_glofas.test.test_river_flood_computation.TestRiverFloodInundation ‑ test_regrid
climada_petals.hazard.rf_glofas.test.test_river_flood_computation.TestRiverFloodInundation ‑ test_return_period
climada_petals.hazard.rf_glofas.test.test_river_flood_computation.TestRiverFloodInundation ‑ test_return_period_resample
climada_petals.hazard.rf_glofas.test.test_transform_ops.TestGlofasDownloadOps ‑ test_basic
climada_petals.hazard.rf_glofas.test.test_transform_ops.TestGlofasDownloadOps ‑ test_countries_area
climada_petals.hazard.rf_glofas.test.test_transform_ops.TestGlofasDownloadOps ‑ test_preprocess
climada_petals.hazard.rf_glofas.test.test_transform_ops.TestTransformOps ‑ test_apply_flopros
climada_petals.hazard.rf_glofas.test.test_transform_ops.TestTransformOps ‑ test_fit_gumbel_r
climada_petals.hazard.rf_glofas.test.test_transform_ops.TestTransformOps ‑ test_flood_depth
climada_petals.hazard.rf_glofas.test.test_transform_ops.TestTransformOps ‑ test_interpolate_space
climada_petals.hazard.rf_glofas.test.test_transform_ops.TestTransformOps ‑ test_max_from_isel
climada_petals.hazard.rf_glofas.test.test_transform_ops.TestTransformOps ‑ test_reindex
climada_petals.hazard.rf_glofas.test.test_transform_ops.TestTransformOps ‑ test_return_period
climada_petals.hazard.rf_glofas.test.test_transform_ops.TestTransformOps ‑ test_return_period_resample
climada_petals.hazard.rf_glofas.test.test_transform_ops.TestTransformOps ‑ test_save_file
climada_petals.hazard.rf_glofas.test.test_transform_ops.TestTransformOps ‑ test_sel_lon_lat_slice
climada_petals.hazard.test.test_drought.TestReader ‑ test
climada_petals.hazard.test.test_flood.TestRiverFlood ‑ test_NATearth_country_flood
climada_petals.hazard.test.test_flood.TestRiverFlood ‑ test_centroids_flood
climada_petals.hazard.test.test_flood.TestRiverFlood ‑ test_exact_area_selection_country
climada_petals.hazard.test.test_flood.TestRiverFlood ‑ test_exact_area_selection_region
climada_petals.hazard.test.test_flood.TestRiverFlood ‑ test_flooded_area
climada_petals.hazard.test.test_flood.TestRiverFlood ‑ test_isimip_country_flood
climada_petals.hazard.test.test_flood.TestRiverFlood ‑ test_meta_centroids_flood
climada_petals.hazard.test.test_flood.TestRiverFlood ‑ test_wrong_iso3_fail
climada_petals.hazard.test.test_landslide.TestLandslideModule ‑ test_from_hist
climada_petals.hazard.test.test_landslide.TestLandslideModule ‑ test_from_prob
climada_petals.hazard.test.test_landslide.TestLandslideModule ‑ test_sample_event_from_probs
climada_petals.hazard.test.test_landslide.TestLandslideModule ‑ test_sample_events
climada_petals.hazard.test.test_landslide.TestLandslideModule ‑ test_set_ls_hist
climada_petals.hazard.test.test_landslide.TestLandslideModule ‑ test_set_ls_prob
climada_petals.hazard.test.test_low_flow.TestDischargeDataHandling ‑ test_compute_threshold_grid
climada_petals.hazard.test.test_low_flow.TestDischargeDataHandling ‑ test_read_and_combine_nc
climada_petals.hazard.test.test_low_flow.TestDischargeDataHandling ‑ test_split_bbox
climada_petals.hazard.test.test_low_flow.TestLowFlowDummyData ‑ test_events_from_clusters_default
climada_petals.hazard.test.test_low_flow.TestLowFlowDummyData ‑ test_events_from_clusters_parameter
climada_petals.hazard.test.test_low_flow.TestLowFlowDummyData ‑ test_identify_clusters_default
climada_petals.hazard.test.test_low_flow.TestLowFlowDummyData ‑ test_unique_clusters
climada_petals.hazard.test.test_low_flow.TestLowFlowNETCDF ‑ test_combine_nc
climada_petals.hazard.test.test_low_flow.TestLowFlowNETCDF ‑ test_filter_events
climada_petals.hazard.test.test_low_flow.TestLowFlowNETCDF ‑ test_load_FR_all
climada_petals.hazard.test.test_relative_cropyield.TestRelativeCropyield ‑ test_load_EU_all
climada_petals.hazard.test.test_relative_cropyield.TestRelativeCropyield ‑ test_set_percentile_to_int
climada_petals.hazard.test.test_relative_cropyield.TestRelativeCropyield ‑ test_set_rel_yield
climada_petals.hazard.test.test_tc_rainfield.TestModel ‑ test_compute_rain_pass
climada_petals.hazard.test.test_tc_rainfield.TestModel ‑ test_qs_from_t_diff_level
climada_petals.hazard.test.test_tc_rainfield.TestModel ‑ test_r_from_t_same_level
climada_petals.hazard.test.test_tc_rainfield.TestModel ‑ test_rainfield_diff_time_steps
climada_petals.hazard.test.test_tc_rainfield.TestModel ‑ test_track_to_si
climada_petals.hazard.test.test_tc_rainfield.TestReader ‑ test_cross_antimeridian
climada_petals.hazard.test.test_tc_rainfield.TestReader ‑ test_from_file_pass
climada_petals.hazard.test.test_tc_rainfield.TestReader ‑ test_set_one_pass
climada_petals.hazard.test.test_tc_rainfield.TestReader ‑ test_tcr
climada_petals.hazard.test.test_tc_rainfield.TestReader ‑ test_two_files_pass
climada_petals.hazard.test.test_tc_surge_bathtub.TestTCSurgeBathtub ‑ test_cross_antimeridian
climada_petals.hazard.test.test_tc_surge_bathtub.TestTCSurgeBathtub ‑ test_fraction_on_land
climada_petals.hazard.test.test_tc_surge_bathtub.TestTCSurgeBathtub ‑ test_surge_from_track
climada_petals.hazard.test.test_tc_tracks_forecast.TestCXML ‑ test_custom_xsl
climada_petals.hazard.test.test_tc_tracks_forecast.TestCXML ‑ test_default_xsl
climada_petals.hazard.test.test_tc_tracks_forecast.TestECMWF ‑ test_ecmwf_multimessage
climada_petals.hazard.test.test_tc_tracks_forecast.TestECMWF ‑ test_ecmwf_multimessage_missing_timeperiod
climada_petals.hazard.test.test_tc_tracks_forecast.TestECMWF ‑ test_equal_timestep
climada_petals.hazard.test.test_tc_tracks_forecast.TestECMWF ‑ test_fetch_ecmwf
climada_petals.hazard.test.test_tc_tracks_forecast.TestECMWF ‑ test_hdf5_io
climada_petals.hazard.test.test_wildfire.TestMethodsFirms ‑ test_calc_bright_pass
climada_petals.hazard.test.test_wildfire.TestMethodsFirms ‑ test_centroids_pass
climada_petals.hazard.test.test_wildfire.TestMethodsFirms ‑ test_clean_firms_pass
climada_petals.hazard.test.test_wildfire.TestMethodsFirms ‑ test_firms_cluster_pass
climada_petals.hazard.test.test_wildfire.TestMethodsFirms ‑ test_firms_cons_days_1_pass
climada_petals.hazard.test.test_wildfire.TestMethodsFirms ‑ test_firms_cons_days_2_pass
climada_petals.hazard.test.test_wildfire.TestMethodsFirms ‑ test_firms_cons_days_3_pass
climada_petals.hazard.test.test_wildfire.TestMethodsFirms ‑ test_firms_fire_pass
climada_petals.hazard.test.test_wildfire.TestMethodsFirms ‑ test_firms_resolution_pass
climada_petals.hazard.test.test_wildfire.TestMethodsFirms ‑ test_iter_events_pass
climada_petals.hazard.test.test_wildfire.TestMethodsFirms ‑ test_set_frequency_pass
climada_petals.util.test.test_config.TestConfig ‑ test_petals_config_supersession