Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Allow selecting output columns with --outvars

Aperta
#413 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@priyanshusky0 ci sta già lavorando.

Dal 21/10/2026.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
c
Ambito
data

Direzione di ricerca

Read the code that builds sipnet.out headers and writes their corresponding values, along with the sipnet.in and command-line option parsing. Trace how output formatting and units are currently preserved, then verify default and selected columns, CLI precedence, and invalid-name handling as the issue requests. Done means headers and data match the resolved selection, which is recorded in sipnet.config, and usage is documented.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

good first issue

SIPNET currently writes all variables to sipnet.out. Add an --outvars option so users can request only the variables needed for an analysis, reducing output size and unnecessary I/O.

Example:

sipnet -i sipnet.in --outvars gpp,nee,soilWater

Would write year, day, time, gpp, nee, and soilWater.

Acceptance criteria:

  • Accept comma-separated names matching existing output headers.
  • Always include year, day, and time, followed by requested variables in the specified order, without duplicates.
  • Default to all, preserving current output; also accept --outvars all explicitly.
  • Support outvars in sipnet.in, with CLI taking precedence.
  • Reject empty lists and unknown names before simulation, with an error listing valid names.
  • Record the resolved selection in sipnet.config.
  • Keep headers and data columns consistent, preserving existing formatting and units.
  • Document usage and verify defaults, selection, precedence, and invalid inputs.

Implementation suggestion: use a shared output-variable registry for headers and values to prevent them from diverging.

Scope is limited to existing variables in sipnet.out. No changes to model calculations, other output files, or downstream readers. Users requiring the full output schema can retain the default.

Lingua principale
C
Stelle
42
Fork
38
Merge medio
5g 12h
PR unite (30g)
12

Preparare l'ambiente

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 PecanProject/sipnet

Tutte le issue di PecanProject/sipnet

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.