Once you are familiar with the basic structure of JSOC Datasets, including the JSOC term "PrimeKeyword" please review JSOC data series in the JSOC Wiki.
How to Get Data FAQ provides an accessible description of how to get data.
hmi.M_45s - the set of HMI magnetograms observed once each 45 seconds.
For such series the first PrimeKey is the time of the record.
Its name will ordinarily be "T_REC" for HMI and MDI data but may be some other time keyword such as "T_OBS".
The name of a PrimeKey need not be specified if you know the order in which they are defined.
In a dataseries that is effectively a time series, the standard is that the first PrimeKey will be the
the ordering time keyword.
RecordSet box, enter the data series and time, hmi.M_45s[$],
where the $ inside the brackets is the symbol for the final record in the series.
Recount button to make sure your query produced something (it should report
a Record Count of 1)
Method select either url or ftp.
Requestor box and
contact email (or "NO") in the Notify slot.Check Params for Export to verify everything is OK.
Submit Export Request button to request fits file.
It will report your RequestID and an estimate of the size of the request.
Submit Status Request button and it will provide a link to
your fits file.
RecordSet:
The difference between the two samples above is that the first form, a range of times, includes any
records that exist for the full range including both end times. In the second case, where the "/30m"
can be read as "over 30 minutes", the span of records matching will stop just before the given time plus
the span duration. This makes sense if you want all the images for May 1, 2010 then you would write:
"hmi.M_45s[2010.05.01/1d]" and the result would include only magnetograms for May 1, not the first one
for May 2. Of course you could specify "hmi.M_45s[2010.05.01_00:00:00-2010.05.01_23:59:15]" but the
compact form is both easier to type and easier to read. The first sample above returns 41 records and
the second returns 40.
Example 3: Export a Selection of AIA Data at Two Wavelengths
Suppose you want 12s AIA EUV data for July 30, 2010 between 13:30 and 14:00 UTC for only the 19.3 nm line.
exportdata as described in examples one and 2 above:
If you want data for the same time, but also for 33.5nm
exportdata as described in examples one and 2 above:
exportdata twice, entering the RecordSets:
The first request will return the hmi magnetograms beginning 2010.05.01 for the 1 day (using the "/" operator), but only one magnetogram every 96 minutes (using the @ operator).
The second request will return all of the level 1.8.2 96-minute mdi magnetograms for the same day.
If you just want selected records for a known time range, say Bp,Br,and Bt for SHARP 3563 in equal area projection then:
lookdata Toollookdata utility
can be used for searching, examining, and exporting data. There is documentation at
Lookdata Wiki Page and at the
PDF Tutorial. Lookdata helps you search for a
data series, gives information about the series you select, allows to you build up a RecordSet
query, reports Keyword values for the records you select, allows you to graph the values of Keyword Series,
and transfers the results of your search to the exportdata utility described above.
lookdata to Find Data and Examine Keywords Before Exporting
This example is a little longer because it introduces another useful utility, the
lookdata program.
1. Find a list of dataseries
enter part of the data series name you want to look for, "M_720s". Then
click Fetch seriesname list to search for jsoc data series containing "M_720s".
RecordSet Select panel.
RecordSet Select panel gives a lot of summary information about the data series, including
the times of the first and last record.
You can check the SeriesContent panel for a description of all the keywords.
RecordSet information as described above, or you can check the
box to be assisted by the QueryBuilder. Check the box.
T_REC [ ] (time-slotted, 720.0) expects TAI
CAMERA [ ] (int)
where clause [? ?] Uses prime key logic
where clause [! !] use disables prime key logic
T_REC box enter "2010.07.05/1d". Check the GetRecordCount box
and you will see that there were the nominal 120 magnetograms for the day.
Select Keywords. Scroll down and click on QUALITY.
Select Segments. Click on NONE.
Fetch Keyword Values for RecordSet. This will take
you to the Values Display panel. A row for each record shows the values of the keywords. You
might have to make the column wider to see the value of the QUALITY keyword. Scroll down and you will notice
a non-zero QUALITY value at 2010.07.05_06:00:00_TAI where one or more of the expected filtergrams was
missing (See QUALITY for more info).
RecordSet Select page by clicking on the appropriate tab near the top of the
page. You'll see everything as you left it before you fetched the keyword values.
where clause [? ?] section enter "QUALITY=0",
then click GetRecordCount. You'll see there are just 114 "perfect" magnetograms for the
day.
Export Data tab by selecting the appropriate label at the top of
the page. Once there, click Export to be taken to the exportdata utility
described in the previous examples.
lookdata can create a graph.
RecordSet Select tab and in
Panel 4 Select Keywords click on **ALL**. Then once again click on Fetch
Keyword Values for RecordSet. This will take you to the Values Display tab and show
the values of all of the Keywords in the series for the selected record set. Explore as you like.
Graph tab by selecting the appropriate tab at the top of the page.
Select for the X Axis T_REC and select keywords DATAMEAN and OBS_VR
by <ctrl-click>ing.
Create Graph button to see if the Mean Field varies during the day
as the spacecraft velocity changes during the day.
lookdata to Find The SHARP Data Associated with NOAA AR 11158lookdata to find the SHARP data series hmi.sharp_720s.
Record Select tab, check the QueryBuilder box.
Where [? ?] section enter NOAA_ARS ~ "11158" to match the characters
11158 in the keyword NOAA_ARS. The quotation marks around 11158 are important.
GetRecordCount to check the number of records
Fetch Keyword Record Values
Warning: Lookdata may fail if the number of keywords is too large, select a subset if you get the error message Something
went wrong with series data request.
Once you have identified the HARPNUM for the region of interest (in this case 377), you can specify the HARPNUM directly in future requests; it will be much quicker than the Where [? ?] query.
Time zones are a special topic. HMI data it time tagged in TAI time, "International Atomic Time", since they are observed on SDO using TAI time. There are no leap-seconds in TAI time as there are in UTC so for long time series such as the 14 year SOHO/MDI set of heliosiesmology data one does not need to worry about the 5 leap-seconds that were inserted during that time. All SDO data are intrinsically observed using TAI. For the convenience of people the times can also be expressed in UTC. HMI data has "nicer" time stamps when expressed in TAI. By choice, AIA uses UTC for most user-level time stamps. Either may be used for any JSOC data requests. Since the offset, now 34 seconds, is more than half the basic HMI obseving cadence of 45 seconds, you will often not get the record you expect if you use UTC to ask for HMI data. The default for an omitted time zone specifier is UTC. Thus if you ask for hmi.M_45s[2010.07.25] you will get the magnetogram labelled hmi.M_45s[2010.07.25_00:00:45_TAI].
The rule of thumb is: Use TAI when specifing HMI or MDI data but use UTC for AIA.
The full set of PrimeKeys for each series are listed in lookdata both on the "Series Content" tab and at the top of the "RecordSet Select" tab. If you check the checkbox labelled "Check box to show the QueryBuilder" located just under the title "Select Records and Get Record Count" on the "RecordSet Select" tab, lookdata will provide you with an expanded template for building a recordset query using all of the available PrimeKeys.
Generally, each PrimeKey will be in some sense orthogonal to the others. They specify different quantities which are all needed for a unique record specification. This is not required. In fact, AIA and HMI each use both T_OBS and FSN as PrimeKeys for the "Level-1" dataseries. T_OBS is always the time of observation of a quantity. For the low-level HMI and AIA data, "FSN" is the "Frame Sequence Number" and is a unique number provided by the onboard software when each image is created. Since no two images can be made at exactly the same time, FSN is redundant with T_OBS. However, rounded to the nearest second and in testing multiple images can be obtained with the same T_OBS rounded value. But the reason we chose to use both for this low-level data is that the data is generated based on FSN but used based on T_OBS. You should use "T_OBS" for aia.lev1 data unless you really know what you are after.
While the built-in PrimeKey formats are convenient with notation like "2010.07.25/6h" sometimes the user wants to either build a query from other not Prime Keywords or to make a query that is noyt easy to specify using the PrimeKey special logic. In those cases we provide the ability to specify one or more very geenral SQL "Where" clauses. An SQL where clause contents may be provided in one or more "[? ... ?]" or "[! ... !]" clauses. The word "where" is not needed, or allowed.