-
Notifications
You must be signed in to change notification settings - Fork 10
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
Breaking: Add future data for worldclim and improve climate model handling #69
Conversation
Guess we need to update the tests for all of the changed types |
I still have to add and fix the tests. The file system for future worldclim is a little different than for current worldclim. For bioclimatic variables, there is just one file for all 19 bioclim variables, which are bands on the geotiff. For now I just dropped the layer argument on the |
Can we allow the layer argument here and validate it but not use it? Just for syntax consistency here with all the other bioclim things. |
What do you mean by validating? That layers should be an argument that would also be accepted by a signature with I can add a dispatch with layers and that just doesn't forward them to the actual function, but otherwise I don't really see how we can make it work consistently. A call like |
I mean we need to allow bioclim layer arguments and check they are actually bioclim names (as usual) so you can swap between bioclim data without changing the function call and always get a file download. Writing different file structure to disk is probably inevitable. But we could actually return a vector of the same filename repeated so the returned variable is consistent. Overall my point that consistency in In this case for me it would be cool if using the same code for Future or current Bioclim worked, just swapping the type. Users will of course have to adapt to the downloaded file being a different shape, but your |
Okay now I don't have anything more! Test failures are still this codecov issue. |
@rafaqz this is good to go as far as I'm concerned. |
Defines all climate models in a loop instead of manually. This is breaking because the types will have different names (right now there isn't a very consistent system).
Also adds future worldclim.