1
0
Fork 0

Added scaling using zscale

merge-requests/2/head
Michał Drzał 2022-06-26 22:39:17 +02:00 committed by GitHub
parent d931bb35fa
commit 3ac7685e4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@ import h5py
import json
import requests
from astropy.time import Time
from astropy.visualization import ZScaleInterval
C = 299792.458 # km/s
from modest import imshow
@ -112,7 +113,7 @@ def main():
site_location = wgs84.latlon(site["lat"], site["lon"], site["height"])
# Create plot
vmin, vmax = np.percentile(s.z, (5, 99.95))
vmin, vmax = ZScaleInterval().get_limits(s.z)
# Time limits
tmin, tmax = mdates.date2num(s.t[0]), mdates.date2num(s.t[-1])