1 / 8

NHSC PACS

NHSC PACS. How to U se getObservation And saveObservation To Access and Save Herschel Data in HIPE Yi Mei (NHSC/Caltech). Y. Mei NHSC Data Workshop – August 26 th – 30 th 2013 Access PACS data.

tannar
Télécharger la présentation

NHSC PACS

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. NHSC PACS How to Use getObservation And saveObservation To Access and Save Herschel Data in HIPE Yi Mei (NHSC/Caltech) Y. Mei NHSC Data Workshop – August 26th – 30th 2013 Access PACS data

  2. Introduction • In HIPE (Herschel Interactive Processing Environment), one needs to access and save Herschel data. • There are multiple different methods, mainly in GUI or command-line. E.g., the Herschel Science Archive User Interface (HUI) or Product Brower are GUIs. One can also run commands either in the Console or in scripts. • Herschel develops those methods to benefit people with different preferences. • The advantages of the command-line/script method: • Straight forward input parameter control • Can be saved and reused in the scripts • Scripts can have features GUI don’t, like loop, batch jobs, and so on • Two basic commands for Herschel data accessing and saving: • The command getObservation to load data into HIPE. • The command saveObservation to save data from HIPE to disk. Y. Mei NHSC Data Workshop – August 26th – 30th 2013 Access PACS data

  3. Use Case: You have searched the Herschel Archive (HSA), and downloaded an observation tar ball to your computer. You would like to load the observation into HIPE via the command line. How to load the HSA tar ball into HIPE How: After untar the HSA tar ball and extract the content into any directory, type the command in the Console: to load the observation into HIPE. E.g., obs = getObservation(path="/Users/ymei/data/pacs_hsa/PacsPhotometer/ymei176213272”) If the directory contains multiple observations, you must specify the obsid: obs=getObservation(path=“/path/to/the untarred directory”) obs=getObservation(path=“/path/to/the untarred directory”, obsid=<obsid>”) • What just happened? • The observation variable, obs, appears in the Variables view. • Your data are still in the directory from the uncompressing the tar file. The observation has been indexed in the MyHSA repository but not copied to elsewhere. • Please do not modify, move or delete the data directory! Y. Mei NHSC Data Workshop – August 26th – 30th 2013 Access PACS data

  4. Use Case: You have searched the Herschel Archive (HSA), and collected the obsids (observation identifiers) you are interested. You would like to glance the data in HIPE before downloading them to your computer. How to retrieve observations directly from HSA into HIPE How: 1) Login to HSA. 2) Type the command in the Console: E.g., obs= getObservation(1342186235, useHsa=True) 3) For SPIRE PACS Parallel mode, you need to specify the instrument: obs= getObservation(<obsid>, useHsa=True) obs= getObservation(<obsid>, instrument = ‘<instrument name>’, useHsa=True, ) • What just happened? • The observation context variable, obs, is created to reference the data. • Your data have been indexed in the MyHSA repository but not downloaded. • You can retrieve the observation any time afterwards from MyHSA to HIPE by • obs=getObservation(<obsid>) (see more about this later) Y. Mei NHSC Data Workshop – August 26th – 30th 2013 Access PACS data

  5. Use Case: You have searched the Herschel Archive (HSA), and collected the obsids (observation identifiers) you are interested. You would like to download the data to your computer. How to retrieve observations directly from HSA into HIPE and save to your computer How: 1) Login to HSA. 2) Type the command in the Console: E.g., obs= getObservation(1342191353, useHsa=True, save=True) obs= getObservation(<obsid>, useHsa=True, save=True) Warning: Saving will take a while! • What just happened? • Your observation is referenced by the variable obs. • Your data have been downloaded to the MyHSArepository. • You can retrieve the observation any time afterwards from MyHSA to HIPE by • obs=getObservation(<obsid>) (see more about this later) Y. Mei NHSC Data Workshop – August 26th – 30th 2013 Access PACS data

  6. Use Case: You would like to save the observations, either just glanced or reprocessed, into a local pool on your computer. (MyHSA can only store the data directly from HSA.) How to save observations into the local pools How: E.g., the command saveObservation(obs, poolName=“PACSPhoto_1342191353”, poolLocation=“/Users/ymei/newPoolLocation”) saves the observation obs into the pool /Users/ymei/newPoolLocation/PACSPhoto_1342191353. The default poolLocation is /$HOME/.hcss/lstore and the default poolName is the obsid. So saveObservation(obs) will save the above observation into the pool /Users/ymei/.hcss/lstore/1342191353. saveObservation(<observation variable name>,poolName=“<new pool name>”, poolLocation=“<new pool location>”) Warning: Saving will take a while! Y. Mei NHSC Data Workshop – August 26th – 30th 2013 Access PACS data

  7. Use Case: You have saved some observations in your computer, either into MyHSA repository or some local pools. You would like to load them back to your HIPE. How to load observations from your computer into HIPE How: The command searches for the observation with the obsid in the pool <pool name> at the pool location <pool location>. E.g.,obs= getObservation(1342191353, poolName=“PACSPhoto_1342191353”, poolLocation=“/Users/ymei/newPoolLocation”) The command searches the following locations: (1)The pool with poolName=<obsid> (2)Any other pools in the default pool location: $HOME/.hcss/lstore (3)MyHSA obs = getObservation(<obsid>, poolName=“<pool name>”, poolLocation=“<pool location>”) Note. Obs = getObservation(<obsid>) The Console will show where the data is retrieved from. Y. Mei NHSC Data Workshop – August 26th – 30th 2013 Access PACS data

  8. Document • getObservation: • Data Analysis Guide (howtos): 1.2, 1.4, 1.5 and 1.7 • saveObservation: • Data Analysis Guide (howtos): 1.9

More Related