Three methods realization and explanation - Code JAVA¶
Attention: For better view, all the code pictures are captured by guanji in his git source, you can find the link at the end of the page. Thank you for your comprehension.¶
1 - Situation1 - One HMI-series to one target .fits file, ex: hmi.m_720s¶
Define the .fits file name and save the series and filename into hashmap as a fast index, other code in the git source¶
2 - Situation2 - One HMI-series to multi-targets .fits files, ex: hmi.sharp_720s_nrt¶
Define all target files into a Arraylist, create new object - FileOrderResource then loop all series and files name into a List<Object> listf which Object = FileOrderResource.¶
The code is annotated(// or /* */) as we will use the method 3, you can get the source code in the git source here : https://git.ias.u-psud.fr/gwang/Sitools2-V3.0/commits/dev-3¶
The create a hashmap which key value equals series name and the content equals the filelist,
Use if or switch to set and get the map values for creation of the reference list