46 | | * Currently it determines if raw data for a sensor exists by looking if there is e.g. hyperspectral/fenix/ dir. This should be changed so it actually looks for data files e.g. FENIX*.raw |
47 | | * This now works, except in cases where the raw images have been put in the wrong place. |
48 | | * Check if we have .hdr file and a .log file for every .raw file, and do something similar for other sensors. So basically check, if we do have a sensor as determined above, that all expected files are present. |
49 | | * This has (mostly) been implemented for all the hyperspectral sensors and the owl sensor. This check isn't necessary for other sensors as they only have one type of raw file (.scn for LiDAR, .raw for camera). |
50 | | * Note, there isn't currently a check to see that we have a hdr file for each raw file. |
51 | | * Check the database to get number of lines for a sensor, and check there are indeed this number |
| 46 | * ~~Currently it determines if raw data for a sensor exists by looking if there is e.g. hyperspectral/fenix/ dir. This should be changed so it actually looks for data files e.g. FENIX*.raw~~ |
| 47 | * ~~Check if we have .hdr file and a .log file for every .raw file, and do something similar for other sensors. So basically check, if we do have a sensor as determined above, that all expected files are present.~~ |
| 48 | * For the hawk and fenix hyperspectral sensors, there is a check to ensure that we have a .log and a .nav file for each .raw file in the raw directory. |
| 49 | * For the eagle sensor, there is a check to ensure that we have a .nav file for each .raw file but there is no need to check that we have a log file as these are kept in the hawk directory. |
| 50 | * For the owl sensor, there is a check to ensure we have a .nav file and a .hdr file for each .raw file but since there isn't always a .log file for each flight line (it's not compulsory), a check isn't necessary. |
| 51 | * For the camera and LiDAR sensor, there is no need to implement such a check as there is only one type of file for each of these sensors (.raw and .scn respectively). |
| 52 | * [FUTURE] Check the database to get number of lines for a sensor, and check there are indeed this number |
52 | 53 | * This can't be done yet, as there are often test lines flown by ops, which are not always entered in to the database. |
53 | 54 | * If can't find raw data, don't search for files pertaining to those sensors |
54 | 55 | * In the {{{Check for missing directories}}} section, hyperspectral/owl is looked for. This should be thermal/owl. This ties in with the point listed below when the project layout is built. This is due to incorrect key list in the folder_structure module. |
55 | 56 | * Currently, {{{proj_tidy.missing_directories}}} calls {{{folder_structure.FolderStructure}}}'s constructor, which returns a full list of the directories that are expected to be in the project directory. This could be changed by either adding another function to proj_tidy.py that looks for regex instead or changing the FolderStructure constructor so that it can just return the relevant directories if necessary. |
60 | | * There are common errors that ops do that we should integrate into proj_tidy to make unpacking easier. For example, the RCD raws are often not put into the rcd/raw_images/ dir, so we could do this automatically. |
| 63 | * ~~There are common errors that ops do that we should integrate into proj_tidy to make unpacking easier. For example, the RCD raws are often not put into the rcd/raw_images/ dir, so we could do this automatically.~~ |
| 64 | * When proj_tidy checks which sensors are present, for the RCD, it looks in {{{$projpath/camera/rcd/raw_images}}} and if none are found in there, looks in {{{$projpath/camera/rcd}}}. |
| 65 | * If they are then found in there AND the script is NOT being executed in just_checking mode, it will print an {{{mv}}} command to move the files to the correct place. |
| 66 | * If the script IS being run in just_checking mode, it will warn the user that they are in the wrong place but won't suggest any mv commands. |
| 67 | * If the .raw files aren't found in either {{{$projpath/camera/rcd}}} or {{{$projpath/camera/rcd/raw_images}}}, it will assume there are no camera raw files present. |