Closed RuiningZHAO closed 6 years ago
1) Yeah, definitely feel free to ignore those warnings! Those come from the kplr module trying to interact with all the columns the MAST API is returning and having extra columns returned beyond what it's looking for. Has no effect on f3. There's a version of kplr floating around where this isn't an issue, but it's not the one on pip unfortunately.
2) With the default settings it takes just a few seconds on my machine. Hours is definitely a problem! The main sink here is that it has to loop through loading all the FFIs, which are big files. I guess my first check would be to make sure you have enough memory to be able to open the FFIs and they are located where you think they are on your hard drive (although if not I think it would fail, rather than hanging)
Thanks for your reply. I just checked again and found I did it in a right way even it took almost one hour. And also I timed the code in make_postcard() method line by line. It takes around 4s to load an individual FFI fits file with the fits.open() function in astropy.io and 13s for the line img = a[channel[season]].data
. These two lines domain the running time. So nothing goes wrong here. What I need may be a much more advanced machine. :) Thanks anyway.
Yeah, that's just your computer struggling to load a big file then, and there are 52 of those big files. Each of those takes a fraction of a second on my 2017 MBP, and the same on a late 2014 model. The only solution I've got for you is to download more ram (or manipulate the FFIs to have only the channel you care about, but you'll have to do that separately for every star you're interested in so that's just shifting your computation time to before you get to do the fun stuff).
Hi there, I have 2 questions about the second step, i.e., target.make_postcard() in the demo:
make_postcard
take typically, for my code always gets stuck in this step for hours.