Skip to contents

These accessor functions retrieve provenance, resolved query settings, and recorded diagnostic information from an object returned by gtropic_data().

gtropic_manifest() identifies the source datasets and files used in the retrieval, including their versions and checksums. Supplying the manifest to a later gtropic_data() call requests those same source files, provided they remain available.

gtropic_filters() reports the filters as resolved by the package, including selected ADM2 and storm identifiers, genesis-date bounds, years represented by the selected storms, the wind radius, and precipitation and flood window settings. These values support transparent reporting and quality assurance in downstream analyses. Resolved storm identifiers are unique STORM_ID values, the preferred keys for reproducible joins and grouping.

gtropic_warnings() returns diagnostic details retained with the result. This can include complete values that were abbreviated in a console warning, such as ADM2 units whose polygon membership varied over time. It is not a log of every warning that may have been emitted during retrieval.

gtropic_availability() returns structured source update schedules, known coverage, and the requested time range used for availability diagnostics.

Usage

gtropic_manifest(x)

gtropic_filters(x)

gtropic_warnings(x)

gtropic_availability(x)

Arguments

x

A gtropic_data object.

Value

gtropic_manifest() returns an object of class gtropic_manifest. gtropic_filters() returns a named gtropic_filters list of resolved query settings. List elements retain their complete values; printing shows a compact preview. gtropic_warnings() returns a named list of recorded diagnostics, which is empty when none were retained. gtropic_availability() returns a named list of source availability and coverage metadata.

See also

Examples

# \donttest{
res <- gtropic_data(WHO_ENTITY = "Philippines", date_range = c(2015, 2016))
#> Discovering datasets in collection "gtropic".
#> Downloading metadata/adm2.parquet.
#> Downloading 02_wind/storm_metadata/2015.parquet.
#> Downloading 02_wind/storm_metadata/2016.parquet.
#> Retrieving 17 files (315.8 MB) ; .
#> Downloading 02_wind/exposures/2015.parquet.
#> Downloading 02_wind/exposures/2016.parquet.
#> Downloading 02_wind/zero_pairs/2015.parquet.
#> Downloading 02_wind/zero_pairs/2016.parquet.
#> Downloading 04_precip/2015.parquet.
#> Downloading 04_precip/2016.parquet.
#> Warning: No non-missing precipitation values were returned for 1 selected ADM2 unit.
#> ! "2640588B23864872837062"
#> ℹ A known current source-data limitation can affect small or coastal ADM2 units
#>   when no ERA5-Land grid cell is assigned.
#> ℹ A future G-TROPIC dataset release is planned to fill these gaps using
#>   finer-resolution ERA5 precipitation data.
#> ℹ See `?gtropic_known_limitations`; complete identifiers are available from
#>   `gtropic_warnings()`.
#> Downloading 03_flood/2015.parquet.
#> Downloading 03_flood/2016.parquet.
#> Downloading 01_pop/2015.parquet.
#> Downloading 01_pop/2016.parquet.
#> Downloading 02_wind/storm_tracks/2015.parquet.
#> Downloading 02_wind/storm_tracks/2016.parquet.
#> Downloading metadata/codebook.json.
#> Downloading metadata/adm2_geometry_simplified.parquet.
manifest <- gtropic_manifest(res)
filters <- gtropic_filters(res)
diagnostics <- gtropic_warnings(res)
# }