public:lta_tricks

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revisionBoth sides next revision
public:lta_tricks [2020-07-21 13:53] – Updated link for Python stager API releases Thomas Jürgespublic:lta_tricks [2023-04-14 07:44] – Updated link to moved GitLab project Robbie Luijben
Line 160: Line 160:
     Observation     Observation
 from awlofar.toolbox.LtaStager import LtaStager, LtaStagerError from awlofar.toolbox.LtaStager import LtaStager, LtaStagerError
 +
  
 </code> </code>
Line 266: Line 267:
     for project in (project1, project2) :     for project in (project1, project2) :
         stager.stage_uris(uris[project])         stager.stage_uris(uris[project])
 +
  
 </code> </code>
Line 331: Line 333:
 print(len(query)) print(len(query))
 # 1800 # 1800
 +
  
 </code> </code>
Line 366: Line 369:
 for product in query_products : for product in query_products :
     print("Product: %s, %s, %s, %s" % (product.dataProductIdentifier, product.dataProductIdentifierSource, product.dataProductType, product.releaseDate))     print("Product: %s, %s, %s, %s" % (product.dataProductIdentifier, product.dataProductIdentifierSource, product.dataProductType, product.releaseDate))
 +
  
 </code> </code>
Line 371: Line 375:
 ===== Python Module for Staging ===== ===== Python Module for Staging =====
  
-The python interaction with the LTA catalog can be complemented with the use of a specific module developed to give users more control over their staging requests. The module is made available **[[https://git.astron.nl/ro/lofar_stager_api/-/releases|here]]** and its functions are mostly self-explanatory.+The python interaction with the LTA catalog can be complemented with the use of a specific module developed to give users more control over their staging requests. The module is made available **[[https://git.astron.nl/astron-sdc/lofar_stager_api/-/releases|here]]** and its functions are mostly self-explanatory.
  
 **Alternatively to the .awe/Environment.cfg described above, user credentials can also be provided via a file ~/.stagingrc with credentials of your Lofar account**, similar to ./wgetrc: **Alternatively to the .awe/Environment.cfg described above, user credentials can also be provided via a file ~/.stagingrc with credentials of your Lofar account**, similar to ./wgetrc:
  • Last modified: 2023-07-17 08:51
  • by Robbie Luijben