Python Forum
Storing Python data output as a Netcdf file
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Storing Python data output as a Netcdf file
#1
Hi there,

I just derived values from a 3D matrix, which contains the dimensions of time (in years), latitude (64 lines), and longitude (128 lines). The values derived are for every grid cell (latitude and longitude) for each year for 140 years (so, LOTS of values in the output). I would like to store the output data (which, again, contains values for every grid cell) as a netcdf file and wanted to know how this can be done?

Secondly, does the creation of the file affect the original structure of my dataset? If so, is it possible to preserve the data in its current state (i.e. maintain the latitude/longitude structure)?

Also, does the command need to be written at the end of my code?

Any help would be greatly appreciated!
Reply


Messages In This Thread
Storing Python data output as a Netcdf file - by Lightning1800 - May-16-2018, 08:02 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  LLM data I/O - for storing notes Alkanet 0 320 Dec-19-2024, 09:08 AM
Last Post: Alkanet
  To fetch and iterate data from CSV file using python vyom1109 3 961 Aug-05-2024, 10:05 AM
Last Post: Pedroski55
  Storing data in readable place user_404_lost_and_found 4 1,380 Jul-22-2024, 06:14 AM
Last Post: Pedroski55
  Reading and storing a line of output from pexpect child eagerissac 1 6,500 Feb-20-2024, 05:51 AM
Last Post: ayoshittu
  Reading data from excel file –> process it >>then write to another excel output file Jennifer_Jone 0 2,074 Mar-14-2023, 07:59 PM
Last Post: Jennifer_Jone
  How to modify python script to append data on file using sql server 2019? ahmedbarbary 1 1,967 Aug-03-2022, 06:03 AM
Last Post: Pedroski55
  Storing variables into one file for use in multiple Jupyter notebooks devansing 1 2,709 Feb-05-2022, 10:04 AM
Last Post: ibreeden
  Formatting to output file Mark17 2 1,958 Jan-13-2022, 09:06 PM
Last Post: BashBedlam
Photo how I write the output into xml file in python? 3lnyn0 1 3,907 Oct-31-2021, 05:40 PM
Last Post: Gribouillis
  Showing and saving the output of a python file run through bash Rim 3 5,348 Oct-06-2021, 10:48 AM
Last Post: gerpark

Forum Jump:

User Panel Messages

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