Commit d925152a authored by Brian Ermold's avatar Brian Ermold
Browse files

Update to look for attribute name change from actual_wavelength to

centroid_wavelength in mfrsr.b1 files.

Hardcode path to IDL 8.6 until a better solution can be implemented.
parent cf8023c1
......@@ -620,8 +620,9 @@ void create_quicklooks (void)
* Create the name of the batch file, as well as the command
* Note that the output from IDL will go to stdout.
*/
sprintf (command, "%s/bin/idl", getenv ("IDL_DIR"));
sprintf (argument, "-em=%s/%s_batch.sav", getenv ("IDL_SAV_DIR"),
// sprintf (command, "%s/bin/idl", getenv ("IDL_DIR"));
sprintf (command, "/apps/base/rsi/idl86/bin/idl");
sprintf (argument, "-rt=%s/bytecode/%s_batch.sav", getenv("VAP_HOME"),
vapname);
/*
* Execute the IDL command. If successful, the exit of the
......@@ -902,9 +903,20 @@ void getWavelengthAttr (DATA *D)
B1,
0,
IN_CHN1 + r,
"actual_wavelength",
"centroid_wavelength",
NULL,
NULL);
if (foo == NULL) {
foo = (char *)bw_GetAttrValue (D,
B1,
0,
IN_CHN1 + r,
"actual_wavelength",
NULL,
NULL);
}
if (foo != NULL)
{
channels[r + 1] = atof (foo);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment