Suggestions to make metrics more searchable

Aperta
#52 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@mhweber ci sta già lavorando.

Dal 25/9/2025.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

enhancement

It would be really helpful to include some helper functions that make metrics more searchable and usable within R. There are so many metrics at different scales (which is amazing!) that it can be overwhelming to find what is needed. Something like:

sc_get_metric_names(
    type = "climate",
    aoi = "watershed",
    source = "StreamCat",
    year = NULL,
    ....
)
  • type : different "types" of variables (e.g., climate, geologic, anthropogenic, other, etc.)
  • aoi: area of interest (catchment, watershed, etc)
  • source: source, either StreamCat or NLCD
  • year: year, relevant if source = "NLCD"
  • ...: Other arugments if relevant like state, region, etc.

Output could be a data frame (or tibble) and look something like:

    name        metric       aoi    source     type
1 name-1   temperature watershed StreamCat  climate
2 name-2 precipitation watershed StreamCat  climate

Vector arguments could be applied to the function, yielding something like

sc_get_metric_names(
    type = c("climate", "geologic"),
    aoi = c("watershed", "catchment"),
    source = "StreamCat",
    year = NULL,
    ....
)
    name        metric       aoi    source     type
1 name-1   temperature watershed StreamCat  climate
2 name-2 precipitation watershed StreamCat  climate
3 name-3   temperature catchment StreamCat  climate
4 name-4 precipitation catchment StreamCat  climate
5 name-5 calcium_oxide watershed StreamCat geologic
6 name-6 calcium_oxide catchment StreamCat geologic
Lingua principale
HTML
Stelle
42
Fork
15
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di USEPA/StreamCatTools

Tutte le issue di USEPA/StreamCatTools

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.