Skip to content

Commit

Permalink
update for idl readfile to read metadata from calibration raw files
Browse files Browse the repository at this point in the history
  • Loading branch information
dchaddock committed Mar 19, 2024
1 parent 8df4254 commit d11034e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![Support Python versions](https://img.shields.io/badge/Supported%20Python-3.8%20%7C%203.8%20%7C%203.9%20%7C%203.10%20%7C%203.11-blue)](https://pypi.python.org/pypi/trex-imager-readfile/)
![Supported IDL versions](https://img.shields.io/badge/Supported%20IDL-8.8.1%2B-blue)
[![Python Version](https://img.shields.io/pypi/v/trex-imager-readfile.svg?label=Python%20Package)](https://pypi.python.org/pypi/trex-imager-readfile)
![IDL Version](https://img.shields.io/badge/IDL%20Package-v1.2.0-blue)
![IDL Version](https://img.shields.io/badge/IDL%20Package-v1.2.1-blue)
[![Github Actions - Tests](https://github.com/ucalgary-aurora/trex-imager-readfile/workflows/tests/badge.svg)](https://github.com/ucalgary-aurora/trex-imager-readfile/actions?query=workflow%3Atests)

This repository contains code for reading Transition Region Explorer (TREx) All-Sky Imager (ASI) raw data. The data can be found at https://data.phys.ucalgary.ca.
Expand Down
4 changes: 2 additions & 2 deletions idl/idlpackage.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"Name": "trex-imager-readfile",
"Version": "1.2.0",
"Version": "1.2.1",
"Author": "Darren Chaddock",
"Date": "2023-11-01",
"Date": "2024-03-19",
"Dependencies": [
{
"Name": "IDL",
Expand Down
3 changes: 2 additions & 1 deletion idl/trex_imager_readfile.pro
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
; TREX_IMAGER_READFILE
;
; VERSION:
; 1.2.0
; 1.2.1
;
; PURPOSE:
; This program is intended to be a general tool for reading
Expand Down Expand Up @@ -202,6 +202,7 @@ function __trex_parse_pgm_comments,comments,metadata,MINIMAL_METADATA=minimal_me

; set image request start value
timestring = (stregex(tmp,'"image request start" *([^#]+) utc',/SUBEXPR,/EXTRACT))[1]
if (timestring eq "") then timestring = (stregex(tmp,'"exposure start time" *([^#]+) utc',/SUBEXPR,/EXTRACT))[1]
if (timestring eq "") then timestring = (stregex(tmp,'time *([^#]+) *$',/SUBEXPR,/EXTRACT))[1]
if (timestring eq "") then begin
message,'Error - could not find time information'
Expand Down

0 comments on commit d11034e

Please sign in to comment.