Skip to content

Big output values crowd out other columns #304

Description

@ashiklom

When SIPNET produces really large values for some variables, the fixed width of the columns means these values can get crowded out by adjacent columns (there are no spaces on which to separate the lines).

Here's an excerpt:

nUptake      ch4  nppStorage  bcdeltaC  bcdeltaN
   -nan     -nan-100031.5842      -nan      -nan
   -nan     -nan-100250.3078      -nan      -nan
   -nan     -nan-100560.4010      -nan      -nan
   -nan     -nan-100886.9315      -nan      -nan
   -nan     -nan-101101.1909      -nan      -nan

Notice how there's no space between ch4 and nppStorage values. (A more complete excerpt is below).

Conceptually, the simple fix is to replace fixed-width outputs with comma- or tab-separated values. That will require coincident fixes in PEcAn.SIPNET::model2netcdf.SIPNET, but the fix is straightforward (just an argument to read.table).

(I realize this shouldn't happen and the values here are probably unrealistically large indicating some configuration issue...but failure to parse the output file is not how one should find out about this).

Details
year day  time plantWoodC plantLeafC woodCreation     soil coarseRootC fineRootC   litter  soilWater soilWetnessFrac     snow      npp      nee   cumNEE      gpp rAboveground    rSoil    rRoot       ra       rh     rtot evapotranspiration fluxestranspiration     minN  soilOrgN    litterN       n2o nLeaching  nFixation  nUptake      ch4  nppStorage  bcdeltaC  bcdeltaN
2016 258 16.41 -100031.58   77298.51         0.00     -nan     5910.69   5783.85     -nan      6.913           0.581     0.00 -126.823      nan      nan    2.810      128.112     -nan    1.521  129.633     -nan     -nan         0.10872744              0.6179     -nan      -nan       -nan      -nan      -nan       -nan     -nan     -nan-100031.5842      -nan      -nan
2016 258 19.41 -100250.31   77421.07         0.00     -nan     5910.57   5783.57     -nan      6.807           0.572     0.00 -218.724      nan      nan    1.263      218.457     -nan    1.529  219.986     -nan     -nan         0.10567717              0.6084     -nan      -nan       -nan      -nan      -nan       -nan     -nan     -nan-100250.3078      -nan      -nan
2016 258 22.41 -100560.40   77543.63         0.00     -nan     5910.46   5783.30     -nan      6.703           0.563     0.00 -310.093      nan      nan    0.795      309.359     -nan    1.529  310.888     -nan     -nan         0.10487523              0.5991     -nan      -nan       -nan      -nan      -nan       -nan     -nan     -nan-100560.4010      -nan      -nan
2016 259  1.41 -100886.93   77666.17         0.00     -nan     5910.35   5783.03     -nan      6.597           0.554     0.00 -326.531      nan      nan    0.738      325.746     -nan    1.522  327.269     -nan     -nan         0.10575730              0.5898     -nan      -nan       -nan      -nan      -nan       -nan     -nan     -nan-100886.9315      -nan      -nan
2016 259  4.41 -101101.19   77788.72         0.00     -nan     5910.23   5782.76     -nan      6.498           0.546     0.00 -214.259      nan      nan    1.386      214.131     -nan    1.515  215.646     -nan     -nan         0.09916346              0.5805     -nan      -nan       -nan      -nan      -nan       -nan     -nan     -nan-101101.1909      -nan      -nan

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions