Thank you for your time and help. I will post shortly, but I don't think that is the reason because even without target_domain file it gives NAN values. This is while the same domain but with coarser resolution it works ok.Thank you for uploading the information. The target domain itself and the command you issued are correct.
I am suspicious that your original datafile (history file) doesn't cover the entire area specified in your target_domain. Can you check the maximum and minimum latitude and longitude of your history file?