Ashar25 / RainyDay

0 stars 1 forks source link

Currently, a complete storm catalog is needed if CREATECATALOG is false #56

Open danielbwright opened 2 weeks ago

danielbwright commented 2 weeks ago

You cannot currently point RainyDay toward a partial storm catalog. For example, if you want to run RainyDay on only 5 storms, but the catalog was created with 220 storms, you get an error: ` catmax=catmax[catinclude]

IndexError: boolean index did not match indexed array along dimension 0; dimension is 220 but corresponding boolean dimension is 5`

It appears that RainyDay gets messed up when it takes catmax from the storm catalog files, which say there should be 220 storms, but only 5 files are found. We should set things so that RainyDay will run on an incomplete catalog made up of an abitrary set of nonconsecutive storm files (e.g., storms 1,2,3,219,220).