Skip to content

Commit

Permalink
merge divergent mapviewer code
Browse files Browse the repository at this point in the history
  • Loading branch information
drtobybrown committed Oct 24, 2024
2 parents 446a79f + 6797248 commit 91f7fdd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions gistPipeline/mapviewer/loadData.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ def loadData(self):
fits_file = self.dirprefix + "_AllSpectra.fits"

if os.path.isfile(hdf5_file):
print('Loading All Spectra for GAS SPX mode. This could take some time')
with h5py.File(hdf5_file, 'r') as f:
self.AllSpectra = f['SPEC'][:].T
else:
Expand Down
6 changes: 5 additions & 1 deletion gistPipeline/mapviewer/plotData.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ def plotMap(self, module, maptype):
# emissionLines
if module == "GAS":
val = self.gasResults[maptype][idxMap]
if "FLUX" in maptype:
val = np.log10(val)

try:
idx_AoNThreshold = np.where(
Expand Down Expand Up @@ -141,7 +143,9 @@ def plotMap(self, module, maptype):
cbar.solids.set_edgecolor("face")

# Define special labels
if maptype == "FLUX":
# if maptype == "FLUX":
# cbar.set_label("log( Flux )")
if "FLUX" in maptype:
cbar.set_label("log( Flux )")
elif maptype == "V":
cbar.set_label("v [km/s]")
Expand Down

0 comments on commit 91f7fdd

Please sign in to comment.