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

Home » Public Forums » archive » mrd_struct failure for string values inside the VM
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: mrd_struct failure for string values inside the VM [message #90774 is a reply to message #90768] Tue, 14 April 2015 05:49 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
I can tell you why the problem is likely occuring but not how to fix it :-(

mrd_struct.pro creates a structure given a list of tag names and associated variables inside a program ( http://idlastro.gsfc.nasa.gov/ftp/pro/structure/mrd_struct.p ro ). By default, it uses EXECUTE() but it also has a less capable mode which does not use EXECUTE() and so can be used with the viriual machine. In this less capable mode, one supplies mrd_struct with the data type and dimensions of the variables rather than the variables themselves. I suspect FITSHEAD2STRUCT needs to be modified -- in a manner similar to mrdfits.pro -- so it can call mrd_struct in this less capable mode.


On Monday, April 13, 2015 at 1:42:28 PM UTC-4, vino wrote:
> Hi,
>
> I am trying to run a project in IDL VM. I am trying to convert fits headers into structures using the fitshead2struct.pro. My program fails at the MRD_STRUCT.pro, when the given tag values are strings, such as DATE_OBS.
>
> Can someone please help? Even an alternative to fitshead2struct is also welcome..
>
> This is all the error I receive from VM:
>
> 'ERROR - Invalid field value: ''
>
> Thanks in advance,
>
> Regards,
> Vino
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Help!!!!
Next Topic: Function graphics in a widget window

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

Current Time: Wed Oct 08 15:47:40 PDT 2025

Total time taken to generate the page: 0.00556 seconds