@@ -29,15 +29,36 @@ Examples
29
29
1. Getting Hubble products
30
30
--------------------------
31
31
32
+ This function allows the user to download products based on their observation ID (mandatory) and
33
+ a required calibration_level (RAW, CALIBRATED, PRODUCT or AUXILIARY) and/or product type (PRODUCT,
34
+ SCIENCE_PRODUCT or POSTCARD).
35
+
36
+ This will download all files for the raw calibration level of the observation 'J6FL25S4Q' and it will store them in a tar called
37
+ 'raw_data_for_J6FL25S4Q.tar'.
38
+
32
39
.. code-block :: python
33
40
34
41
>> > from astroquery.esa.hubble import ESAHubble
35
42
>> > esahubble = ESAHubble()
36
- >> > esahubble.download_product(" J6FL25S4Q" , " RAW" , " raw_data_for_J6FL25S4Q.tar" )
43
+ >> > esahubble.download_product(observation_id = " J6FL25S4Q" , calibration_level = " RAW" , filename = " raw_data_for_J6FL25S4Q.tar" )
37
44
38
- This will download all files for the raw calibration level of the
39
- observation 'J6FL25S4Q' and it will store them in a tar called
40
- 'raw_data_for_J6FL25S4Q.tar'.
45
+ This will download the science files associated to the observation 'J6FL25S4Q' and it will store them in a file called
46
+ 'science_data_for_J6FL25S4Q.tar.fits.gz', modifying the filename provided to ensure that the extension of the file is correct.
47
+
48
+ .. code-block :: python
49
+
50
+ >> > from astroquery.esa.hubble import ESAHubble
51
+ >> > esahubble = ESAHubble()
52
+ >> > esahubble.download_product(observation_id = " J6FL25S4Q" , product_type = " SCIENCE_PRODUCT" , filename = " science_data_for_J6FL25S4Q.tar" )
53
+
54
+ This third case will download the science files associated to the observation 'J6FL25S4Q' in raw calibration level and it will store them in a file called
55
+ 'science_raw_data_for_J6FL25S4Q.fits.gz', modifying the filename provided to ensure that the extension of the file is correct.
56
+
57
+ .. code-block :: python
58
+
59
+ >> > from astroquery.esa.hubble import ESAHubble
60
+ >> > esahubble = ESAHubble()
61
+ >> > esahubble.download_product(observation_id = " J6FL25S4Q" , calibration_level = " RAW" , product_type = " SCIENCE_PRODUCT" , filename = " science_raw_data_for_J6FL25S4Q" )
41
62
42
63
---------------------------
43
64
2. Getting Hubble postcards
0 commit comments