User Tools

Site Tools


shiccal

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
shiccal [2023/07/12 03:45] – fixed renaming code renoshiccal [2023/08/03 10:26] (current) reno
Line 9: Line 9:
 ===== Processing UV data ===== ===== Processing UV data =====
 The UV data must first be process before SHIC is able to ingest the data.  The UV data must first be process before SHIC is able to ingest the data. 
-  - Place the UV file and the corresponding UVR file inside the same directory, IE: <code>C:\SHICrivm\uvdata\temp</code>+  - Place the UV file and the corresponding UVR file inside the same directory, IE: <code>C:\SHICrivm\uvdata\###</code>
   - Run the UA Scan program and process one UV file at a time. **Note: once you click process, you must highlight one scan, then press SaveScans**   - Run the UA Scan program and process one UV file at a time. **Note: once you click process, you must highlight one scan, then press SaveScans**
-  - Run the following .bat file to rename the processed files (removed _YY from the end) <code | rename.bat>@echo off+  - Run the following .bat file to rename the processed files (removed _YY from the end) <code | rename.bat>@@echo off
 setlocal enabledelayedexpansion setlocal enabledelayedexpansion
- +set /p brewer="Enter Brewer #: " 
-set "folder=C:\SHICrivm\uvdata\temp" +set "folder=C:\SHICrivm\uvdata\%brewer%
-rem Set the folder to the correct location +for %%a in ("%folder%\*_*.%brewer%") do ( 
-for %%a in ("%folder%\*.*") do ( +    set "oldname=%%~nxa
-    set "name=%%~na+    set "newname=!oldname:_=!" 
-    set "name=!name:~0,7!" +    ren "%%a" "!newname!"
- if "!name:~0,2!"=="uv"+
- echo Skipping "%%a" +
- ) else if "!name:~0,2!"=="UV" ( +
- echo Skipping "%%a" +
- ) else ( +
- echo Renaming "%%a" to "!name!%%~xa" +
- ren "%%a" "!name!%%~xa" +
-+
 ) )
- 
-echo Done. 
  
 </code> </code>
-  - Move the .### files to <code>C:\SHICrivm\uvdata\###</code> 
   - Inside C:\SHICrivm\uvanalys, create a file, ###.dfa with the following inside.<code | ###.dfa>   - Inside C:\SHICrivm\uvanalys, create a file, ###.dfa with the following inside.<code | ###.dfa>
 ozonshi.dfa ozonshi.dfa
shiccal.1689133552.txt.gz · Last modified: 2023/07/12 03:45 by reno

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki