AUTHOR: Tim Baltzer
Automatically transfer pending AVHRR scenes from the NOAA server.
NOAAFTP will typically be called by a daemon in production.
DOMSAT scenes have historically been acquired via a stationary communications satellite dish. However, for the sake of future system maintenence, it has been deemed adventageous to acquire these scenes via ftp to a NOAA server. These scenes are available on the server for a 24 hour period. Much of the current MISSFTP code can be used as a template for NOAAFTP. Change from MISSFTP logic: Only try to download a scene if the current time is N minutes past the scene's acquisition time or schedule time. We will be able to get missed live SFL scenes because of this time delay, as well.
- Must key off of "Pend" in schedule listing (ignore "Miss", "Disk", and "None"). - Must never look in ingest log files like MISSFTP does (if possible). - Must be called by a daemon, will sleep for N minutes between executions. - This routine must find "Pend"ing DOMSAT scenes and also live SFL scenes that were not acquired via our dish. It should find SFL scenes marked in the schedule as "Pend" and N minutes past the scene's acquisition time.
UPDATESCH, AUDITSCH, and the acquisition software on VAXH must be operational in order for NOAAFTP to work properly.
- Move to the working directory. - Generate a copy of the master schedule. - Get the NOAA server password from a permissions protected file.for all lines in the master schedule do
- if (this is a "Pend"ing scene that is within the acquisition time range)
- Try 7 times to get the NOAA scene (first using the acquisition minute, then using the next 3 minutes and the previous 3 minutes).
- if (the scene was successfully downloaded)
- Generate a schedule update file to change the scene status from "Pend" to "Disk".
- Rename the scene so that it will be ingested by the ingest daemon.
- end if
- end if
end for - Return the user to their original directory.
Automatically transfer pending scenes from the NOAA server.
- TIME_ACQUIRE
- Acquire time. Time (in minutes from current time) to wait before checking if a local acquisition has occurred.
- LOGFILE
- Log file. Name of the log file to write all processing messages to. If defaulted, "noaaftp" within the ADAPSLOG directory will be used. LOGFILE will have a ;log extension.
NOAAFTP_DAEMON periodically calls NOAAFTP in a continuous loop to transfer pending scenes from the NOAA server.
- TIME_ACQUIRE
- Acquire time. Time (in minutes from current time) to wait before checking if a local acquisition has occurred.
- TIME_SLEEP
- Sleep time. The amount of time (in seconds) to sleep between executions of NOAAFTP.
- Test to make sure correct scenes are being returned from the schedule (pending scenes at the appropriate time). - Test to make sure scene does get downloaded from the NOAA server. - Test to make sure modify directive file is correctly generated (to change scene status to "acquired"). - Test to make sure that the scene id is successfully renamed to be ingested.