The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: character array writing to a netcdf
Replies: 2   Last Post: Jan 17, 2013 2:08 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 13
From: istanbul
Registered: 7/17/08
character array writing to a netcdf
Posted: Jan 17, 2013 9:46 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Dear members

i have the following part of a code where i want to fill a character variable of a netcdf file with a character array. The netcdf file is generated, all the numeric variables are created and filled correctly but the character variable is filled funny. What am i missing? Thanks in advance for any help.

StatNames=char('AM01','AT02','AT05','AT34','AT48','BE01','BE32','BE35','CH01','CH02','CH03','CH04','CH05','CY02','CZ01','CZ03','DE01', ...

StName=netcdf.defVar(ncid,'Station_name','char',[Ch StatNo]);

I am getting the following final variable when i check the final netcdf file:


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.