Open aallyn opened 1 year ago
I'm not seeing lines of code through 296, but this bit {'name': [], 'minDate': [], 'maxData': [], 'length': []}
can be thought of like a named list with empty vectors, an r analog would be: list("name" = c(), "minDate" = c(), "maxData" = c()", "length" = c())
I can't find where it is for broader context, but the error sounds like either the model doesn't contain that field/dimension or it has a different name and its throwing an error because they don't match up.
Hm...let's see if this works. Here's the line that seems to be giving the error. A bit weird that it happens there when it is just setting up an empty list?
Welp that link definitely did not go directly to the line...stand by haha
Huh...looks like the syntax is right because it does highlight the line if its in the first viewable section without having to click to see more. So, you don't see line 294/296 in ZarrCMIP6.py?
Nvm, I had scrolled past ZarrCMIP6.py and was expanding the other file. I think the error is happening here: https://github.com/gulfofmaine/sdm_workflow/pull/67/commits/a5e8e91f41bc519de669ce8432253950be59661d#diff-4781834eced6e7a695d26efa59e1e0fd025602c6c137561a23f7fbd2360cdd44L303-L309
Lines 303-309, 307 specifically.
Working now and processing all the files listed in source list. Once these download, will experiment with processing side of things
I made some slight edits to Matt's code. A couple changes to
fcts.py
to account for the Box weirdness and getting the paths to work out okay. Then, within the main workhorse scriptZarrCMIP6.py
I did the following:I am able to download and save the different files, expect for MIROC6 gave me a fit about not having depth? Then after the downloading and saving bits, on line 296 (
names = {'name': [], 'minDate': [], 'maxData': [], 'length': []}
is where I get an error thatname "name" is not defined
. It doesn't seem to make a difference in the actual accessing, processing and downloading, but does seem to toss a wrench in things so that it doesn't go to the next climate model member -- hence running manually one at a time.Thanks for checking it out!