Design Document for NOAAFTP

NOAAFTP

AUTHOR: Tim Baltzer

Functional Summary:

Automatically transfer pending AVHRR scenes from the NOAA server.

Comments:

NOAAFTP will typically be called by a daemon in production.

Background:

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.

Requirements:

- 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.

Scope/Limitations:

UPDATESCH, AUDITSCH, and the acquisition software on VAXH must
be operational in order for NOAAFTP to work properly.

Overall design:

Algorithm:


Module Design(s):

NOAAFTP:

Automatically transfer pending scenes from the NOAA server.

PARAMETERS:

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.


Module Design(s):

NOAAFTP_DAEMON:

NOAAFTP_DAEMON periodically calls NOAAFTP in a continuous loop to transfer pending scenes from the NOAA server.

PARAMETERS:

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.

Testing criteria:

- 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.