[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #NFZ-507170]: Writing data to netcdf



Greetings!

What makes you think the other data (IVM density, etc.) are not saved/loaded 
correctly?

I'm also unclear why you're creating a 3D variable here of size 1214 x 1214 x 
Unlimited:

    tgrs_density = 
ncfile.createVariable('tgrs_density',np.float64,('time','lat','lon'))

if the data arrays only have 1214 total entries? Also the line

    tgrs_density[:,:,:]=edntotal

sets *all* the values in the output file to the one set of 1214 entries, 
repeating as necessary.

Ryan

> Good morning Ward,
> 
> attached is my current script discussed in the previous emails. The section
> of code where I attempt to make a netCDF file is near the end at line 485.
> I have also attached the data save as a .npz and the resulting netCDF. For
> the netCDF I attempted to set up longitude, latitude, and time as
> dimensions with IVM density, TGRS density, and gpstime as variables. from
> what i can tell only the latitude and longitude loaded correctly. Can you
> help me understand that I may have coded/formatted incorrectly. As a note
> all data should have a shape/length of 1214 for the time period I ran this
> across.
> 


Ticket Details
===================
Ticket ID: NFZ-507170
Department: Support netCDF
Priority: Critical
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.