EUMETCAST File Manager is a web application that organizes files received from EUMETCAST into date-based directories, manages disk space by automatically removing older data, and provides a monitoring interface for system resources.
Install the web app as a deamon in Linux or a service in Windows. You can run also the program in a console.
-
Access the web interface by opening your browser and navigating to:
http://localhost:7000
-
The port number can be modified in the configuration file.
Files received from EUMETCAST are automatically sorted into directories with the format YYYY/MM/DD
based on date information extracted from the filenames. The date in the filenames can be of the form YYYYMMDD or YYYYDDD. The system uses the configuration file to determine:
- Which files to process (based on filename patterns)
- Where to extract the date information from each filename
- The date format used in the filename
The system automatically monitors available disk space and removes the oldest data directories when free space falls below configured thresholds:
- For
/media/hugo/Vol4T
: Maintains at least 30% of free space - For
/media/hugo/Vol3T
: Maintains at least 20% of free space
The interface provides real-time monitoring of:
- CPU Activity: Current CPU usage statistics
- Disk Space: Available and used space for each configured disk
- Directory Listing: Shows the available date-based directories for each base path
The system is configured using a YAML file with the following key sections:
Define patterns for incoming files and how to extract date information:
filetemplates:
- filetemplate: "avhrr_*_noaa19.hrp.bz2"
startdate: 6
datelayout: YYYYMMDD
Each template specifies:
filetemplate
: Pattern to match filenamesstartdate
: Character position where the date information beginsdatelayout
: Format of the date in the filename (YYYYMMDD or YYYYDDD)
Directories where incoming files are stored and managed:
basepaths:
- /media/hugo/Vol4T/received/hvs-1/E1H-RDS-1
- /media/hugo/Vol4T/received/bas/E1B-TPG-1
Configure thresholds for available disk space:
disks:
- diskname: "/media/hugo/Vol4T"
freediskspace: 30
portnumber: 7000