Open aileenfisher opened 1 month ago
Also in the --help figure-name
should be figure-out
(infraga_env) bash-4.2$ infraga plot map --help
/data/studies/apps/infraGA/infraga/plotting.py:79: SyntaxWarning: invalid escape sequence '\d'
grnd_ht = float(re.findall("\d+\.\d+",line)[0])
Usage: infraga plot map [OPTIONS]
Visualize arrivals or ray paths computed using infraga spherical methods on
a Cartopy map
Examples:
infraga plot map --arrivals ToyAtmo.arrivals.dat --plot-option amplitude --title 'Toy Atmo arrival amplitudes' --figure-name ToyAtmo.arrivals.png
infraga plot map --arrivals ToyAtmo.arrivals.dat --plot-option celerity --title 'Toy Atmo arrival celerity' --figure-name ToyAtmo.celerities.png
infraga plot map --ray-paths ToyAtmo.raypaths.dat --title 'Toy Atmo ray paths' --figure-name ToyAtmo.raypaths.png
Getting an error using the following commands with ToyAtmo.met and example.cnfg:
So I added print statement at line 775 in plotting.py:
lat_tick, lon_tick = int((lat_max - lat_min) / 5), int((lon_max - lon_min) / 5) print('######################', lat_min, lat_tick, lat_max) #AJF
in order to track down this error I was getting:
So the best I can figure, it's rounding down to lat_tick=0 in this equation:
lat_tick, lon_tick = int((lat_max - lat_min) / 5), int((lon_max - lon_min) / 5)
when lat_max=30 and lat_min=29 and for some reason (I don't know why) that's not aceptable. If I force lat_tick=1, I get past that ValueError.