irfu / irfu-matlab

Matlab routines to work with space data, particularly with MMS and Cluster/CAA data. Also some general plasma routines.
56 stars 46 forks source link

Updated version check #60

Closed chasapis closed 3 years ago

chasapis commented 3 years ago

added a version check loop. It loads the highest version found Starts from 00 and goes up to 20 (update in the future if needed). Gives warning if there are multiple versions - only one file version should be in the servers.

thomas-nilsson-irfu commented 3 years ago

Dear @chasapis, following @vaivads e-mail (dated 2020-10-14T05:42) I have sent an invitation to your user which should allow you to merge this now.

I have but one comment for this lookup (perhaps it is better to use a dir("filename_v*.cdf") and then select to load only the highest file version number found instead of looping through all possible numbers. But I am not at all familiar with PSP and it file naming (perhaps there is some compatibility between versions to take into consideration).

-- Edit: Ah, now I saw you managed to merge it while I was writing this.. Then it is all good. :)

chasapis commented 3 years ago

You are correct, a dir is best, the current solution is very clunky. I'll update it with a dir instead when i get the chance.