nafc
The Fisheries and Oceans Canada - Newfoundland and Labrador Region - North Atlantic Fisheries Centre
pfile(file, encoding='UTF-8', rename_variables=True, generate_extra_variables=True)
Parse DFO NAFC oceanography p-file format
The NAFC oceanography p-files format is according to the pfile documentation,:
- NAFC_Y2K_HEADER
- 3 single line 80 byte headers, the formats of which is described on an attached page.
- A variable length block of processing history information
- A line of channel name identifiers
- A start of data flag line -- DATA --
Parameters:
Name | Type | Description | Default |
---|---|---|---|
file |
str
|
file path |
required |
encoding |
str
|
file encoding. Defaults to "UTF-8". |
'UTF-8'
|
rename_variables |
bool
|
Rename variables to BODC standard. Defaults to True. |
True
|
generate_extra_variables |
bool
|
Generate extra BODC mapping variables. Defaults to True. |
True
|
Raises:
Type | Description |
---|---|
TypeError
|
File provided isn't a p file. |
Returns:
Type | Description |
---|---|
xr.Dataset
|
xr.Dataset: Parser dataset |
Source code in ocean_data_parser/parsers/dfo/nafc.py
231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 |
|
p-files vocabulary
legacy_p_code | accepted_instruments | apply_func | seabird_name | variable_name | long_name | units | sdn_uom_urn | sdn_uom_name | instrument | comments | sdn_parameter_urn | sdn_parameter_name | bodc_alternative_label | definition | standard_name | coverage_content_type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cond | c0S/m | CNDCST01 | Conductivity | S/m | SDN:P06::UECA | Siemens per metre | 1st sensor | SDN:P01::CNDCST01 | Electrical conductivity of the water body by CTD | CTDCond | sea_water_electrical_conductivity | physicalMeasurement | ||||
cond2 | c1S/m | CNDCST02 | Conductivity, 2 | S/m | SDN:P06::UECA | Siemens per metre | 2nd sensor | SDN:P01::CNDCST02 | Electrical conductivity of the water body by CTD (sensor 2) | CTDCond2 | sea_water_electrical_conductivity | physicalMeasurement | ||||
flor | CPHLPR01 | Fluorescence | mg/m^3 | SDN:P06::UMMC | Milligrams per cubic metre | 1st sensor | SDN:P01::CPHLPR01 | Concentration of chlorophyll-a {chl-a CAS 479-61-8} per unit volume of the water body [particulate >unknown phase] by in-situ chlorophyll fluorometer | chl-a_water_ISfluor | In-situ fluorometer with either manufacturer, laboratory or sample calibration applied. | mass_concentration_of_chlorophyll_a_in_sea_water | physicalMeasurement | ||||
flor | WET Labs ECO-AFL/FL |
flECO-AFL | Fluorescence, Wet Labs Eco-Afl/Fl | mg/m^3 | SDN:P06::UMMC | Milligrams per cubic metre | WET Labs ECO-AFL/FL | 1st sensor | mass_concentration_of_chlorophyll_a_in_sea_water | physicalMeasurement | ||||||
flor | Chelsea Aqua 3 Chl Con |
flC | Fluorescence, Chelsea Aqua 3 Chl Con | mg/m^3 | SDN:P06::UGPL | Micrograms per litre | Chelsea Aqua 3 Chl Con | 1st sensor | mass_concentration_of_chlorophyll_a_in_sea_water | physicalMeasurement | ||||||
oxy | sbeox0ML/L | DOXYSU01 | Oxygen, SBE 43 | ml/l | SDN:P06::UMLL | Millilitres per litre | SBE 43 | 1st sensor | SDN:P01::DOXYSU01 | Concentration of oxygen {O2 CAS 7782-44-7} per unit volume of the water body [dissolved plus reactive particulate phase] by Sea-Bird SBE 43 sensor and no calibration against sample data | WC_dissO2_uncalib | Sea-Bird SBE 43 oxygen sensor with no field calibration against sample data | volume_fraction_of_oxygen_in_sea_water | physicalMeasurement | ||
oxy | sbeox0ML/L | DOXYZZ01 | Oxygen, SBE 43 | ml/l | SDN:P06::UMLL | Millilitres per litre | SBE 43 | 1st sensor | SDN:P01::DOXYZZ01 | Concentration of oxygen {O2 CAS 7782-44-7} per unit volume of the water body [dissolved plus reactive particulate phase] by in-situ sensor | WC_dissO2_IS | Unspecified type of oxygen sensor with no information on whether it has been calibrated against sample data | volume_fraction_of_oxygen_in_sea_water | physicalMeasurement | ||
oxy2 | sbeox1ML/L | DOXYSU02 | Oxygen, SBE 43, 2 | ml/l | SDN:P06::UMLL | Millilitres per litre | SBE 43 | 2nd sensor | SDN:P01::DOXYSU02 | Concentration of oxygen {O2 CAS 7782-44-7} per unit volume of the water body [dissolved plus reactive particulate phase] by Sea-Bird SBE 43 sensor (second sensor) and no calibration against sample data | WC_dissO2_uncalib2 | Secondary Sea-Bird SBE 43 oxygen sensor with no field calibration against sample data | volume_fraction_of_oxygen_in_sea_water | physicalMeasurement | ||
oxy2 | sbeox1ML/L | DOXYZZ02 | Oxygen, SBE 43, 2 | ml/l | SDN:P06::UMLL | Millilitres per litre | SBE 43 | 2nd sensor | SDN:P01::DOXYZZ02 | Concentration of oxygen {O2 CAS 7782-44-7} per unit volume of the water body [dissolved plus reactive particulate phase] by in-situ sensor | WC_dissO2_IS_2 | Unspecified type of oxygen sensor with no information on whether it has been calibrated against sample data | volume_fraction_of_oxygen_in_sea_water | physicalMeasurement | ||
oxypsat | oxsatML/L | OXYSZZ01 | Oxygen Saturation, Weiss | ml/l | SDN:P06::UMLL | Millilitres per litre | Weiss | SDN:P01::OXYSZZ01 | Saturation of oxygen {O2 CAS 7782-44-7} in the water body [dissolved plus reactive particulate phase] | O2Sat | Computed (algorithm/data source unspecified) | physicalMeasurement | ||||
par | par | DWIRRXUD | Par/Irradiance, Biospherical/Licor | µeinsteins/s/m^2 | downwelling_photon_spherical_irradiance_in_sea_water | Biospherical/Licor | Biospherical, Licor, or Chelsea sensor; 1st sensor | SDN:P01::DWIRRXUD | Downwelling vector irradiance as energy of electromagnetic radiation (PAR wavelengths) in the water body by cosine-collector radiometer | SubSurDWVectPAR | downwelling_photon_spherical_irradiance_in_sea_water | physicalMeasurement | ||||
par | Biospherical/Licor |
par | DWIRRXUD | Par/Irradiance, Biospherical/Licor | µeinsteins/s/m^2 | downwelling_photon_spherical_irradiance_in_sea_water | Biospherical/Licor | Biospherical, Licor, or Chelsea sensor; 1st sensor | SDN:P01::DWIRRXUD | Downwelling vector irradiance as energy of electromagnetic radiation (PAR wavelengths) in the water body by cosine-collector radiometer | SubSurDWVectPAR | downwelling_photon_spherical_irradiance_in_sea_water | physicalMeasurement | |||
ph | ph | PHXXZZXX | pH | SDN:P06::UUPH | pH units | SDN:P01::PHXXZZXX | pH (unspecified scale) of the water body | pH | Minus the log of the hydrogen ion concentration (moles per litre) in the water column. | sea_water_ph_reported_on_total_scale | physicalMeasurement | |||||
pH | ph | PHXXZZXX | pH | SDN:P06::UUPH | pH units | SDN:P01::PHXXZZXX | pH (unspecified scale) of the water body | pH | Minus the log of the hydrogen ion concentration (moles per litre) in the water column. | sea_water_ph_reported_on_total_scale | physicalMeasurement | |||||
pres | prDM | PRESPR01 | Pressure, Digiquartz | dbar | SDN:P06::UPBL | Decibar | Digiquartz | Digiquartz pressure sensor | SDN:P01::PRESPR01 | Pressure (spatial coordinate) exerted by the water body by profiling pressure sensor and correction to read zero at sea level | Pres_Z | The force per unit area exerted by the water column on a mobile sensor located in the water column. | sea_water_pressure | physicalMeasurement | ||
pres | -gsw.z_from_p(pres,latitude) | depth | depth | m | SDN:P06::ULAA | Metres | depth | coordinate | ||||||||
sal | sal00 | PSALST01 | Salinity, Practical | PSU | SDN:P06::UUUU | Dimensionless | 1st sensor | SDN:P01::PSALST01 | Practical salinity of the water body by CTD and computation using UNESCO 1983 algorithm | P_sal_CTD | This is the preferred term for this definition. Alternative term PSALST02 is included to cover cases where there are two sensors of the same type contributing to the data set and referential integrity considerations prevent a usage of a single code. | sea_water_practical_salinity | physicalMeasurement | |||
sal2 | sal11 | PSALST02 | Salinity, Practical, 2 | PSU | SDN:P06::UUUU | Dimensionless | 2nd sensor | SDN:P01::PSALST02 | Practical salinity of the water body by CTD (second sensor) and computation using UNESCO 1983 algorithm | P_sal_CTD2 | This is the alternative term for this definition. Only use to cover cases where there are two sensors of the same type contributing to the data set and referential integrity considerations prevent a usage of a single code. | sea_water_practical_salinity | physicalMeasurement | |||
scan | scan | scan | Scan Count | physicalMeasurement | ||||||||||||
sig | sigma-t00 | SIGTEQST | Density | kg/m^3 | SDN:P06::UKMC | Kilograms per cubic metre | 1st sensor | SDN:P01::SIGTEQST | Sigma-T of the water body by computation from salinity and temperature using UNESCO algorithm | Sigma-T | Computed by UNESCO SVAN function using in-situ temperature | sea_water_sigma_t | physicalMeasurement | |||
sig2 | sigma-t11 | SIGTEQST | Density 2 [sigma-t] | kg/m^3 | SDN:P06::UKMC | Kilograms per cubic metre | 2nd sensor | SDN:P01::SIGTEQST | Sigma-T of the water body by computation from salinity and temperature using UNESCO algorithm | Sigma-T | Computed by UNESCO SVAN function using in-situ temperature | sea_water_sigma_t | physicalMeasurement | |||
temp | t090C | TEMPS901 | Temperature [ITS-90] | degrees_celsius | SDN:P06::UPAA | Degrees Celsius | 1st sensor | SDN:P01::TEMPS901 | Temperature (ITS-90) of the water body by CTD or STD | CTDTmp90 | sea_water_temperature | physicalMeasurement | ||||
temp2 | t190C | TEMPS902 | Temperature, 2 | degrees_celsius | SDN:P06::UPAA | Degrees Celsius | 2nd sensor | SDN:P01::TEMPS902 | Temperature (ITS-90) of the water body by CTD or STD (second sensor) | CTDTmp90_2 | sea_water_temperature | physicalMeasurement | ||||
tra | CStarAt0 | ATTNZS01 | Beam Attenuation, Wet Labs C-Star | 1/m | SDN:P06::UPRM | per metre | WET Labs C-Star | 1st sensor | SDN:P01::ATTNZS01 | Attenuation (red light wavelength) per unit length of the water body by WET Labs transmissometer and calibration to read zero in clear water | RedPWCorr | WET Labs transmissometer calibrated to zero in clear water | volume_beam_attenuation_coefficient_of_radiative_flux_in_sea_water | physicalMeasurement | ||
trp | CStarTr0 | OPTCPS01 | Beam Transmission, Wet Labs C-Star | % | SDN:P06::UPCT | Percent | WET Labs C-Star | 1st sensor | SDN:P01::OPTCPS01 | Transmittance (red light wavelength) per unit length of the water body | TransmRedLight | physicalMeasurement | ||||
wet | wetCDOM | CCOMD002 | Fluorescence, Wet Labs CDOM | mg/m^3 | SDN:P06::UMMC | Milligrams per cubic metre | WET Labs CDOM | 1st sensor | SDN:P01::CCOMD002 | Concentration of coloured dissolved organic matter {CDOM Gelbstoff} per unit volume of the water body [dissolved plus reactive particulate phase] by in-situ WET Labs FDOM ECO fluorometer | CDOM_fluor_WETLabs | Quantity or mass of the specified analyte in a unit volume of an unfiltered sample of fresh or salt water. | concentration_of_colored_dissolved_organic_matter_in_sea_water_expressed_as_equivalent_mass_fraction_of_quinine_sulfate_dihydrate | physicalMeasurement | ||
sigt | SIGTEQST | Sigma-T | kg/m^3 | SDN:P06::UKMC | Kilograms per cubic metre | SDN:P01::SIGTEQST | Sigma-T of the water body by computation from salinity and temperature using UNESCO algorithm | Sigma-T | Computed by UNESCO SVAN function using in-situ temperature | sea_water_sigma_t | physicalMeasurement | |||||
sigmat | SIGTEQST | Sigma-T | kg/m^3 | SDN:P06::UKMC | Kilograms per cubic metre | SDN:P01::SIGTEQST | Sigma-T of the water body by computation from salinity and temperature using UNESCO algorithm | Sigma-T | Computed by UNESCO SVAN function using in-situ temperature | sea_water_sigma_t | physicalMeasurement | |||||
time | time | Time | time | coordinate | ||||||||||||
latitude | latitude | Latitude | degrees_north | SDN:P06::DEGN | Degrees north | latitude | coordinate | |||||||||
longitude | longitude | Longitude | degrees_east | SDN:P06::DEGN | Degrees east | longitude | coordinate | |||||||||
index | index | P-File Data Row | auxiliaryInformation |