-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor ProfileNetCDFWriter to include the dba to ngdac conversions #4
base: master
Are you sure you want to change the base?
Conversation
@Bobfrat Would it be a major pain to subclass ProfileNetCDFWriter to something like DbaProfileNetCDFWriter and just add this method? I really would like to keep the ProfileNetCDFWriter source-file-agnostic so that I/we don't have to keep adding methods to the class. Thoughts? |
yeah thats not a problem at all, I'll update this PR |
@kerfoot just made that update, can you have a look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- The ProfileNetCDFWriter class has a self._logger logger. Can you change all of the logging calls in the method to use the ProfileNetCDFWriter class logger?
- I've made some changes to the TrajectoryNetCDFWriter class for the navy work. Don't think there are conflicts but I'd like to push the changes before merging and test. Does that work for you?
@kerfoot sounds good on both comments |
@kerfoot I'm going to be importing this package into the upload tools code rather than running it from the command line, so this refactor will make it easier to use by putting most of the heavy lifting from
dba_to_ngdac_profile_nc.py
into theProfileNetCDFWriter
class.If you're ok with this, I can do the same with the other scripts:
dba_to_profile_nc.py
anddba_to_trajectory_nc.py