Differences

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

Link to this comparison view

Both sides previous revision Previous revision
public:lta_tricks [2020-04-10 10:04]
Reinoud Bokhorst [Examples]
public:lta_tricks [2020-04-10 10:08] (current)
Reinoud Bokhorst [Examples]
Line 155: Line 155:
 The lines above must be added to each of the scripts below for these to work. The lines above must be added to each of the scripts below for these to work.
  
-This simple ​script will allow you to find all data within a single project, for example LC2_035. Please change the project name to the code of a project of yours. If you also want to stage the data you found, just set the do_stage variable to True. Be careful with how many files you stage and what size they have: the same limits as for the web interface apply here.+=== Ex: get staging URI's === 
 + 
 +This script will allow you to find all data within a single project, for example LC2_035. Please change the project name to the code of a project of yours. If you also want to stage the data you found, just set the do_stage variable to True. Be careful with how many files you stage and what size they have: the same limits as for the web interface apply here.
  
 <code python> <code python>
Line 197: Line 199:
  
 </​code>​ </​code>​
 +
 +=== Ex: filter on subbands ===
  
 The following script will find subbands 301 and 302 for all targets within two different projects. The following script will find subbands 301 and 302 for all targets within two different projects.
Line 252: Line 256:
         stager.stage_uris(uris[project])         stager.stage_uris(uris[project])
 </​code>​ </​code>​
 +
 +=== Ex: filter on frequency and observation date ===
  
 Here, we find data between freq1 and freq2 taken within one project between day1 and day2 Here, we find data between freq1 and freq2 taken within one project between day1 and day2
Line 302: Line 308:
 </​code>​ </​code>​
  
-=== Example; ​query public data ===+=== Ex: query public data ===
  
 Querying public data in projects you are not member of. First set project ALL, then construct a query and optionally limit the query to a certain project : Querying public data in projects you are not member of. First set project ALL, then construct a query and optionally limit the query to a certain project :
Line 314: Line 320:
 </​code>​ </​code>​
  
-=== Example; ​get release dates ===+=== Ex: get release dates ===
  
 <code python> <code python>
  • Last modified: 2020-04-10 10:08
  • by Reinoud Bokhorst