Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output display format #147

Open
larissafranklin23 opened this issue Jun 15, 2023 · 4 comments
Open

Output display format #147

larissafranklin23 opened this issue Jun 15, 2023 · 4 comments

Comments

@larissafranklin23
Copy link

larissafranklin23 commented Jun 15, 2023

Hello,
I'm having some trouble to understand the format of my weathering output file.
I'm using this as my script:
spill1 = surface_point_line_spill(num_elements=2000, ## qtd de particulas
start_position=(-26.21,-11.99),
release_time=start_time,
end_position=(-26.64, -11.70),
end_release_time= start_time + gs.hours(5.1),
amount = 20464, ## default volume_units=m^3
substance=gs.GnomeOil(filename='bachequero-heavy_AD00100.json'),
units='m^3',
windage_range= (0.01,0.02),
windage_persist = 1)

And when I open it to check the number is really different:
image

The output format of the data is displaying too many decimal places. How do you handle these weathering readings?

@ChrisBarker-NOAA
Copy link
Contributor

The output is using all the precision of the internal floating point numbers: about 15 decimal digits, which is the default behaviour.

It is a CSV file, so if you load it into, e.g. Excel, you can display as many or as few digits as you like.

That being said, it is a bit silly to store this many digits -- I'll make an issue to limit the CSV output to a more reasonable number.

@larissafranklin23
Copy link
Author

Hello Chris, thank you.
I think I wasn't clear in my question.

I'm confused about the result because the amount that was spilled was 20464m^3, but when I look at my results, I find weathering results as evaporated, dispersed, sedimentation and other quantities that are larger than the originally spilled amount.

amount released = 20464, ## default volume_units=m^3
units='m^3',

For example, the result of one of the models run below:
evaporated: 2321608.9919537366
dispersed: 2178.419994947777
sedimentation: 111.26444704240757
beached: 25655.915887327097
floating: 3112104.1564391125

Is there any conversion that I need to do ?

@dylanrighi
Copy link
Contributor

dylanrighi commented Jun 15, 2023 via email

@ChrisBarker-NOAA
Copy link
Contributor

Thanks @dylanrighi -- that is correct -- we should put units in the head of that CSV file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants