comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » NCDF_ATTCOPY and typecasting
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
NCDF_ATTCOPY and typecasting [message #49798] Fri, 18 August 2006 10:26 Go to previous message
alexzcervantes@gmail. is currently offline  alexzcervantes@gmail.
Messages: 7
Registered: July 2006
Junior Member
Hello All,

I am newb to NetCDF and IDL so bear with me :)

Here's my situation:

I am reading in a data array of type FLOAT, and creating a new NetCDF
file and writing the data array to the new file in type BYTE. I can do
this fine. However, when I try to do a ncdf_attcopy on the variable
attributes from the float array to my new byte array, it fails. I do
know that when doing a varput, the datatype of the array and its
attributes need to be the same.

Does anyone know any way around this where I can maybe do a typecast
from float to byte using ncdf_attcopy?

Thanks in advance,
Alex
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: large 3D array plot
Next Topic: VECTOR_FIELD trouble

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 02:51:55 PDT 2025

Total time taken to generate the page: 0.00834 seconds