Skip to content
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

Compare netCDF files against ODF using some simple scripts #26

Open
pramod-thupaki opened this issue Feb 12, 2021 · 3 comments
Open

Compare netCDF files against ODF using some simple scripts #26

pramod-thupaki opened this issue Feb 12, 2021 · 3 comments

Comments

@pramod-thupaki
Copy link
Contributor

The data conversion process from ODF to netCDF format has to be verified using an independent method. Script used can be in R/Python/Matlab; However it cannot use any of the packages used in creating the netCDF files.

@JessyBarrette
Copy link
Collaborator

A simple way would be to just parse the ODF header format and data directly by using a simple method like described here.

This method essentially parses the ODF header into a list of dictionaries.
Data can then be easily converted to a python pandas dataframe and python xarray dataset. Original attributes from the ODF format can be easily carried on to the xarray dataset which can be saved to a nc file easily.

@guillotp
Copy link
Collaborator

I can also perform some matlab code. I have alreay functions to parse ODF files. Double check from different sources should be efficient.

@JessyBarrette
Copy link
Collaborator

ODF parsing with through the R package OCE and developed Python method odf_parser.read() was tested on 2500 ODF files and suggested both methods agrees on the result! Comparison script can be find under projects/odf_transform/oce_comparison/compare_oce_vs_odf-read.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants