Skip to content

set location of "scales" files based on directory of graphics{,2}.pro#1

Open
kreardon wants to merge 2 commits intoBasilioRuiz:masterfrom
kreardon:myfork-master
Open

set location of "scales" files based on directory of graphics{,2}.pro#1
kreardon wants to merge 2 commits intoBasilioRuiz:masterfrom
kreardon:myfork-master

Conversation

@kreardon
Copy link

@kreardon kreardon commented May 22, 2017

Uses the Routine_Filepath function in IDL to find the location of the graphics2.pro/graphics.pro routine that is being executed. The program then looks for the "scales" file in that same directory.
This is not foolproof (e.g. if someone moves "scales" out of that directory) but is more robust than hardwiring the path in the graphics{,2}.pro files.

@kreardon kreardon changed the title sets location of scales based on directory of graphics2.pro set location of "scales" files based on directory of graphics{,2}.pro May 23, 2017
@kreardon
Copy link
Author

kreardon commented Jun 2, 2017

adjusted graphics.pro and graphics2.pro to deal with irregularly sampled spectral profiles (such as those produces by imaging spectrometers). The "unsampled" spectral points are set to -1, which causes sawtooth-like profiles when they are plotted. These changes avoid this problem by interpolating over these "invalid" points using only the valid (non-negative-one) points.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant