[Isocops] [Isocdev] Killex code change

DeMajistre, Bob Bob.DeMajistre at jhuapl.edu
Thu Jun 24 18:34:16 EDT 2010


I’ve gone through a close look at the results my changes to flux_calculate. I’ve been able to delude myself into believing everything is working with the changes in place. I’ve run all orbits through 79 with the new code and compared it to the old results. Comparisons are in my the monoe subdirectory of my work directory (/usr/local/ibex/work/bdemajistre/monoe).
monoe_change_orbits.ps
monoe_change_skymaps.ps

Here you’ll see three cases, the old stuff, the new stuff with the option “ogrid_delta=3” and “ogrid_delta=3.5”. My recommendation is that for future work, we use the killex option (the one I just implemented and is now the default) with “ogrid_delta=3.5”.  A more detailed description of what is going on here is below.

There will be small changes to the skymaps. In particular, a careful observer my have noticed a horizontal strip in the ESA 2 mono-energetic maps. This is a processing artifact that the new version fixes.

Please let your eyes rest lightly on these results.  I’ll take comments until COB Monday. By then if there is no objection, I will

 1.  commit the changes
 2.  replace the flux_cg.txt files in the id-base/sofest area with the reprocessed data
 3.  change the test sets for flux_calculate

I can also change the default value of ogrid_delta, but I’d like user comments before I do so.
I’ve attached some notes I took while spelunking that might be of use to some of you.

Now, the details. The path through flux_calculate that I’ve monkeyed with reads the flux_hs files, which are fluxes in the heliospheric system (moving WRT to IBEX) where the energies and directions reflect the change in reference frame. The code places these fluxes on a regular grid in both angle and energy.

The angular regridding precedes the energy regridding. The flux_hs files that I have been working with have been generated with the 6 degree cull, so the angular grid points slop around that 6 degree grid. Flux_calculate sets out a 2 degree grid, and then takes a weighted average of all the points within ogrid_delta of each gridpoint. With ogrid_delta=3, there are systematic cases where gridpoints are dropped, i.e., there are places where there is no data within 3 degrees of a given gridpoint. Bumping this up to 3.5 degrees seems to remove these holes for IBEX HI (all bets are off when it comes to LO). HOWEVER, with a 3 degree delta, you almost always have no more than one point on the old grid mapping to the new grid. At 3.5, though, there are some places where there are 2 points averaged together to build a given gridpoint. I don’t think this is a problem, but you should know about it if you’re looking at things carefully.

For the energy gridding, flux_calculate basically loops through each point on the ESA 6 angular grid, and finds all the points at the same angle at the other energies. It then does an interpolation of the old energies to the new energies. The old code, and the current code without killex, doesn’t really care how many points were actually on the old grid, so if data from  an ESA is absent, it would just fill in the hole with an interpolation.  For example, as is the case for orbit 79, if ESA 2 has been cut out by the cull, a flux at ESA 2 energy is extrapolated from the existing energies – this resulted in some pretty long extrapolations and introduces spikes in the data. Under killex, if there is no point with an energy near where your interpolating to, the fluxes and variances are zeroed. Near here is defined as “within the maximum velocity correction for that particular energy”.

In addition, using killex exposed the holes introduced by the ogrid_delta=3 setting. Because of the energy shift, there are systematic places in ESAs 2 and 3 where holes are introduced by ogrid_delta=3.  For example, at NEP=51 degrees, the grid almost all the ESA 2 points are eliminated. In this case, without killex set, a value for ESA 2 energy is manufactured from ESAs 3 and 4, which introduces a visible spike at 51 degrees. With killex set, fluxes (and variances) are zeroed instead. With killex set and ogrid_delta=3.5, the hole doesn’t exist and the spike disappears.

Comments on the change or the results are welcome. Again, unless I hear otherwise, I’ll assume approval at COB on Monday.

Bob

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sr.unh.edu/mailman/private/isocops/attachments/20100624/683a3115/attachment-0001.html 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: monoe_nolongex_notes.txt
Url: http://lists.sr.unh.edu/mailman/private/isocops/attachments/20100624/683a3115/attachment-0001.txt 
-------------- next part --------------

Please restrict discussions on this email list to non-ITAR sensitive topics.
_______________________________________________
Isocdev mailing list
Isocdev at lists.sr.unh.edu
http://lists.sr.unh.edu/mailman/listinfo/isocdev


More information about the Isocops mailing list