Porting OS X IDL 7.0 to Linux IDL 8.0 [message #77441] |
Tue, 30 August 2011 07:14 |
polystethylene
Messages: 28 Registered: February 2009
|
Junior Member |
|
|
Hello,
Run into a snag trying to run some code I wrote in IDL 7.0 on OS X.
Have copied it across to our linux system, which is now running IDL
8.0.
The code previously compiled with no errors, but now the following
lines are providing syntax errors:
image = READFITS(string(i+1,FORMAT='("exp",i03,".fits")'),header,/
SILENT)
^
% Syntax error.
At: /padata/pparc/pirate/IDLWorkspace/LCgen/doirafphot.pro, Line 239
image = READFITS(string(i+1,FORMAT='("'+string(calibprefix)
+'exp",i03,".fits")'),header,/SILENT)
^
% Syntax error.
At: /padata/pparc/pirate/IDLWorkspace/LCgen/doirafphot.pro, Line 276
masterfits = READFITS('master.fits',masterhdr,/SILENT)
^
% Syntax error.
At: /padata/pparc/pirate/IDLWorkspace/LCgen/doirafphot.pro, Line 339
forlintransplit = STRSPLIT(forlintranbody[i],/EXTRACT)
^
% Syntax error.
For some reason copying it into this window has moved the arrow to a
different part of each line. In my console, the arrow points to the
keywords in each case...
I've checked the 8.0 help files for STRSPLIT - and the keyword is the
same; the syntax for calling looks to be exactly the same, so what
problem does IDL have with my code here?
Regards,
Stef
|
|
|