-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect timestamps in database due to bad timezone handling #416
Comments
For example, the timestamps in this file are fine (monotonically increasing), but in the database, they look like this (sorted by array index):
Note that after 16:59:01 (index 959) it goes back to 16:00:01. This means two things:
|
This is a content issue, but it might need to be resolved by the devs as I think it is a systematic issue with the harvesting process or the way the db is set up. |
Ok, upon closer investigation, it seems this was a gross overestimate (phew!). Comparing more of the timestamps from the above file (using ncdump) versus the db, the two are only inconsistent during that one-hour period (index range 900 to 960). The db values appear to match those in the file for all other times. |
Looks like an issue with NetCDFUtils.addDays. If I change the type of the TIME output from iNetcdfInput to Date and remove the usage of NetCDFUtils.addDays, I get the correct result. |
This routine is used by the following harvesters: AATAMS_SATTAG_NRT Looks like it calculates the time incorrectly between 3am and 4am on Australian (the pipeline servers timezone) daylight savings end days (adds an hour). |
Looks like the issue is caused by not specifying timezone information in the NetCDFUtils.addDays call. The harvester (and other harvesters) use
What's required is
Need a bulk update of affected harvesters and to reprocess affected files. Affected dates/times:
|
Created pull request aodn/harvesters#714 to fix incorrect time calculation. Problem occurred when rounding to nearest second using Calendar instance. Specifying the time zone does not fix the problem as the routine was assuming UTC dates were being passed. |
It would be useful to know for each impacted harvester what are the data files that were affected so that they can be harvested again after harvesters are fixed by above PR. @jonescc do you think this list could be programmaticaly generated? |
Would not be more strict to add a test/schema for time monotonicity for the respective datasets ? Other non-monotonic datasets can also be handled by adding a restriction on the number of non-monotonic intervals. |
@ggalibert, yes it should be possible to query the db to identify files which should be reprocessed where reprocessing all is not practical. Just need to identify potentially problematic timestamps in the db and relate them back to the files from which they came. I'll have a look at an example query. |
@ocehugo I believe monotonicity checks are included in the compliance checker. It may be worthwile adding some checks to the database as well. |
I don't know about the DB schemas or even how to implement it, but one thing that I think is a fact is that the DB schemas are probably not as complete as can be coded in normal conditions. Thus, it's not better to create a round-trip workflow to check input/output mismatch? This could be as simple as converting the results back from the DB, writing to a file copy, and running the checker. A full round-trip could also be posed but i'm limited in terms of the db scope and fields. Something like |
yes, that makes sense, but requires a substantial amount of work to do the create_file_from_db_fields step - we recently decommissioned a service which did this due to the amount of work required to support it - we only had it working for one collection only sounds like a backlog item is required to look at how we can validate the db against the source data |
I ran the following sql as an example of the soop tmv nrt collection. Do you feel like this is the most efficient way of doing this ? SELECT i.url FROM soop_tmv.indexed_file i WHERE i.id IN (
SELECT distinct(file_id) FROM soop_tmv.soop_tmv_nrt_trajectory_data
WHERE
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 16 )
);
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ url │
├───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ IMOS/SOOP/SOOP-TMV/VLST_Spirit-of-Tasmania-1/realtime/transect/10secs/2015/IMOS_SOOP-TMV_TSUB_20150404T084620Z_VLST_FV00_transect-D2M_END-20150404T191630Z.nc │
│ IMOS/SOOP/SOOP-TMV/VLST_Spirit-of-Tasmania-1/realtime/transect/10secs/2014/IMOS_SOOP-TMV_TSUB_20140405T083200Z_VLST_FV00_transect-M2D_END-20140405T194410Z.nc │
│ IMOS/SOOP/SOOP-TMV/VLST_Spirit-of-Tasmania-1/realtime/transect/10secs/2017/IMOS_SOOP-TMV_TSUB_20170401T103640Z_VLST_FV00_transect-D2M_END-20170401T201650Z.nc │
│ IMOS/SOOP/SOOP-TMV/VLST_Spirit-of-Tasmania-1/realtime/transect/10secs/2018/IMOS_SOOP-TMV_TSUB_20180331T081450Z_VLST_FV00_transect-M2D_END-20180331T191930Z.nc │
│ IMOS/SOOP/SOOP-TMV/VLST_Spirit-of-Tasmania-1/realtime/transect/1sec/2017/IMOS_SOOP-TMV_TSUB_20170401T103638Z_VLST_FV00_transect-D2M_END-20170401T201650Z.nc │
│ IMOS/SOOP/SOOP-TMV/VLST_Spirit-of-Tasmania-1/realtime/transect/1sec/2018/IMOS_SOOP-TMV_TSUB_20180331T081456Z_VLST_FV00_transect-M2D_END-20180331T191930Z.nc │
│ IMOS/SOOP/SOOP-TMV/VLST_Spirit-of-Tasmania-1/realtime/transect/1sec/2015/IMOS_SOOP-TMV_TSUB_20150404T084647Z_VLST_FV00_transect-D2M_END-20150404T191630Z.nc │
│ IMOS/SOOP/SOOP-TMV/VLST_Spirit-of-Tasmania-1/realtime/transect/1sec/2014/IMOS_SOOP-TMV_TSUB_20140405T083151Z_VLST_FV00_transect-M2D_END-20140405T194410Z.nc │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
(8 rows)
Time: 149158.097 ms
|
Below is a list of affected collections, the SQL query ran to find url to repush to the incoming directory and the list of url to push back. @aodn/emii-ops Please tick the box once a collection is cleaned
SQL querylist of affected files:
SQL querylist of affected files:
SQL querylist of affected files:
SQL querylist of affected files:
SQL querylist of affected files:
SQL querylist of affected files:
SQL querylist of affected files:
SQL querylist of affected files:
SQL querylist of affected files:
SQL querylist of affected files:
SQL querylist of affected files:
SQL querylist of affected files:
SQL query\o /tmp/time_issue_anmn_nrs_dar_yon_url_ls.txt;
SELECT url FROM anmn_nrs_dar_yon.indexed_file where id IN (
SELECT DISTINCT(file_id) FROM anmn_nrs_dar_yon.measurements_noqaqc
WHERE
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 16 )
UNION ALL
SELECT DISTINCT(file_id) FROM anmn_nrs_dar_yon.measurements_qaqc
WHERE
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 16 )
); list of affected files: bash command to reprocess sudo_project_officer
cd $WIP_DIR/ANMN/NRS_AIMS_Darwin_Yongala_data_rss_download_temporary
mkdir manifest_dir_timezone_reprocess && cd manifest_dir_timezone_reprocess/
umask 002
for f in `cat time_issue_anmn_nrs_dar_yon_url_ls.txt`; do
wget https://s3-ap-southeast-2.amazonaws.com/imos-data/$f;
filename=`basename $f`;
md5_val=`md5sum $filename | awk '{ print $1 }'`;
mv $filename ${filename%.*}.$md5_val.nc;
done
pwd > /mnt/ebs/incoming/AODN/ANMN_NRS_DAR_YON/timezone_reprocess.dir_manifest
tail -f /mnt/ebs/log/pipeline/process/tasks.ANMN_NRS_DAR_YON.log
SQL querylist of affected files:
SQL querylist of affected files:
SQL querylist of affected files:
SQL querylist of affected files:
SQL querylist of affected files:
SQL querylist of affected files:
SQL querylist of affected files:
SQL query\o /tmp/time_issue_aodn_dsto.txt;
SELECT url FROM aodn_dsto.indexed_file where id IN (
SELECT DISTINCT(file_id) FROM aodn_dsto.measurements
WHERE
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 16 )
OR
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 17 )
); list of affected files:
SQL query\o /tmp/time_issue_aodn_imas_fluorometry.txt;
SELECT url FROM aodn_imas_fluorometry.indexed_file where id IN (
SELECT DISTINCT(file_id) FROM aodn_imas_fluorometry.measurements
WHERE
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 16 )
OR
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 17 )
); list of affected files:
SQL query\o /tmp/time_issue_aodn_mhl_sst.txt;
SELECT url FROM aodn_mhl_sst.indexed_file where id IN (
SELECT DISTINCT(file_id) FROM aodn_mhl_sst.measurements
WHERE
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 16 )
OR
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 17 )
); list of affected files:
SQL query\o /tmp/time_issue_aodn_ran_ctd.txt;
SELECT url FROM aodn_ran_ctd.indexed_file where id IN (
SELECT DISTINCT(file_id) FROM aodn_ran_ctd.measurements
WHERE
(date("time") = '1972-02-26' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1973-03-03' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1974-03-02' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1975-03-01' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1976-03-06' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1977-03-05' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1978-03-04' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1979-03-03' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1980-03-01' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1981-02-28' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1982-04-03' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1983-03-05' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1984-03-03' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1985-03-02' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1986-03-15' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1987-03-14' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1988-03-19' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1989-03-18' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1990-03-03' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1991-03-02' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1992-02-29' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1993-03-06' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1994-03-05' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1995-03-04' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1996-03-30' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1997-03-29' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1998-03-28' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1999-03-27' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2000-03-25' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2001-03-24' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2002-03-30' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2003-03-29' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2004-03-27' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2005-03-26' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2006-04-01' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2007-03-24' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2008-04-05' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2009-04-04' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2010-04-03' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2011-04-02' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2012-03-31' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2013-04-06' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2014-04-05' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2015-04-04' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2016-04-02' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2017-04-01' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2018-03-31' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2019-04-06' AND date_part('hour', "time") = 16 )
OR
(date("time") = '1972-02-26' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1973-03-03' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1974-03-02' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1975-03-01' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1976-03-06' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1977-03-05' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1978-03-04' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1979-03-03' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1980-03-01' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1981-02-28' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1982-04-03' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1983-03-05' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1984-03-03' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1985-03-02' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1986-03-15' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1987-03-14' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1988-03-19' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1989-03-18' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1990-03-03' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1991-03-02' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1992-02-29' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1993-03-06' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1994-03-05' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1995-03-04' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1996-03-30' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1997-03-29' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1998-03-28' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1999-03-27' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2000-03-25' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2001-03-24' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2002-03-30' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2003-03-29' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2004-03-27' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2005-03-26' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2006-04-01' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2007-03-24' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2008-04-05' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2009-04-04' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2010-04-03' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2011-04-02' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2012-03-31' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2013-04-06' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2014-04-05' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2015-04-04' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2016-04-02' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2017-04-01' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2018-03-31' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2019-04-06' AND date_part('hour', "time") = 17 )
); list of affected files:
SQL querylist of affected files:
SQL query\o /tmp/time_issue_aodn_wave_dm.txt;
SELECT url FROM aodn_wave_dm.indexed_file where id IN (
SELECT DISTINCT(file_id) FROM aodn_wave_dm.measurements
WHERE
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 16 )
OR
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 17 )
); list of affected files:
SQL query\o /tmp/time_issue_argo_url_ls.txt;
SELECT DISTINCT(url) FROM argo.argo_profile_data
WHERE
(date(juld) = '1972-02-26' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '1973-03-03' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '1974-03-02' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '1975-03-01' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '1976-03-06' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '1977-03-05' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '1978-03-04' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '1979-03-03' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '1980-03-01' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '1981-02-28' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '1982-04-03' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '1983-03-05' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '1984-03-03' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '1985-03-02' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '1986-03-15' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '1987-03-14' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '1988-03-19' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '1989-03-18' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '1990-03-03' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '1991-03-02' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '1992-02-29' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '1993-03-06' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '1994-03-05' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '1995-03-04' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '1996-03-30' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '1997-03-29' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '1998-03-28' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '1999-03-27' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '2000-03-25' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '2001-03-24' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '2002-03-30' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '2003-03-29' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '2004-03-27' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '2005-03-26' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '2006-04-01' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '2007-03-24' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '2008-04-05' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '2009-04-04' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '2010-04-03' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '2011-04-02' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '2012-03-31' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '2013-04-06' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '2014-04-05' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '2015-04-04' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '2016-04-02' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '2017-04-01' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '2018-03-31' AND date_part('hour', juld) = 16 ) OR
(date(juld) = '2019-04-06' AND date_part('hour', juld) = 16 )
OR
(date(juld) = '1972-02-26' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '1973-03-03' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '1974-03-02' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '1975-03-01' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '1976-03-06' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '1977-03-05' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '1978-03-04' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '1979-03-03' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '1980-03-01' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '1981-02-28' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '1982-04-03' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '1983-03-05' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '1984-03-03' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '1985-03-02' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '1986-03-15' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '1987-03-14' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '1988-03-19' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '1989-03-18' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '1990-03-03' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '1991-03-02' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '1992-02-29' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '1993-03-06' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '1994-03-05' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '1995-03-04' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '1996-03-30' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '1997-03-29' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '1998-03-28' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '1999-03-27' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '2000-03-25' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '2001-03-24' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '2002-03-30' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '2003-03-29' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '2004-03-27' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '2005-03-26' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '2006-04-01' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '2007-03-24' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '2008-04-05' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '2009-04-04' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '2010-04-03' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '2011-04-02' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '2012-03-31' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '2013-04-06' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '2014-04-05' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '2015-04-04' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '2016-04-02' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '2017-04-01' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '2018-03-31' AND date_part('hour', juld) = 17 ) OR
(date(juld) = '2019-04-06' AND date_part('hour', juld) = 17 )
;
list of affected files:
SQL query\o /tmp/time_issue_auv_url_ls.txt;
SELECT url FROM auv.indexed_file where id IN (
SELECT DISTINCT(file_id) FROM auv.measurements_st
WHERE
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 16 )
); list of affected files: NONE since there aren't any data collected during night time
SQL query\o /tmp/time_issue_faimms_url_ls.txt;
SELECT url FROM faimms.indexed_file where id IN (
SELECT DISTINCT(file_id) FROM faimms.measurements_noqaqc
WHERE
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 16 )
OR
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 17 )
UNION ALL
SELECT DISTINCT(file_id) FROM faimms.measurements_qaqc
WHERE
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 16 )
OR
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 17 )
); list of affected files: bash command to reprocess ## reprocess FAIMMS
sudo_project_officer
cd $WIP_DIR/FAIMMS/REALTIME/
mkdir manifest_dir_timezone_reprocess && cd manifest_dir_timezone_reprocess/
umask 002
for f in `cat time_issue_faimms_url_ls.txt`; do
wget https://s3-ap-southeast-2.amazonaws.com/imos-data/$f;
filename=`basename $f`;
md5_val=`md5sum $filename | awk '{ print $1 }'`;
mv $filename ${filename%.*}.$md5_val.nc;
done
pwd > /mnt/ebs/incoming/FAIMMS/timezone_reprocess.dir_manifest
tail -f /mnt/ebs/log/pipeline/process/tasks.FAIMMS.log
SQL query\o /tmp/time_issue_future_reef_map.txt;
SELECT url FROM future_reef_map.indexed_file where id IN (
SELECT DISTINCT(file_id) FROM future_reef_map.measurements
WHERE
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 16 )
OR
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 17 )
); list of affected files:
SQL querylist of affected files:
SQL querylist of affected files:
SQL query\o /tmp/time_issue_noaa_drifters_ls.txt;
SELECT url FROM noaa_drifters.indexed_file where id IN (
SELECT DISTINCT(file_id) FROM noaa_drifters.measurement
WHERE
(date("time") = '1972-02-26' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1973-03-03' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1974-03-02' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1975-03-01' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1976-03-06' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1977-03-05' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1978-03-04' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1979-03-03' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1980-03-01' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1981-02-28' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1982-04-03' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1983-03-05' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1984-03-03' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1985-03-02' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1986-03-15' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1987-03-14' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1988-03-19' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1989-03-18' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1990-03-03' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1991-03-02' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1992-02-29' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1993-03-06' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1994-03-05' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1995-03-04' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1996-03-30' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1997-03-29' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1998-03-28' AND date_part('hour', "time") = 16 ) OR
(date("time") = '1999-03-27' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2000-03-25' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2001-03-24' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2002-03-30' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2003-03-29' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2004-03-27' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2005-03-26' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2006-04-01' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2007-03-24' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2008-04-05' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2009-04-04' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2010-04-03' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2011-04-02' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2012-03-31' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2013-04-06' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2014-04-05' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2015-04-04' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2016-04-02' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2017-04-01' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2018-03-31' AND date_part('hour', "time") = 16 ) OR
(date("time") = '2019-04-06' AND date_part('hour', "time") = 16 )
OR
(date("time") = '1972-02-26' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1973-03-03' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1974-03-02' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1975-03-01' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1976-03-06' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1977-03-05' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1978-03-04' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1979-03-03' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1980-03-01' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1981-02-28' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1982-04-03' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1983-03-05' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1984-03-03' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1985-03-02' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1986-03-15' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1987-03-14' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1988-03-19' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1989-03-18' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1990-03-03' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1991-03-02' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1992-02-29' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1993-03-06' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1994-03-05' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1995-03-04' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1996-03-30' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1997-03-29' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1998-03-28' AND date_part('hour', "time") = 17 ) OR
(date("time") = '1999-03-27' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2000-03-25' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2001-03-24' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2002-03-30' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2003-03-29' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2004-03-27' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2005-03-26' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2006-04-01' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2007-03-24' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2008-04-05' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2009-04-04' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2010-04-03' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2011-04-02' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2012-03-31' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2013-04-06' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2014-04-05' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2015-04-04' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2016-04-02' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2017-04-01' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2018-03-31' AND date_part('hour', "time") = 17 ) OR
(date("time") = '2019-04-06' AND date_part('hour', "time") = 17 )
);
list of affected files:
SQL query\o /tmp/time_issue_soop_asf_fmt_url_ls.txt;
SELECT url FROM soop_asf_fmt.indexed_file where id IN (
SELECT DISTINCT(file_id) FROM soop_asf_fmt.measurements
WHERE
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 16 )
OR
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 17 )
);
list of affected files:
SQL query\o /tmp/time_issue_soop_asf_mt_url_ls.txt;
SELECT url FROM soop_asf_mt.indexed_file where id IN (
SELECT DISTINCT(file_id) FROM soop_asf_mt.measurements
WHERE
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 16 )
OR
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 17 )
); list of affected files:
SQL query\o /tmp/time_issue_soop_ba_url_ls.txt;
SELECT url FROM soop_ba.indexed_file where id IN (
SELECT DISTINCT(file_id) FROM soop_ba.measurements
WHERE
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 16 )
OR
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 17 )
); list of affected files:
SQL query\o /tmp/time_issue_soop_c02_rt_url_ls.txt;
SELECT url FROM soop_co2_rt.indexed_file where id IN (
SELECT DISTINCT(file_id) FROM soop_co2_rt.measurements
WHERE
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 16 )
OR
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 17 )
);
list of affected files:
SQL query\o /tmp/time_issue_soop_c02_url_ls.txt;
SELECT url FROM soop_co2.indexed_file where id IN (
SELECT DISTINCT(file_id) FROM soop_co2.measurements
WHERE
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 16 )
OR
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 17 )
); list of affected files:
SQL query\o /tmp/time_issue_soop_sst.txt;
SELECT url FROM soop_sst.indexed_file where id IN (
SELECT DISTINCT(trajectory_id) FROM soop_sst.measurements
WHERE
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 16 )
OR
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 17 )
); list of affected files:
SQL query\o /tmp/time_issue_soop_tmv.txt;
SELECT url FROM soop_tmv.indexed_file where id IN (
SELECT DISTINCT(file_id) FROM soop_tmv.measurements
WHERE
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 16 )
OR
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 17 )
); list of affected files:
SQL query\o /tmp/time_issue_soop_trv.txt;
SELECT url FROM soop_trv.indexed_file where id IN (
SELECT DISTINCT(file_id) FROM soop_trv.measurements_temp
WHERE
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 16 )
OR
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 17 )
); list of affected files:
SQL querylist of affected files:
SQL query\o /tmp/time_issue_srs_oc_soop_rad.txt;
SELECT url FROM srs_oc_soop_rad.indexed_file where id IN (
SELECT DISTINCT(file_id) FROM srs_oc_soop_rad.measurements
WHERE
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 16 )
OR
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 17 )
); list of affected files:
SQL querylist of affected files: |
I was initially worried about the use of date and date_trunc after our recent issues using these but in this case where you're operating against a timestamp without time zone it seems to work OK. Will also probably work with timestamp with timezone columns as the time zone of the db is set to UTC (but check!!) I couldn't find a faster way of getting the results - with this many filter conditions postgres decides to do a sequential scan no matter what. |
PS. we should probably add in the recent daylight saving change. May be some datasets with those times now. |
So that's date/times between 2019-04-06 16:00:00 and 2019-04-06 17:00:00 are also suspect |
@mhidas could you have a look at this #416 (comment) and check which of your files need to be reprocessed? |
bash function to facilitate download of IMOS data from S3# wget for imos buck by simply giving the relative path of an object without the full bucket address
# $1 imos bucket url
# $2 output_folder (optional)
wget_imos_bucket() {
local url_suffix=$1; shift;
local url_prefix="https://s3-ap-southeast-2.amazonaws.com/imos-data/"
local output_folder=$1;
[ ! -z $output_folder ] && wget ${url_prefix}${url_suffix} || \
wget -P $output_folder ${url_prefix}${url_suffix}
} ANMN_ACIDIFICATION_NRT
Obsolete schema ANMN_BURST_AVG_TIMESERIES
SQL query```sql \o /tmp/time_issue_anmn_burst_avg_timseries.txt ```select url from anmn_burst_avg.indexed_file where id IN
(SELECT DISTINCT(timeseries_id) FROM anmn_burst_avg.anmn_burst_avg_timeseries_data
where
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 16 )
OR
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 17 )
) cd /mnt/imos-data
grep -oE 'ANMN/.*\.nc' /tmp/time_issue_anmn_burst_avg_timseries.txt | uniq | $HARVESTER_TRIGGER --stdin -b IMOS ANMN_MHLWAVE
SQL querySQL commands to run in this order\o /tmp/time_issue_anmn_mhlwave.txt select url from anmn_mhlwave.indexed_file where id IN
(SELECT DISTINCT(file_id) FROM anmn_mhlwave.anmn_mhlwave_data
where
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 16 )
OR
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 17 )
) FYI @mhidas cd /mnt/imos-data
grep -oE 'Manly_Hydraulics_Laboratory/.*\.nc' /tmp/time_issue_anmn_mhlwave.txt | uniq | $HARVESTER_TRIGGER --stdin -b IMOS
for f in `cat /tmp/time_issue_anmn_mhlwave.txt | grep -o -E "NSW-OEH/.*nc"`;do
wget_imos_bucket $f $INCOMING_DIR/
done ANMN_NRS_CTD_PROFILES
SQL query```sql \o /tmp/time_issue_anmn_nrs_ctd_profiles.txt ```select url from anmn_nrs_ctd_profiles.indexed_file where id IN
(SELECT DISTINCT(file_id) FROM anmn_nrs_ctd_profiles.anmn_nrs_ctd_profiles_data
where
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 16 )
OR
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 17 )
) cd /mnt/imos-data
grep -oE 'ANMN/.*\.nc' /tmp/time_issue_anmn_nrs_ctd_profiles.txt | $HARVESTER_TRIGGER --stdin -b IMOS ANMN_NRS_LONG_TS
SQL query```sql \o /tmp/time_issue_anmn_nrs_long_ts.txt ```select url from anmn_nrs_long_ts.indexed_file; cd /mnt/imos-data
grep -oE 'ANMN/.*\.nc' /tmp/time_issue_anmn_nrs_long_ts.txt | uniq | $HARVESTER_TRIGGER --stdin -b IMOS -> no files to be ingested according to SQL query ANMN_NRS_RT_BIOGEOCHEM_TIMESERIES
SQL query```sql \o /tmp/time_issue_anmn_nrs_rt_bio.txt ```select * from anmn_nrs_rt_bio.indexed_file where NOT deleted
cd /mnt/imos-data
grep -oE 'ANMN/.*\.nc' /tmp/time_issue_anmn_nrs_rt_bio.txt | sort | uniq | $HARVESTER_TRIGGER --stdin -b IMOS ANMN_NRS_RT_METEO
SQL query```sql \o /tmp/time_issue_anmn_nrs_rt_meteo.txt ```select url from anmn_nrs_rt_meteo.indexed_file WHERE NOT DELETED
cd /mnt/imos-data
grep -oE 'ANMN/.*\.nc' /tmp/time_issue_anmn_nrs_rt_meteo.txt | sort | uniq | $HARVESTER_TRIGGER --stdin -b IMOS ANMN_NRS_RT_WAVE_TIMESERIES
SQL query```sql \o /tmp/time_issue_anmn_nrs_rt_wave_timeseries.txt ```select url from anmn_nrs_rt_wave.indexed_file WHERE NOT DELETED cd /mnt/imos-data
grep -oE 'ANMN/.*\.nc' /tmp/time_issue_anmn_nrs_rt_wave_timeseries.txt | sort | uniq | $HARVESTER_TRIGGER --stdin -b IMOS ANMN_T_REGRIDDEDobsolete ANMN_TS_TIMESERIES
SQL query\o /tmp/time_issue_anmn_ts_timeseries.txt select url from anmn_ts.indexed_file where id IN
(SELECT DISTINCT(timeseries_id) FROM anmn_ts.anmn_ts_timeseries_data
where
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 16 )
OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 17 )
) cd /mnt/imos-data
grep -oE 'ANMN/.*\.nc' /tmp/time_issue_anmn_ts_timeseries.txt | sort | uniq | $HARVESTER_TRIGGER --stdin -b IMOS ANMN_WAVE
SQL query```sql \o /tmp/time_issue_anmn_wave.txt ```select url from anmn_wave.indexed_file where id IN
(SELECT DISTINCT(id) FROM anmn_wave.anmn_wave_data
where
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 16 )
OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 17 )
) cd /mnt/imos-data
grep -oE 'ANMN/.*\.nc' /tmp/time_issue_anmn_wave.txt | grep -v REAL_TIME | sort | uniq | $HARVESTER_TRIGGER --stdin -b IMOS |
ANFOG@bpasquer could you please review the following ANFOG_DM
SQL querySQL commands to run in this order \o /tmp/time_issue_anfog_dm.txt select url from anfog_dm.indexed_file where id IN
(SELECT DISTINCT(file_id) FROM anfog_dm.anfog_dm_trajectory_data
where
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 16 )
OR
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 17 )
) cd /mnt/imos-data
grep -oE 'ANFOG/.*\.nc' /tmp/time_issue_anfog_dm.txt | sort | uniq | $HARVESTER_TRIGGER --stdin -b IMOS ANFOG_RT
SQL querySQL commands to run in this order \o /tmp/time_issue_anfog_rt.txt select url from anfog_rt.indexed_file where id IN
(SELECT DISTINCT(file_id) FROM anfog_rt.anfog_rt_trajectory_data
where
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 16 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 16 )
OR
(date("TIME") = '1972-02-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1973-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1974-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1975-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1976-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1977-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1978-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1979-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1980-03-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1981-02-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1982-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1983-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1984-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1985-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1986-03-15' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1987-03-14' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1988-03-19' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1989-03-18' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1990-03-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1991-03-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1992-02-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1993-03-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1994-03-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1995-03-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1996-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1997-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1998-03-28' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '1999-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2000-03-25' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2001-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2002-03-30' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2003-03-29' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2004-03-27' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2005-03-26' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2006-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2007-03-24' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2008-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2009-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2010-04-03' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2011-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2012-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2013-04-06' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2014-04-05' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2015-04-04' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2016-04-02' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2017-04-01' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2018-03-31' AND date_part('hour', "TIME") = 17 ) OR
(date("TIME") = '2019-04-06' AND date_part('hour', "TIME") = 17 )
) NO RT files matching the dates |
Thanks @lbesnard Firstly, I would suggest you don't download files from S3 and re-push them through the whole pipeline. This won't work for some of the older files as they will fail the compliance checks. You can simply re-index them in place from the fuse mount. E.g. for your target list in > cd /mnt/imos-data
> grep -oE 'ANMN/.*\.nc' /tmp/time_issue_x.txt | $HARVESTER_TRIGGER --stdin -b IMOS
Please ignore this schema as it's obsolete (see https://github.com/aodn/PO-Backlog/issues/480) and should in fact be deleted. These NRT data are now being harvested into and served from the
This only includes data collected by the ANMN facility, so no data before 2007 (see
I don't know much about this one, but it does seem to have data going back to 1974.
Earliest data is in 2007.
There's only 2 files in the entire collection, so just reindex them both.
These also only have a handful of files each (see the (And btw the schemas are called
This is obsolete and has been removed.
Data starts in 2007, so no need to query before then. |
thanks @mhidas for your feedback, just waiting for a query to run on the anmn_ts schema. Everything else is done. |
AATAMS_SATTAG_QC_CTD
SQL querySQL commands to run in this order \o /tmp/time_issue_aatams_sattag_qc_ctd.txt select url from aatams_sattag_qc_ctd.aatams_sattag_qc_ctd_profile_data where
(date("juld") = '1972-02-26' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '1973-03-03' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '1974-03-02' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '1975-03-01' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '1976-03-06' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '1977-03-05' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '1978-03-04' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '1979-03-03' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '1980-03-01' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '1981-02-28' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '1982-04-03' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '1983-03-05' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '1984-03-03' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '1985-03-02' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '1986-03-15' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '1987-03-14' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '1988-03-19' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '1989-03-18' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '1990-03-03' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '1991-03-02' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '1992-02-29' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '1993-03-06' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '1994-03-05' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '1995-03-04' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '1996-03-30' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '1997-03-29' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '1998-03-28' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '1999-03-27' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '2000-03-25' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '2001-03-24' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '2002-03-30' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '2003-03-29' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '2004-03-27' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '2005-03-26' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '2006-04-01' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '2007-03-24' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '2008-04-05' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '2009-04-04' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '2010-04-03' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '2011-04-02' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '2012-03-31' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '2013-04-06' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '2014-04-05' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '2015-04-04' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '2016-04-02' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '2017-04-01' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '2018-03-31' AND date_part('hour', "juld") = 16 ) OR
(date("juld") = '2019-04-06' AND date_part('hour', "juld") = 16 )
OR
(date("juld") = '1972-02-26' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '1973-03-03' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '1974-03-02' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '1975-03-01' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '1976-03-06' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '1977-03-05' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '1978-03-04' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '1979-03-03' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '1980-03-01' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '1981-02-28' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '1982-04-03' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '1983-03-05' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '1984-03-03' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '1985-03-02' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '1986-03-15' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '1987-03-14' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '1988-03-19' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '1989-03-18' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '1990-03-03' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '1991-03-02' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '1992-02-29' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '1993-03-06' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '1994-03-05' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '1995-03-04' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '1996-03-30' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '1997-03-29' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '1998-03-28' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '1999-03-27' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '2000-03-25' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '2001-03-24' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '2002-03-30' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '2003-03-29' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '2004-03-27' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '2005-03-26' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '2006-04-01' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '2007-03-24' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '2008-04-05' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '2009-04-04' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '2010-04-03' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '2011-04-02' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '2012-03-31' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '2013-04-06' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '2014-04-05' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '2015-04-04' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '2016-04-02' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '2017-04-01' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '2018-03-31' AND date_part('hour', "juld") = 17 ) OR
(date("juld") = '2019-04-06' AND date_part('hour', "juld") = 17 ) cd /mnt/imos-data
grep -oE 'AATAMS/.*\.nc' /tmp/time_issue_aatams_sattag_qc_ctd.txt | sort | uniq | $HARVESTER_TRIGGER --stdin -b IMOS ISSUE
I'm not sure about this harvester/schema. @ggalibert do you know if the aatams_sattag_qc_ctd schema/harvester should be revoked? |
The only issue I have is with the AATAMS_SATTAG_QC_CTD harvester, see comments above. The associated data is on S3 and on the portal : Satellite Relay Tagging Program - Southern Ocean - MEOP Quality Controlled CTD Profiles I don't know much about this dataset. The last data of data available is 2017-08-21 23:00:00+00 I'm actually wondering if this collection should exist or not. Is it replaced by something else? Currently, the harvester is not capable of re-harvesting some files. Some debugging is required. I don't want to investigate and fix this harvester if the collection shouldn't exist. |
The collection is valid. |
see PR fixing the harvester in order to re-process the data |
modidying the AATAMS SATTAG CTD harvester made possible to re-harvest files. All data is now good accross all schemas affected |
It seems there are timestamps in the harvest db that are off by an hour due to something in the harvest process.
E.g. Craig just discovered that the
anmn_ts.measurements
table contains many duplicate timestamps within a given timeseries (i.e. one file). This should not be possible as the IMOS-1.4 checker requires the TIME coordinate to be strictly monotonic. A closer look at one example revealed that indeed the timestamps are correct (unique) in the file, but the equivalend timestamps in the db contain an hour's worth of duplicate values, pretty much at the time daylight savings ended.This suggests that even though the timestamps in the netCDF are UTC, somewhere along the way, a daylight savings adjustment gets applied, incorrectly.
The text was updated successfully, but these errors were encountered: