-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathABOS_ASFS_SOFS.py
More file actions
32 lines (17 loc) · 785 Bytes
/
Copy pathABOS_ASFS_SOFS.py
File metadata and controls
32 lines (17 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/env python
# -*- coding: utf-8 -*-
import sys,threading
import FTPGetter, StorageConnection
if __name__ == "__main__":
dfNeeded = True # needed if using the Datafabric
df = StorageConnection.StorageConnection()
if dfNeeded:
if df.connectDatafabric():
getter = FTPGetter.FTPGetter()
local_dir = "/mnt"
try:
pass #marty is replacing this with a script to sort as well
#getter.processDataset("ftp://ftp.bom.gov.au/register/bom404/outgoing/IMOS/MOORINGS", local_dir + "/opendap/ABOS/ASFS/SOFS",'','bom404','Vee8soxo', True, True, False)
except:
pass
getter.close()