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

C~Scape Result Interface #919

Open
wants to merge 46 commits into
base: main
Choose a base branch
from
Open

C~Scape Result Interface #919

wants to merge 46 commits into from

Conversation

DanTanAtAims
Copy link
Collaborator

It would probably be best to go over this pull request in a meeting due to its size.

Loading C~scape Results

Results from C~scape can be loaded with the load_results function.

# Assumes NetCDFs are contained in result subdirectory (see example directory tree below)
rs = ADRIA.load_results(CScapeResultSet, "<path to data dir>")

# Retrieves NetCDFs from separate directory
rs = ADRIA.load_results(CScapeResultSet, "<path to data dir>", "<path to result directory>")

# Manually pass in a list of files to load as results
rs = ADRIA.load_results(CScapeResultSet, "<path to data dir>", ["netcdf_fn1", "netcdf_fn2", ...])

Functionality

result_interface.pdf

Available Metrics

  • Total Internal Larvae - ADRIA.metrics.total_internal_larvae(rs)
  • Location Internal Larvae - ADRIA.metrics.loc_internal_larvae(rs)
  • Total External Larvae - ADRIA.metrics.total_external_larvae(rs)
  • Location External Larvae - ADRIA.metrics.loc_external_larvae(rs)
  • Total Eggs Produced - ADRIA.metrics.total_eggs_produced(rs)
  • Location Eggs Produced - ADRIA.metrics.loc_eggs_produced(rs)
  • Total Settlers - ADRIA.metrics.total_settlers(rs)
  • Location Settlers - ADRIA.metrics.loc_settlers(rs)
  • Relative Location Taxa Cover - ADRIA.metrics.relative_loc_taxa_cover(rs)
  • Relative Taxa Cover - ADRIA.metrics.relative_taxa_cover(rs)
  • Relative Cover - ADRIA.metrics.relative_cover(rs)

Any metric that depends on the above also works.

DanTanAtAims and others added 30 commits February 10, 2025 13:53
Syntax highlighting in git client was not handling the '/' line break well
Precalculating data lengths reduces loading time from ~130 seconds to ~80 seconds
We want to read data into memory before any calculations, otherwise constant data streaming will slow everything down
Apply formatting to pass git checks
Add expected whitespace to stop linter from complaining.

Standardise mention of C~scape to "C~scape" to follow "official" stylisation.
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

Successfully merging this pull request may close these issues.

2 participants