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

masking of cells in forecast file #67

Open
wsavran opened this issue Feb 11, 2021 · 1 comment
Open

masking of cells in forecast file #67

wsavran opened this issue Feb 11, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@wsavran
Copy link
Collaborator

wsavran commented Feb 11, 2021

current implementation masks an entire spatial cell and doesn't provide granular access to apply binning for individual space-magnitude cells. the csep1 forecast file allows individual space-magnitude cells to be masked, therefore this should be included

@wsavran wsavran self-assigned this Feb 11, 2021
@wsavran
Copy link
Collaborator Author

wsavran commented Feb 11, 2021

this can be potentially done by using a numpy masked_array to replace the data currently stored in the forecast. the mask can be populated on initialization of the forecast object, but should be stored/accessed from the region. this way other objects that use regions (eg., catalogs) can take advantage of this masking.

  1. mask is defined on the region data structure and used to query from data structure
  2. forecast uses mask to sum rates and other data manipulation tasks

@wsavran wsavran added the enhancement New feature or request label Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant