Skip to content

Conversation

@BecCowley
Copy link
Owner

netCDFvars.csv file and handling updated to enable user to decide on output netcdf format.No need to re-code if the variable names stay the same. Variables can be made into variables, attributes or global attributes.

…attributes files. Separated out some utilities. Remove generate_nc_raw_file_att, no longer required. First draft.
…y code where we aren't writing test probes out. Also a whole lot of minor formatting edits in the code.
… Still need to check the salinity/conductivity names in older files. Will allow conversion of XCTD data too.

Because the data read now uses a dataframe, later handling of the data has also changed as variable types have changed.
…gging of data handling after variable parsing changed to a dataframe. Call to write_output_nc now has a default of None for the raw file (Turo).
…rom an incorrect negative value. The *raw.nc files have the corrected value in the longitude variable, so LONGITUDE_RAW needs to be reconciled back to the value retained in the histories section.
…e size array as the TEMP variable for the case when a PLA has been applied and now TEMP has missing data at the end of the profile.
…retains the platform code (callsign) even if empty.
…ft, sometimes from the right. Might be better to start using the 'time' field rather than these woce_date and woce_time fields.
…other than DEPTH_RAW). Eg, sound velocity, salinity etc.
… results when SYST is not in the surface parameters.
…o still have the histories section in the new format.
BecCowley added 27 commits June 6, 2025 12:46
Add automatic CSR flag addition on conversion
Add wire break test to conversion. Also fix some typos
… adjust write2netcdf.py to read from a csv file for the variables and attributes.
…f files common code between historic conversion and Turo conversion. Also a couple of bug fixes.
…ent types of data. Also add python notebook for parquet format checks.
Fix issues with HISTORY_PREVIOUS_VALUE handling as it contains differ…
Update reading of surface codes and some other variables to use the n…
Update handling of edited and raw profiles with different lengths, eg when there is a PLA flag
@BecCowley BecCowley merged commit d9f1774 into master Jul 24, 2025
0 of 2 checks passed
@BecCowley BecCowley deleted the XBTnewNCFormat branch July 24, 2025 02:04
BecCowley added a commit that referenced this pull request Jul 24, 2025
This reverts commit d9f1774, reversing
changes made to ce21802.
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

Successfully merging this pull request may close these issues.

2 participants