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

Raise error when no gridded data is loaded #212

Open
scotthavens opened this issue Jun 10, 2021 · 1 comment
Open

Raise error when no gridded data is loaded #212

scotthavens opened this issue Jun 10, 2021 · 1 comment

Comments

@scotthavens
Copy link
Contributor

When loading a gridded dataset whose domain does not match the topo.nc domain, it will show that 0 cells within model domain but SMRF will continue on and try to interpolate. Suggest raising an error to alert users that their input data doesn't match the model domain.

@scotthavens
Copy link
Contributor Author

HRRR
Just check if metadata is not empty.

metadata, data = wfr.data.hrrr.FileLoader(

WRF

self._logger.debug(

NetCDF

self._logger.debug('{} grid cells within model domain'.format(len(a)))

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

1 participant