Was referencing a deleted object that caused problems.
Merge pull request #35 from aashish24/netcdfreader_fix

Was referencing a deleted object that caused problems.