Python Forum
Converting units in NetCdf Files in Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Converting units in NetCdf Files in Python
#2
Who created the Netcdf (.nc) files?
If was you, try to create them setting the units attribute:
temp.units = "Celsius" #(or "C")
If not, I think you'll have to convert the values before creating the CSV:
temp_c = temp_k - 273.15
Reply


Messages In This Thread
RE: Converting units in NetCdf Files in Python - by gontajones - Jun-18-2018, 12:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Converting several Markdown files into DOCX using Pandoc Akule8 0 2,417 Feb-02-2023, 02:54 PM
Last Post: Akule8
  Converting python to FileMaker DWolf 6 3,022 Sep-22-2022, 03:40 AM
Last Post: DWolf
  combining netcdf data sebastiansieloff 1 2,709 Nov-19-2020, 03:59 PM
Last Post: Larz60+
  Converting python to c# benahmadi 1 3,386 Oct-22-2019, 09:50 PM
Last Post: micseydel
  converting array to and from string in python 3.7.2 srm 5 7,851 Jul-03-2019, 01:11 PM
Last Post: snippsat
  help with converting C# function to Python korenron 17 14,231 May-19-2019, 10:26 AM
Last Post: Gribouillis
  Converting R code to python mcva 2 13,774 Mar-09-2019, 04:01 PM
Last Post: mcva
  Selecting netcdf data files Jodman92 4 3,898 Nov-21-2018, 10:56 PM
Last Post: Larz60+
  converting from c# to python peper 1 3,616 Jun-12-2018, 05:19 PM
Last Post: micseydel
  Storing Python data output as a Netcdf file Lightning1800 1 3,179 May-16-2018, 10:14 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020