On Jul 29, 2009, at 2:47 AM, Manfred Hanke wrote: > Herbert Pablo wrote: >> So, I was trying your method and I ran into a little snag at step >> 4: newdata = get_model_counts(1); % You are getting the counts from >> the model you just fit >> I get the following error message: >> Unable to typecast Null_Type to Double_Type > > Are you sure that you have *just* fit your model? > At first sight, it seemed to me that you might not have evaluated > your model yet (if you did a new startup of ISIS and only > load_par'ed your parameter file). ISIS doesn't evaluate the model > every time you do a {plot,get}_model_{counts,flux}, but stores it > internally. If one hasn't *just* fit the model, one has to do at > least an > ()=eval_counts(); > to evaluate the model on the grid(s) defined by the data. > > However, I cannot reproduce your error with the situation described > above (with ISIS >=1.4.9-55). Which version of ISIS and S-Lang are > you using? Actually, we figured it out. get_model_counts returns NULL for the .err field of the structure, so that needs to be filed in before doing the define_counts. -Mike ---- You received this message because you are subscribed to the isis-users list. To unsubscribe, send a message to isis-users-request_at_email.domain.hiddenwith the first line of the message as: unsubscribeReceived on Wed Jul 29 2009 - 09:15:18 EDT
This archive was generated by hypermail 2.2.0 : Wed Jul 29 2009 - 12:37:30 EDT