# netCDF for Temperatures

**URL:** https://discourse.oceanobservatories.org/t/netcdf-for-temperatures/86
**Category:** HelpDesk
**Tags:** cgsn
**Created:** [December 12, 2020, 4:49am UTC](https://discourse.oceanobservatories.org/t/netcdf-for-temperatures/86 "2020-12-12T04:49:43Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![jglatstein](https://avatars.discourse-cdn.com/v4/letter/j/87869e/32.png) [@jglatstein](https://discourse.oceanobservatories.org/u/jglatstein)
#### Post date: [December 12, 2020, 4:49am UTC](https://discourse.oceanobservatories.org/t/netcdf-for-temperatures/86/1 "2020-12-12T04:49:43Z")

</div>

Hi,

I’m trying to download Temperature (degC) information from one of the Coastal Pioneer profiler moorings via the online server. I selected the following parameters for download:

- Mooring: Coastal Pioneer: CP02PMCI
- Date range: 2015-05-01 to 2015-09-01
- variables requested: Temperature

These options led me to the following link:  
[https://opendap.oceanobservatories.org/async\_results/ivana@utexas.edu/20201212T040934428Z-CP02PMCI-WFP01-03-CTDPFK000-recovered\_wfp-ctdpf\_ckl\_wfp\_instrument\_recovered/](https://opendap.oceanobservatories.org/async_results/ivana@utexas.edu/20201212T040934428Z-CP02PMCI-WFP01-03-CTDPFK000-recovered_wfp-ctdpf_ckl_wfp_instrument_recovered/)

I use Python’s xarray package to work with netCDF files, and have attached screenshots of codes through a Jupyter Notebook. When I loaded the data, there was no data variable for the temperature available (see attached).

After that failure, I attempted to download all available parameters and got a data variable with the name temperature that has units of counts. This variable leads to a wild range for temperature values, but the the values look like they could be related to the actual temperature values in degC (see attached again).

How is the value of counts related to the value of degC? How can I download the temperatures for a given date range and for given profiler mooring via the OOI User Interface?

Thanks,

Ivana Escobar

---

<div class="post-metadata">

### Author: ![swhite](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.oceanobservatories.org/swhite/32/31_2.png) [@swhite](https://discourse.oceanobservatories.org/u/swhite)
#### Post date: [December 14, 2020, 8:12pm UTC](https://discourse.oceanobservatories.org/t/netcdf-for-temperatures/86/2 "2020-12-14T20:12:33Z")

</div>

The “temperature” variable is indeed the raw data. For the processed data in degrees Celsius, you need to use the “ctdpf\_ck\_seawater\_temperature” variable.

ctdpf\_ck\_seawater\_tempeature uses temperature (recorded in counts) and converts it using the instrument calibration values and the Data Processing Algorithm ctd\_sbe52mp\_tempwat.

---

<div class="post-metadata">

### Author: ![ivana](https://avatars.discourse-cdn.com/v4/letter/i/91b2a8/32.png) [@ivana](https://discourse.oceanobservatories.org/u/ivana)
#### Post date: [January 27, 2021, 7:18am UTC](https://discourse.oceanobservatories.org/t/netcdf-for-temperatures/86/3 "2021-01-27T07:18:35Z")

</div>

That’s exactly what I ended up doing after emailing for support. It would be nice to have a description linking the temperature and actual temperature values in the netCDF attributes.

Also is the temperature potential temperature?

---

<div class="post-metadata">

### Author: ![swhite](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.oceanobservatories.org/swhite/32/31_2.png) [@swhite](https://discourse.oceanobservatories.org/u/swhite)
#### Post date: [February 1, 2021, 10:06pm UTC](https://discourse.oceanobservatories.org/t/netcdf-for-temperatures/86/4 "2021-02-01T22:06:24Z")

</div>

This is not potential temperature.  
We do not have a Data Product Specification document for the data processing algorithm. The code was developed using the vendor documentation ([https://www.seabird.com/asset-get.download.jsa?id=54627862508](https://www.seabird.com/asset-get.download.jsa?id=54627862508)) (see page 37).

---

<div class="post-metadata">

### Author: ![swhite](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.oceanobservatories.org/swhite/32/31_2.png) [@swhite](https://discourse.oceanobservatories.org/u/swhite)
#### Post date: [February 1, 2021, 10:08pm UTC](https://discourse.oceanobservatories.org/t/netcdf-for-temperatures/86/5 "2021-02-01T22:08:30Z")

</div>

Were you able to figure out how to download particular time sets of data through the OOI Data Portal?

---

<div class="post-metadata">

### Author: ![swhite](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.oceanobservatories.org/swhite/32/31_2.png) [@swhite](https://discourse.oceanobservatories.org/u/swhite)
#### Post date: [July 2, 2021, 6:14pm UTC](https://discourse.oceanobservatories.org/t/netcdf-for-temperatures/86/6 "2021-07-02T18:14:22Z")

</div>


