-
Notifications
You must be signed in to change notification settings - Fork 1
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
Creation of functions to read non-WOD files #9
Comments
@BecCowley - I'm not clear on what @ChrisC28 thinks here but in general I use notebooks for all my code development. As a final product notebooks are useful for code workflow documentation, examples, and sharing results. For any often repeated tasks I usually take a simple approach of defining I'm not an expert on making proper python packages but I'd suggest that as we all build discrete functions the easiest way is to place mature functions into a shared |
@Thomas-Moore-Creative, thanks for this information. I'm happy to make notebooks, I haven't done it much before and hence my question about how they function together. I will follow your advice! Here are some notes from @ChrisC28 via email: Here's my current (basic) workflow with the WOD data in ragged array format: So, the dilemma I have is do we put the non-WOD data : As such, here's what I propose: |
Again, I'll note that my approaches might not be best-practice but suggesting you start testing functions in notebooks then once you are confident about a function you can put it into a You can define a local function in your Python Jupyter notebook by simply defining the function in a code cell. The function will then be available for use in subsequent cells. To call the function, simply include its name followed by parentheses and any required arguments. For example:
Note that local functions are only available within the same notebook where they are defined. To import functions from a local file, you can use the
Then you can call the function using |
@Thomas-Moore-Creative, thanks. |
List of issues that @BecCowley ran into while doing the conversion of AIMS csv CTD files from CSV to NETCDF format:
|
@ChrisC28 I have converted the MNF CTD data from the CARS region. Notes:
Will push my code to the repository with the other converters. They are now in the src/features folder, not in the notebooks. |
@BecCowley Awesome! Thanks for that. I'll try to get them into "the system" this week or next. Paul Sandry is interested in having those data availble for the ROAM data assimilation system. |
I need some clarity on the output from reading non-WOD files.
My current thoughts is to write a function for each file type and output the same structure (perhaps a dataframe) for each. Then any notebook could call the function to access the data ready for input into the mapping.
Question: are we creating our tools as notebooks as a standard, or ultimately producing *.py functions/definitions/tools?
Some notes:
The text was updated successfully, but these errors were encountered: