Interactive interface for browsing global, full-resolution satellite imagery
add config changes to get updated nrt uat subdaily goes and himawari, make animation panel connected to interval and sync up changes
Edward Plato47c253a72b62
diff --git a/.vscode/settings.json b/.vscode/settings.jsonindex 3925f595b..6b2d56bbf 100644--- a/.vscode/settings.json+++ b/.vscode/settings.json@@ -5,5 +5,6 @@},"[json]": {"editor.tabSize": 2- }+ },+ "python.pythonPath": ".python\\Scripts\\python.exe"}\ No newline at end of filediff --git a/config/default/common/config/metadata/layers/goes/GOES-East_ABI_Air_Mass_v0_NRT.md b/config/default/common/config/metadata/layers/goes/GOES-East_ABI_Air_Mass_v0_NRT.mdnew file mode 100644index 000000000..6e7705f57--- /dev/null+++ b/config/default/common/config/metadata/layers/goes/GOES-East_ABI_Air_Mass_v0_NRT.md@@ -0,0 +1 @@+Air Mass (ABI, GOES-East) Descriptiondiff --git a/config/default/common/config/metadata/layers/goes/GOES-East_ABI_Band13_Clean_Infrared_v0_NRT.md b/config/default/common/config/metadata/layers/goes/GOES-East_ABI_Band13_Clean_Infrared_v0_NRT.mdnew file mode 100644index 000000000..9c09991ff--- /dev/null+++ b/config/default/common/config/metadata/layers/goes/GOES-East_ABI_Band13_Clean_Infrared_v0_NRT.md@@ -0,0 +1 @@+Clean Infrared (10.3 µm, Band 13, ABI, GOES-East) Descriptiondiff --git a/config/default/common/config/metadata/layers/goes/GOES-East_ABI_Band2_Red_Visible_v0_NRT.md b/config/default/common/config/metadata/layers/goes/GOES-East_ABI_Band2_Red_Visible_v0_NRT.mdnew file mode 100644index 000000000..1b37cacd2--- /dev/null+++ b/config/default/common/config/metadata/layers/goes/GOES-East_ABI_Band2_Red_Visible_v0_NRT.md@@ -0,0 +1,2 @@++Red Visible (0.64 µm, Band 2, ABI, GOES-East) Descriptiondiff --git a/config/default/common/config/metadata/layers/goes/GOES-West_ABI_Air_Mass_v0_NRT.md b/config/default/common/config/metadata/layers/goes/GOES-West_ABI_Air_Mass_v0_NRT.mdnew file mode 100644index 000000000..442615db8--- /dev/null+++ b/config/default/common/config/metadata/layers/goes/GOES-West_ABI_Air_Mass_v0_NRT.md@@ -0,0 +1 @@+Air Mass (ABI, GOES-West) Descriptiondiff --git a/config/default/common/config/metadata/layers/goes/GOES-West_ABI_Band13_Clean_Infrared_v0_NRT.md b/config/default/common/config/metadata/layers/goes/GOES-West_ABI_Band13_Clean_Infrared_v0_NRT.mdnew file mode 100644index 000000000..0daec7e61--- /dev/null+++ b/config/default/common/config/metadata/layers/goes/GOES-West_ABI_Band13_Clean_Infrared_v0_NRT.md@@ -0,0 +1 @@+Clean Infrared (10.3 µm, Band 13, ABI, GOES-West) Descriptiondiff --git a/config/default/common/config/metadata/layers/goes/GOES-West_ABI_Band2_Red_Visible_v0_NRT.md b/config/default/common/config/metadata/layers/goes/GOES-West_ABI_Band2_Red_Visible_v0_NRT.mdnew file mode 100644index 000000000..39b876cf6--- /dev/null+++ b/config/default/common/config/metadata/layers/goes/GOES-West_ABI_Band2_Red_Visible_v0_NRT.md@@ -0,0 +1,2 @@++Red Visible (0.64 µm, Band 2, ABI, GOES-West) Descriptiondiff --git a/config/default/common/config/metadata/layers/himawari/Himawari_AHI_Air_Mass_v0_NRT.md b/config/default/common/config/metadata/layers/himawari/Himawari_AHI_Air_Mass_v0_NRT.mdnew file mode 100644index 000000000..679f9c74d--- /dev/null+++ b/config/default/common/config/metadata/layers/himawari/Himawari_AHI_Air_Mass_v0_NRT.md@@ -0,0 +1 @@+Air Mass (AHI, Himawari) Descriptiondiff --git a/config/default/common/config/metadata/layers/himawari/Himawari_AHI_Band13_Clean_Infrared_v0_NRT.md b/config/default/common/config/metadata/layers/himawari/Himawari_AHI_Band13_Clean_Infrared_v0_NRT.mdnew file mode 100644index 000000000..71a68cdff--- /dev/null+++ b/config/default/common/config/metadata/layers/himawari/Himawari_AHI_Band13_Clean_Infrared_v0_NRT.md@@ -0,0 +1 @@+Clean Infrared (10.3 µm, Band 13, AHI, Himawari) Descriptiondiff --git a/config/default/common/config/metadata/layers/himawari/Himawari_AHI_Band3_Red_Visible_v0_NRT.md b/config/default/common/config/metadata/layers/himawari/Himawari_AHI_Band3_Red_Visible_v0_NRT.mdnew file mode 100644index 000000000..6404355fa--- /dev/null+++ b/config/default/common/config/metadata/layers/himawari/Himawari_AHI_Band3_Red_Visible_v0_NRT.md@@ -0,0 +1 @@+Red Visible (0.64 µm, Band 2, AHI, Himawari) Descriptiondiff --git a/config/default/common/config/wv.json/layerOrder.json b/config/default/common/config/wv.json/layerOrder.jsonindex dbeb3402f..8f77f3677 100644--- a/config/default/common/config/wv.json/layerOrder.json+++ b/config/default/common/config/wv.json/layerOrder.json@@ -1,5 +1,14 @@{"layerOrder": [+ "GOES-East_ABI_Air_Mass_v0_NRT",+ "GOES-East_ABI_Band2_Red_Visible_v0_NRT",+ "GOES-East_ABI_Band13_Clean_Infrared_v0_NRT",+ "GOES-West_ABI_Air_Mass_v0_NRT",+ "GOES-West_ABI_Band2_Red_Visible_v0_NRT",+ "GOES-West_ABI_Band13_Clean_Infrared_v0_NRT",+ "Himawari_AHI_Air_Mass_v0_NRT",+ "Himawari_AHI_Band3_Red_Visible_v0_NRT",+ "Himawari_AHI_Band13_Clean_Infrared_v0_NRT","VIIRS_SNPP_CorrectedReflectance_TrueColor","VIIRS_SNPP_CorrectedReflectance_BandsM3-I3-M11","VIIRS_SNPP_CorrectedReflectance_BandsM11-I2-I1",@@ -32,8 +41,8 @@"Landsat_WELD_CorrectedReflectance_TrueColor_CONUS_Annual","Landsat_WELD_CONUS_5_Year_Tree_Cover",- "VIIRS_SNPP_Thermal_Anomalies_375m_Day",- "VIIRS_SNPP_Thermal_Anomalies_375m_Night",+ "VIIRS_SNPP_Fires_375m_Day",+ "VIIRS_SNPP_Fires_375m_Night","VIIRS_SNPP_DayNightBand_ENCC","VIIRS_Night_Lights","VIIRS_SNPP_Brightness_Temp_BandI5_Day",@@ -102,9 +111,9 @@"MODIS_Terra_Cloud_Optical_Thickness","MODIS_Aqua_Cloud_Optical_Thickness_PCL","MODIS_Terra_Cloud_Optical_Thickness_PCL",- "MODIS_Combined_Thermal_Anomalies_All",- "MODIS_Terra_Thermal_Anomalies_All",- "MODIS_Aqua_Thermal_Anomalies_All",+ "MODIS_Fires_All",+ "MODIS_Fires_Terra",+ "MODIS_Fires_Aqua","MODIS_Terra_Land_Surface_Temp_Day","MODIS_Terra_Land_Surface_Temp_Night","MODIS_Aqua_Land_Surface_Temp_Day",@@ -364,14 +373,22 @@"AIRS_Precipitation_Night","AIRS_Prata_SO2_Index_Day","AIRS_Prata_SO2_Index_Night",+ "AIRS_RelativeHumidity_400hPa_Day",+ "AIRS_RelativeHumidity_400hPa_Night","AIRS_RelativeHumidity_500hPa_Day","AIRS_RelativeHumidity_500hPa_Night",+ "AIRS_RelativeHumidity_600hPa_Day",+ "AIRS_RelativeHumidity_600hPa_Night","AIRS_RelativeHumidity_700hPa_Day","AIRS_RelativeHumidity_700hPa_Night","AIRS_RelativeHumidity_850hPa_Day","AIRS_RelativeHumidity_850hPa_Night",+ "AIRS_Temperature_400hPa_Day",+ "AIRS_Temperature_400hPa_Night","AIRS_Temperature_500hPa_Day","AIRS_Temperature_500hPa_Night",+ "AIRS_Temperature_600hPa_Day",+ "AIRS_Temperature_600hPa_Night","AIRS_Temperature_700hPa_Day","AIRS_Temperature_700hPa_Night","AIRS_Temperature_850hPa_Day",@@ -409,11 +426,10 @@"OMPS_Aerosol_Index","OMPS_Aerosol_Index_PyroCumuloNimbus","OMPS_Ozone_Total_Column",- "OMPS_SO2_Planetary_Boundary_Layer","OMPS_SO2_Lower_Troposphere","OMPS_SO2_Middle_Troposphere","OMPS_SO2_Upper_Troposphere_and_Stratosphere",-+ "OMPS_SO2_Planetary_Boundary_Layer","OMI_Absorbing_Aerosol_Optical_Depth","OMI_Absorbing_Aerosol_Optical_Thickness_MW_388",@@ -421,10 +437,10 @@"OMI_UV_Aerosol_Index","OMI_Aerosol_Optical_Depth","OMI_Cloud_Pressure",- "OMI_SO2_Planetary_Boundary_Layer","OMI_SO2_Lower_Troposphere","OMI_SO2_Middle_Troposphere","OMI_SO2_Upper_Troposphere_and_Stratosphere",+ "OMI_SO2_Planetary_Boundary_Layer","OMI_Single_Scattering_Albedo","OMI_Ozone_DOAS_Total_Column","OMI_Ozone_TOMS_Total_Column",@@ -592,12 +608,6 @@"LIS_TRMM_Flash_Radiance","OTD_OrbView1_Flash_Radiance",- "TRMM_Precipitation_Rate_Asc",- "TRMM_Precipitation_Rate_Dsc",- "TRMM_Brightness_Temp_Asc",- "TRMM_Brightness_Temp_Dsc",--"OTD_High_Resolution_Full_Climatology_OTD_Raw_Flashes","OTD_High_Resolution_Full_Climatology_OTD_Scaled_Flashes","OTD_High_Resolution_Full_Climatology_OTD_Flash_Rate_Climatology",@@ -754,18 +764,18 @@"grand-v1-dams-rev01","energy-pop-exposure-nuclear-plants-locations_plants","grump-v1-settlement-points",- "NDH_Cyclone_Hazard_Frequency_Distribution_1980-2000",- "NDH_Cyclone_Mortality_Risks_Distribution_2000",- "NDH_Cyclone_Proportional_Economic_Loss_Risk_Deciles_2000",+ "ndh-cyclone-hazard-frequency-distribution",+ "ndh-cyclone-mortality-risks-distribution",+ "ndh-cyclone-proportional-economic-loss-risk-deciles","NDH_Drought_Hazard_Frequency_Distribution_1980-2000",- "NDH_Drought_Mortality_Risks_Distribution_2000",- "NDH_Drought_Proportional_Economic_Loss_Risk_Deciles_2000",+ "ndh-drought-mortality-risks-distribution",+ "ndh-drought-proportional-economic-loss-risk-deciles","NDH_Flood_Hazard_Frequency_Distribution_1985-2003",- "NDH_Flood_Mortality_Risks_Distribution_2000",- "NDH_Flood_Proportional_Economic_Loss_Risk_Deciles_2000",- "NDH_Volcano_Hazard_Frequency_Distribution_1979-2000",- "NDH_Volcano_Mortality_Risks_Distribution_2000",- "NDH_Volcano_Proportional_Economic_Loss_Risk_Deciles_2000",+ "ndh-flood-mortality-risks-distribution",+ "ndh-flood-proportional-economic-loss-risk-deciles",+ "ndh-volcano-hazard-frequency-distribution",+ "ndh-volcano-mortality-risks-distribution",+ "ndh-volcano-proportional-economic-loss-risk-deciles","NDH_Landslide_Hazard_Distribution_2000","Anthropogenic_Biomes_of_the_World_2001-2006","Agricultural_Lands_Croplands_2000",@@ -781,8 +791,6 @@"GPW_Population_Density_2020","GRUMP_Urban_Extents_Grid_1995","Human_Footprint_1995-2004",- "Landsat_Global_Man-made_Impervious_Surface",- "Landsat_Human_Built-up_And_Settlement_Extent","Last_of_the_Wild_1995-2004","LECZ_Urban_Rural_Extents_Below_10m","Particulate_Matter_Below_2.5micrometers_2001-2010",@@ -814,64 +822,52 @@"MODIS_Water_Mask","MODIS_Terra_Data_No_Data","MODIS_Aqua_Data_No_Data",-- "OrbitTracks_Aqua_Ascending",- "OrbitTracks_Aqua_Descending",- "OrbitTracks_Aura_Ascending",- "OrbitTracks_Aura_Descending",- "OrbitTracks_CYGNSS_Ascending",- "OrbitTracks_CYGNSS_Descending",- "OrbitTracks_Calipso_Ascending",- "OrbitTracks_Calipso_Descending",- "OrbitTracks_GCOM-C_Ascending",- "OrbitTracks_GCOM-C_Descending",- "OrbitTracks_GCOM-W1_Ascending",- "OrbitTracks_GCOM-W1_Descending",- "OrbitTracks_GOSAT-2_Ascending",- "OrbitTracks_GOSAT-2_Descending",- "OrbitTracks_GOSAT_Ascending",- "OrbitTracks_GOSAT_Descending",- "OrbitTracks_GPM_Ascending",- "OrbitTracks_GPM_Descending",- "OrbitTracks_ICESAT-2_Ascending",- "OrbitTracks_ICESAT-2_Descending",- "OrbitTracks_ISS_Ascending",- "OrbitTracks_ISS_Descending",- "OrbitTracks_Landsat-7_Ascending",- "OrbitTracks_Landsat-7_Descending",- "OrbitTracks_Landsat-8_Ascending",- "OrbitTracks_Landsat-8_Descending",- "OrbitTracks_METOP-A_Ascending",- "OrbitTracks_METOP-A_Descending",- "OrbitTracks_METOP-B_Ascending",- "OrbitTracks_METOP-B_Descending",- "OrbitTracks_METOP-C_Ascending",- "OrbitTracks_METOP-C_Descending",- "OrbitTracks_NOAA-20_Ascending",- "OrbitTracks_NOAA-20_Descending",- "OrbitTracks_OCO-2_Ascending",- "OrbitTracks_OCO-2_Descending",- "OrbitTracks_SAOCOM1-A_Ascending",- "OrbitTracks_SAOCOM1-A_Descending",- "OrbitTracks_SMAP_Ascending",- "OrbitTracks_SMAP_Descending",- "OrbitTracks_Sentinel-1A_Ascending",- "OrbitTracks_Sentinel-1A_Descending",- "OrbitTracks_Sentinel-1B_Ascending",- "OrbitTracks_Sentinel-1B_Descending",- "OrbitTracks_Sentinel-2A_Ascending",- "OrbitTracks_Sentinel-2A_Descending",- "OrbitTracks_Sentinel-2B_Ascending",- "OrbitTracks_Sentinel-2B_Descending",- "OrbitTracks_Sentinel-5P_Ascending",- "OrbitTracks_Sentinel-5P_Descending",- "OrbitTracks_Suomi_NPP_Ascending",- "OrbitTracks_Suomi_NPP_Descending",- "OrbitTracks_Terra_Ascending",- "OrbitTracks_Terra_Descending",-- "GOES16_Air_Mass_v0_STD",- "GOES16_Band13_Clean_Infrared_v0_STD"+ "Terra_Orbit_Asc",+ "Terra_Orbit_Dsc",+ "Aqua_Orbit_Asc",+ "Aqua_Orbit_Dsc",+ "Aura_Orbit_Asc",+ "Aura_Orbit_Dsc",+ "Calipso_Orbit_Asc",+ "Calipso_Orbit_Dsc",+ "GPM_Orbit_Asc",+ "GPM_Orbit_Dsc",+ "GCOM_W1_Orbit_Asc",+ "GCOM_W1_Orbit_Dsc",+ "GCOM_C_Orbit_Asc",+ "GCOM_C_Orbit_Dsc",+ "Sentinel_2A_Orbit_Asc",+ "Sentinel_2A_Orbit_Dsc",+ "Sentinel_2B_Orbit_Asc",+ "Sentinel_2B_Orbit_Dsc",+ "Sentinel_5P_Orbit_Asc",+ "Sentinel_5P_Orbit_Dsc",+ "Suomi_NPP_Orbit_Asc",+ "Suomi_NPP_Orbit_Dsc",+ "NOAA_20_Orbit_Asc",+ "NOAA_20_Orbit_Dsc",+ "SMAP_Orbit_Asc",+ "SMAP_Orbit_Dsc",+ "Landsat_7_Orbit_Asc",+ "Landsat_7_Orbit_Dsc",+ "Landsat_8_Orbit_Asc",+ "Landsat_8_Orbit_Dsc",+ "ISS_Orbit_Asc",+ "ISS_Orbit_Dsc",+ "OCO_2_Orbit_Asc",+ "OCO_2_Orbit_Dsc",+ "GOSAT_Orbit_Asc",+ "GOSAT_Orbit_Dsc",+ "CYGNSS_Orbit_Asc",+ "CYGNSS_Orbit_Dsc",+ "GOSAT_2_Orbit_Asc",+ "GOSAT_2_Orbit_Dsc",+ "METOP_A_Orbit_Asc",+ "METOP_A_Orbit_Dsc",+ "METOP_B_Orbit_Asc",+ "METOP_B_Orbit_Dsc",+ "SAOCOM1_A_Orbit_Asc",+ "SAOCOM1_A_Orbit_Dsc"],"layerOrderExceptions": ["SCAR_Land_Mask",diff --git a/config/default/common/config/wv.json/layers/goes/GOES-East_ABI_Air_Mass_v0_NRT.json b/config/default/common/config/wv.json/layers/goes/GOES-East_ABI_Air_Mass_v0_NRT.jsonnew file mode 100644index 000000000..da43960e2--- /dev/null+++ b/config/default/common/config/wv.json/layers/goes/GOES-East_ABI_Air_Mass_v0_NRT.json@@ -0,0 +1,16 @@+{+ "layers": {+ "GOES-East_ABI_Air_Mass_v0_NRT": {+ "id": "GOES-East_ABI_Air_Mass_v0_NRT",+ "title": "Air Mass (ABI, GOES-East)",+ "subtitle": "GOES-East / ABI",+ "description": "goes/GOES-East_ABI_Air_Mass_v0_NRT",+ "tags": "GOES subdaily",+ "group": "overlays",+ "layergroup": [+ "GOES"+ ],+ "inactive": true+ }+ }+}diff --git a/config/default/common/config/wv.json/layers/goes/GOES-East_ABI_Band13_Clean_Infrared_v0_NRT.json b/config/default/common/config/wv.json/layers/goes/GOES-East_ABI_Band13_Clean_Infrared_v0_NRT.jsonnew file mode 100644index 000000000..f8fdfc8bd--- /dev/null+++ b/config/default/common/config/wv.json/layers/goes/GOES-East_ABI_Band13_Clean_Infrared_v0_NRT.json@@ -0,0 +1,16 @@+{+ "layers": {+ "GOES-East_ABI_Band13_Clean_Infrared_v0_NRT": {+ "id": "GOES-East_ABI_Band13_Clean_Infrared_v0_NRT",+ "title": "Clean Infrared (10.3 µm, Band 13, ABI, GOES-East)",+ "subtitle": "GOES-East / ABI",+ "description": "goes/GOES-East_ABI_Band13_Clean_Infrared_v0_NRT",+ "tags": "GOES subdaily",+ "group": "overlays",+ "layergroup": [+ "GOES"+ ],+ "inactive": true+ }+ }+}diff --git a/config/default/common/config/wv.json/layers/goes/GOES-East_ABI_Band2_Red_Visible_v0_NRT.json b/config/default/common/config/wv.json/layers/goes/GOES-East_ABI_Band2_Red_Visible_v0_NRT.jsonnew file mode 100644index 000000000..a15f0cc05--- /dev/null+++ b/config/default/common/config/wv.json/layers/goes/GOES-East_ABI_Band2_Red_Visible_v0_NRT.json@@ -0,0 +1,16 @@+{+ "layers": {+ "GOES-East_ABI_Band2_Red_Visible_v0_NRT": {+ "id": "GOES-East_ABI_Band2_Red_Visible_v0_NRT",+ "title": "Red Visible (0.64 µm, Band 2, ABI, GOES-East)",+ "subtitle": "GOES-East",+ "description": "goes/GOES-East_ABI_Band2_Red_Visible_v0_NRT",+ "tags": "GOES subdaily",+ "group": "overlays",+ "layergroup": [+ "GOES"+ ],+ "inactive": true+ }+ }+}diff --git a/config/default/common/config/wv.json/layers/goes/GOES-West_ABI_Air_Mass_v0_NRT.json b/config/default/common/config/wv.json/layers/goes/GOES-West_ABI_Air_Mass_v0_NRT.jsonnew file mode 100644index 000000000..079fcf006--- /dev/null+++ b/config/default/common/config/wv.json/layers/goes/GOES-West_ABI_Air_Mass_v0_NRT.json@@ -0,0 +1,16 @@+{+ "layers": {+ "GOES-West_ABI_Air_Mass_v0_NRT": {+ "id": "GOES-West_ABI_Air_Mass_v0_NRT",+ "title": "Air Mass (ABI, GOES-West)",+ "subtitle": "GOES-West / ABI",+ "description": "goes/GOES-West_ABI_Air_Mass_v0_NRT",+ "tags": "GOES subdaily",+ "group": "overlays",+ "layergroup": [+ "GOES"+ ],+ "inactive": true+ }+ }+}diff --git a/config/default/common/config/wv.json/layers/goes/GOES-West_ABI_Band13_Clean_Infrared_v0_NRT.json b/config/default/common/config/wv.json/layers/goes/GOES-West_ABI_Band13_Clean_Infrared_v0_NRT.jsonnew file mode 100644index 000000000..d9dabdf77--- /dev/null+++ b/config/default/common/config/wv.json/layers/goes/GOES-West_ABI_Band13_Clean_Infrared_v0_NRT.json@@ -0,0 +1,16 @@+{+ "layers": {+ "GOES-West_ABI_Band13_Clean_Infrared_v0_NRT": {+ "id": "GOES-West_ABI_Band13_Clean_Infrared_v0_NRT",+ "title": "Clean Infrared (10.3 µm, Band 13, ABI, GOES-West)",+ "subtitle": "GOES-West / ABI",+ "description": "goes/GOES-West_ABI_Band13_Clean_Infrared_v0_NRT",+ "tags": "GOES subdaily",+ "group": "overlays",+ "layergroup": [+ "GOES"+ ],+ "inactive": true+ }+ }+}diff --git a/config/default/common/config/wv.json/layers/goes/GOES-West_ABI_Band2_Red_Visible_v0_NRT.json b/config/default/common/config/wv.json/layers/goes/GOES-West_ABI_Band2_Red_Visible_v0_NRT.jsonnew file mode 100644index 000000000..efbc4bb47--- /dev/null+++ b/config/default/common/config/wv.json/layers/goes/GOES-West_ABI_Band2_Red_Visible_v0_NRT.json@@ -0,0 +1,16 @@+{+ "layers": {+ "GOES-West_ABI_Band2_Red_Visible_v0_NRT": {+ "id": "GOES-West_ABI_Band2_Red_Visible_v0_NRT",+ "title": "Red Visible (0.64 µm, Band 2, ABI, GOES-West)",+ "subtitle": "GOES-West",+ "description": "goes/GOES-West_ABI_Band2_Red_Visible_v0_NRT",+ "tags": "GOES subdaily",+ "group": "overlays",+ "layergroup": [+ "GOES"+ ],+ "inactive": true+ }+ }+}diff --git a/config/default/common/config/wv.json/layers/goes/GOES16_Air_Mass_v0_STD.json b/config/default/common/config/wv.json/layers/goes/GOES16_Air_Mass_v0_STD.jsondeleted file mode 100644index 0aa4d60db..000000000--- a/config/default/common/config/wv.json/layers/goes/GOES16_Air_Mass_v0_STD.json+++ /dev/null@@ -1,16 +0,0 @@-{- "layers": {- "GOES16_Air_Mass_v0_STD": {- "id": "GOES16_Air_Mass_v0_STD",- "title": "Air Mass (RGB, GOES-16)",- "subtitle": "GOES",- "description": "goes/GOES16_Air_Mass_v0_STD",- "group": "baselayers",- "tags": "goes",- "layergroup": [- "goes"- ],- "wrapadjacentdays": true- }- }-}diff --git a/config/default/common/config/wv.json/layers/goes/GOES16_Band13_Clean_Infrared_v0_STD.json b/config/default/common/config/wv.json/layers/goes/GOES16_Band13_Clean_Infrared_v0_STD.jsondeleted file mode 100644index 64da908f2..000000000--- a/config/default/common/config/wv.json/layers/goes/GOES16_Band13_Clean_Infrared_v0_STD.json+++ /dev/null@@ -1,16 +0,0 @@-{- "layers": {- "GOES16_Band13_Clean_Infrared_v0_STD": {- "id": "GOES16_Band13_Clean_Infrared_v0_STD",- "title": "Clean Infrared (Band 13, 10.3 µm, GOES-16)",- "subtitle": "GOES",- "description": "goes/GOES16_Band13_Clean_Infrared_v0_STD",- "group": "baselayers",- "tags": "goes",- "layergroup": [- "goes"- ],- "wrapadjacentdays": true- }- }-}diff --git a/config/default/common/config/wv.json/layers/himawari/Himawari_AHI_Air_Mass_v0_NRT.json b/config/default/common/config/wv.json/layers/himawari/Himawari_AHI_Air_Mass_v0_NRT.jsonnew file mode 100644index 000000000..e189b583b--- /dev/null+++ b/config/default/common/config/wv.json/layers/himawari/Himawari_AHI_Air_Mass_v0_NRT.json@@ -0,0 +1,16 @@+{+ "layers": {+ "Himawari_AHI_Air_Mass_v0_NRT": {+ "id": "Himawari_AHI_Air_Mass_v0_NRT",+ "title": "Air Mass (AHI, Himawari)",+ "subtitle": "Himawari / AHI",+ "description": "himawari/Himawari_AHI_Air_Mass_v0_NRT",+ "tags": "Himawari subdaily",+ "group": "overlays",+ "layergroup": [+ "Himawari"+ ],+ "inactive": true+ }+ }+}diff --git a/config/default/common/config/wv.json/layers/himawari/Himawari_AHI_Band13_Clean_Infrared_v0_NRT.json b/config/default/common/config/wv.json/layers/himawari/Himawari_AHI_Band13_Clean_Infrared_v0_NRT.jsonnew file mode 100644index 000000000..c0395a9f4--- /dev/null+++ b/config/default/common/config/wv.json/layers/himawari/Himawari_AHI_Band13_Clean_Infrared_v0_NRT.json@@ -0,0 +1,16 @@+{+ "layers": {+ "Himawari_AHI_Band13_Clean_Infrared_v0_NRT": {+ "id": "Himawari_AHI_Band13_Clean_Infrared_v0_NRT",+ "title": "Clean Infrared (10.3 µm, Band 13, AHI, Himawari)",+ "subtitle": "Himawari / AHI",+ "description": "himawari/Himawari_AHI_Band13_Clean_Infrared_v0_NRT",+ "tags": "Himawari subdaily",+ "group": "overlays",+ "layergroup": [+ "Himawari"+ ],+ "inactive": true+ }+ }+}diff --git a/config/default/common/config/wv.json/layers/himawari/Himawari_AHI_Band3_Red_Visible_v0_NRT.json b/config/default/common/config/wv.json/layers/himawari/Himawari_AHI_Band3_Red_Visible_v0_NRT.jsonnew file mode 100644index 000000000..8dfd9d8de--- /dev/null+++ b/config/default/common/config/wv.json/layers/himawari/Himawari_AHI_Band3_Red_Visible_v0_NRT.json@@ -0,0 +1,16 @@+{+ "layers": {+ "Himawari_AHI_Band3_Red_Visible_v0_NRT": {+ "id": "Himawari_AHI_Band3_Red_Visible_v0_NRT",+ "title": "Red Visible (0.64 µm, Band 2, AHI, Himawari)",+ "subtitle": "Himawari",+ "description": "himawari/Himawari_AHI_Band3_Red_Visible_v0_NRT",+ "tags": "Himawari subdaily",+ "group": "overlays",+ "layergroup": [+ "Himawari"+ ],+ "inactive": true+ }+ }+}diff --git a/config/default/release/config.json b/config/default/release/config.jsonindex 229af7a81..ffd8de98a 100644--- a/config/default/release/config.json+++ b/config/default/release/config.json@@ -1,15 +1,15 @@{"wv-options-fetch": [{- "from": "https://uat.gibs.earthdata.nasa.gov/wmts/epsg4326/all/wmts.cgi?request=GetCapabilities",+ "from": "https://uat.gibs.earthdata.nasa.gov/wmts/epsg4326/nrt/wmts.cgi?request=GetCapabilities","to": "gibs-geographic.xml"},{- "from": "https://gibs.earthdata.nasa.gov/wmts/epsg3413/best/wmts.cgi?request=GetCapabilities",+ "from": "https://gibs.earthdata.nasa.gov/wmts/epsg3413/nrt/wmts.cgi?request=GetCapabilities","to": "gibs-arctic.xml"},{- "from": "https://gibs.earthdata.nasa.gov/wmts/epsg3031/best/wmts.cgi?request=GetCapabilities",+ "from": "https://gibs.earthdata.nasa.gov/wmts/epsg3031/nrt/wmts.cgi?request=GetCapabilities","to": "gibs-antarctic.xml"}],diff --git a/config/default/release/config/wv.json/sources.json b/config/default/release/config/wv.json/sources.jsonindex 82ba6a8c4..8d4b8828e 100644--- a/config/default/release/config/wv.json/sources.json+++ b/config/default/release/config/wv.json/sources.json@@ -1,25 +1,25 @@{"sources": {"GIBS:arctic": {- "url": "https://gibs-{a-c}.earthdata.nasa.gov/wmts/epsg3413/best/wmts.cgi"+ "url": "http://uat.gibs.earthdata.nasa.gov/wmts/epsg3413/nrt/wmts.cgi"},"GIBS:antarctic": {- "url": "https://gibs-{a-c}.earthdata.nasa.gov/wmts/epsg3031/best/wmts.cgi"+ "url": "http://uat.gibs.earthdata.nasa.gov/wmts/epsg3031/nrt/wmts.cgi"},"GIBS:geographic": {- "url": "https://uat.gibs.earthdata.nasa.gov/wmts/epsg4326/all/wmts.cgi"+ "url": "https://uat.gibs.earthdata.nasa.gov/wmts/epsg4326/nrt/wmts.cgi"},- "GIBS:wms": {- "url": "https://uat.gibs.earthdata.nasa.gov/wms/epsg4326/all/wms.cgi"+ "WDPA:wms": {+ "url": "http://gis.unep-wcmc.org:6080/arcgis/services/wdpa/public/MapServer/WMSServer"},- "GIBS:wms:arctic": {- "url": "https://gibs-{a-c}.earthdata.nasa.gov/wms/epsg3413/best/wms.cgi"+ "GIBS:wms": {+ "url": "http://uat.gibs.earthdata.nasa.gov/wms/wms.php"},- "GIBS:wms:antarctic": {- "url": "https://gibs-{a-c}.earthdata.nasa.gov/wms/epsg3031/best/wms.cgi"+ "SEDAC:wms": {+ "url": "https://sedac.ciesin.columbia.edu/geoserver/wms"},- "WDPA:wms": {- "url": "http://gis.unep-wcmc.org:6080/arcgis/services/wdpa/public/MapServer/WMSServer"+ "SPORT:geographic": {+ "url": "https://wms1.nsstc.nasa.gov/geoserver/GOES/wms"}}}diff --git a/web/js/animation/ui.js b/web/js/animation/ui.jsindex 85cce3347..b2b55a172 100644--- a/web/js/animation/ui.js+++ b/web/js/animation/ui.js@@ -10,7 +10,7 @@ export function animationUi(models, ui) {var animModel = models.anim;var queueLength;var queue = new Queue(5, Infinity);- var zooms = ['year', 'month', 'day', 'hour', 'minute'];+ var zooms = ['custom', 'year', 'month', 'day', 'hour', 'minute'];var preload = {};var preloadArray;var inQueue;@@ -40,7 +40,8 @@ export function animationUi(models, ui) {}if (models.data) {models.data.events.on('activate', self.refreshState);- models.date.events.on('zoom-change', self.refreshState);+ // models.date.events.on('zoom-change', self.refreshState);+ models.date.events.on('interval-change', self.refreshState);models.date.events.on('select', self.dateChange);}if (ui.map) {@@ -184,9 +185,10 @@ export function animationUi(models, ui) {**/self.getInterval = function () {- // return zooms[ui.timeline.config.currentZoom - 1];- return zooms[models.date.selectedZoom - 1];- // return zooms[2];+ // console.log(models.date.selectedZoom, models.date.interval)+ // return zooms[models.date.selectedZoom - 1];+ console.log (models.date.interval)+ return zooms[models.date.interval];};/*@@ -204,15 +206,27 @@ export function animationUi(models, ui) {// # need to change subdaily argument for custom intervals - rework for all zoom levels presumablyself.nextDate = function (date) {- // console.log(util.dateAdd(date, self.getInterval(), 1), self.getInterval())- let interval = self.getInterval();+ let customSelected = models.date.customSelected;+ let interval;+ let delta;+console.log(models.date.customInterval)+ if (customSelected) {+ interval = zooms[Number(models.date.customInterval)] || zooms[3];+ console.log(zooms[Number(models.date.customInterval)], interval)+ if (interval === 'custom') {+ interval = zooms[models.date.selectedZoom];+ }+ delta = models.date.customDelta || 1;+ } else {+ interval = self.getInterval();+ console.log(interval)+ delta = 1;+ }console.log(interval)- return util.dateAdd(date, interval, 1);- // if (models.date.selectedZoom === 4) {- // return util.dateAdd(date, self.getInterval(), 15);- // } else {- // return util.dateAdd(date, self.getInterval(), 1);- // }+ // let interval = self.getInterval();+ // console.log(models.date.customInterval, date, interval, delta)+ console.log(date,interval,delta)+ return util.dateAdd(date, interval, delta);};/*diff --git a/web/js/animation/widget.js b/web/js/animation/widget.jsindex ab8a154d0..fcc483dfb 100644--- a/web/js/animation/widget.js+++ b/web/js/animation/widget.js@@ -7,7 +7,16 @@ import lodashIndexOf from 'lodash/indexOf';import util from '../util/util';export function animationWidget(models, config, ui) {- var zooms = ['yearly', 'monthly', 'daily', 'hourly', 'minutely', 'custom'];+ const timeScaleFromNumberKey = {+ '0': 'custom',+ '1': 'year',+ '2': 'month',+ '3': 'day',+ '4': 'hour',+ '5': 'minute'+ };+ var customText = models.date.customDelta && models.date.customInterval ? `${models.date.customDelta} ${timeScaleFromNumberKey[models.date.customInterval]}` : 'custom';+ var zooms = [customText, 'yearly', 'monthly', 'daily', 'hourly', 'minutely'];var self = {};var timeline = ui.timeline;var model = models.anim;@@ -34,8 +43,8 @@ export function animationWidget(models, config, ui) {onPushPause: self.onPressPause,onPushGIF: self.onPressGIF,looping: model.rangeState.loop,- increment: self.getIncrements(), // config.currentZoom is a number: 1,2,3- incrementArray: lodashWithout(zooms, self.getIncrements()), // array of zooms without current zoom+ increment: self.getIncrementText(), // config.currentZoom is a number: 1,2,3+ incrementArray: lodashWithout(zooms, self.getIncrementText()), // array of zooms without current zoomonDateChange: self.dateUpdate,sliderLabel: 'Frames Per Second',sliderSpeed: model.rangeState.speed,@@ -69,6 +78,7 @@ export function animationWidget(models, config, ui) {model.events.trigger('change');model.events.on('change', self.update);models.date.events.on('timeline-change', self.update);+ models.date.events.on('custom-interval-update', self.update);if (models.data) {dataModel = models.data;dataModel.events.on('activate', function() {@@ -155,8 +165,8 @@ export function animationWidget(models, config, ui) {// maxZoom: models.date.maxZoom,hasSubdailyLayers: models.layers.hasSubDaily(),playing: state.playing,- increment: self.getIncrements(), // config.currentZoom is a number: 1,2,3- incrementArray: lodashWithout(zooms, self.getIncrements()) // array of zooms without current zoom+ increment: self.getIncrementText(), // config.currentZoom is a number: 1,2,3+ incrementArray: lodashWithout(zooms, self.getIncrementText()) // array of zooms without current zoom});};@@ -171,13 +181,33 @@ export function animationWidget(models, config, ui) {*/self.getIncrements = function() {// if (models.date.maxZoom > 3) {+ // debugger;+ let customText = models.date.customDelta && models.date.customInterval ? `${models.date.customDelta} ${timeScaleFromNumberKey[models.date.customInterval]}` : 'custom';if (models.layers.hasSubDaily()) {- zooms = ['yearly', 'monthly', 'daily', 'hourly', 'minutely', 'custom'];+ zooms = [customText, 'yearly', 'monthly', 'daily', 'hourly', 'minutely'];} else {- zooms = ['yearly', 'monthly', 'daily', 'custom'];+ zooms = [customText, 'yearly', 'monthly', 'daily'];+ }+ // return zooms[models.date.selectedZoom - 1];+ let interval = models.date.interval ? models.date.interval : models.date.selectedZoom - 1;+ console.log(customText, zooms[models.date.interval], models.date.interval, models.date.selectedZoom)+ return zooms[interval];+ };++ self.getIncrementText = function() {+ let customText = models.date.customDelta && models.date.customInterval ? `${models.date.customDelta} ${timeScaleFromNumberKey[models.date.customInterval]}` : 'custom';+ if (models.layers.hasSubDaily()) {+ zooms = [customText, 'yearly', 'monthly', 'daily', 'hourly', 'minutely'];+ } else {+ zooms = [customText, 'yearly', 'monthly', 'daily'];+ }++ if (models.date.customSelected) {+ return zooms[0];+ } else {+ let interval = models.date.interval ? models.date.interval : models.date.selectedZoom - 1;+ return zooms[interval];}- // return zooms[timeline.config.currentZoom - 1];- return zooms[models.date.selectedZoom - 1];};/*@@ -196,9 +226,13 @@ export function animationWidget(models, config, ui) {*/self.onZoomSelect = function(increment) { // ? still want to change zoom level on select???var zoomLevel = lodashIndexOf(zooms, increment);- models.date.setSelectedZoom(zoomLevel + 1);+ console.log(zoomLevel, increment)+ // models.date.setSelectedZoom(zoomLevel);// return timeline.config.zoom(zoomLevel + 1);- models.date.events.trigger('zoom-change');+ // models.date.events.trigger('zoom-change');+ // models.date.events.trigger('interval-change');+ models.date.changeIncrement(zoomLevel);+ models.date.events.trigger('interval-change');};/*@@ -269,6 +303,10 @@ export function animationWidget(models, config, ui) {var dateModel = models.date;var currentDate = new Date(dateModel[dateModel.activeDate]);var interval = ui.anim.ui.getInterval();+ if (interval === 'custom') {+ debugger;+ interval = zooms[models.date.selectedZoom];+ }console.log(interval)if (dateModel.selectedZoom === 4) {intervalStep = 70;@@ -299,8 +337,10 @@ export function animationWidget(models, config, ui) {**/self.onPressPlay = function() {+ // debugger;let zoomLevel = ui.anim.ui.getInterval();- if (zoomLevel !== 'minute') {+ console.log(zoomLevel)+ if (zoomLevel !== 'minute' && zoomLevel !== 'hour' && zoomLevel !== 'custom') {// zero out start/end date timesself.setZeroDateTimes();}diff --git a/web/js/components/animation-widget/animation-widget.js b/web/js/components/animation-widget/animation-widget.jsindex 2fb881e0f..bd7048502 100644--- a/web/js/components/animation-widget/animation-widget.js+++ b/web/js/components/animation-widget/animation-widget.js@@ -131,6 +131,7 @@ class AnimationWidget extends React.Component {}}render() {+ console.log(this.state.increment)return (<divid="wv-animation-widget"diff --git a/web/js/components/timeline/timeline-axis/timeline-axis.js b/web/js/components/timeline/timeline-axis/timeline-axis.jsindex 8cfe44d97..ed3466ccb 100644--- a/web/js/components/timeline/timeline-axis/timeline-axis.js+++ b/web/js/components/timeline/timeline-axis/timeline-axis.js@@ -10,7 +10,8 @@ import Dragger from './timeline-dragger';import dateCalc from './date-calc';-const timeScales = [ 'minute', 'hour', 'day', 'month', 'year' ];+// const timeScales = [ 'minute', 'hour', 'day', 'month', 'year' ];+const timeScales = [ 'year', 'month', 'day', 'hour', 'minute' ];const draggerWidth = 49;//? can set gridWidth, actual daeArrays (assume length will vary? - minute level will be more individual DOM els than day for example)@@ -242,14 +243,15 @@ class TimelineAxis extends React.Component {wheelZoom = (e) => {// e.preventDefault(); //TODO: investigate treated as passive event error/warning when onlet arrayIndex = timeScales.indexOf(this.props.timeScale);+ let maxIndex = this.props.hasSubdailyLayers ? 4 : 2;if (e.deltaY > 0) { // wheel zoom out- if (arrayIndex < 4) {- let nextGreaterTimeScale = timeScales[arrayIndex + 1];+ if (arrayIndex > 0) {+ let nextGreaterTimeScale = timeScales[arrayIndex - 1];this.props.changeTimescale(nextGreaterTimeScale);}} else {- if (arrayIndex > 0) { // wheel zoom in- let nextSmallerTimeScale = timeScales[arrayIndex - 1];+ if (arrayIndex < maxIndex) { // wheel zoom in+ let nextSmallerTimeScale = timeScales[arrayIndex + 1];this.props.changeTimescale(nextSmallerTimeScale);}}diff --git a/web/js/components/timeline/timeline-controls/interval-timescale-change.js b/web/js/components/timeline/timeline-controls/interval-timescale-change.jsindex 2cc6ce50c..b9c72fef2 100644--- a/web/js/components/timeline/timeline-controls/interval-timescale-change.js+++ b/web/js/components/timeline/timeline-controls/interval-timescale-change.js@@ -39,10 +39,12 @@ class TimeScaleIntervalChange extends Component {}componentDidUpdate (prevProps, prevState) {- if (this.props.customSelected && this.props.customIntervalValue !== 1 && this.state.customIntervalText === 'Custom') {- this.setCustomIntervalText();- } else if (this.props.customSelected && (this.props.customIntervalValue !== prevProps.customIntervalValue || this.props.timeScaleChangeUnit !== prevProps.timeScaleChangeUnit)) {- this.setCustomIntervalText();+ if (this.props.customIntervalValue && this.props.timeScaleChangeUnit) {+ if (this.props.customSelected && this.props.customIntervalValue !== 1 && this.state.customIntervalText === 'Custom') {+ this.setCustomIntervalText();+ } else if (this.props.customSelected && (this.props.customIntervalValue !== prevProps.customIntervalValue || this.props.timeScaleChangeUnit !== prevProps.timeScaleChangeUnit)) {+ this.setCustomIntervalText();+ }}}diff --git a/web/js/components/timeline/timeline.js b/web/js/components/timeline/timeline.jsindex 57111d44a..493fc04d5 100644--- a/web/js/components/timeline/timeline.js+++ b/web/js/components/timeline/timeline.js@@ -109,6 +109,7 @@ class Timeline extends React.Component {// handle SELECT of LEFT/RIGHT interval selectionsetTimeScaleIntervalChangeUnit = (intervalSelected, customSelected) => {+ console.log('select', intervalSelected, customSelected)let intervalChangeAmt;if (intervalSelected === 'custom') {intervalSelected = this.state.customIntervalZoomLevel;@@ -205,7 +206,7 @@ class Timeline extends React.Component {selectedDate={this.state.dateFormatted}selectedDateB={this.state.dateFormattedB}updateDate={this.updateDate}- subdaily={this.props.subdaily}+ hasSubdailyLayers={this.state.hasSubdailyLayers}parentOffset={this.state.parentOffset}changeTimescale={this.changeTimescale}compareModeActive={this.state.compareModeActive}diff --git a/web/js/date/model.js b/web/js/date/model.jsindex 4455b6469..01db1adc6 100644--- a/web/js/date/model.js+++ b/web/js/date/model.js@@ -35,6 +35,15 @@ export function dateModel(models, config, spec) {'DEC'];+ const timeScaleFromNumberKey = {+ '0': 'custom',+ '1': 'year',+ '2': 'month',+ '3': 'day',+ '4': 'hour',+ '5': 'minute'+ };+var init = function() {var initial = spec.initial || util.now();self.select(initial);@@ -46,9 +55,22 @@ export function dateModel(models, config, spec) {};// set selectedZoom levelself.setSelectedZoom = (zoomLevel) => {+ console.log(zoomLevel)self.selectedZoom = zoomLevel;self.events.trigger('state-update');};+ // select increment from animation dialog+ self.changeIncrement = (zoomLevel) => {+ // if custom+ if (zoomLevel === 0) {+ self.customSelected = true;+ // check for customInterval selection else default to current interval+ self.interval = self.customInterval ? self.customInterval : self.interval;+ } else {+ self.customSelected = false;+ self.interval = zoomLevel;+ }+ };self.setActiveDate = function(dateString) {self.activeDate = dateString;self.events.trigger('state-update');@@ -58,6 +80,7 @@ export function dateModel(models, config, spec) {self.customDelta = delta;self.customInterval = interval;self.events.trigger('state-update');+ self.events.trigger('custom-interval-update');};// select interval from tooltipself.setSelectedInterval = (interval, customSelected) => {@@ -215,6 +238,8 @@ export function dateModel(models, config, spec) {// selected interval timescaleif (state.inti) {self.interval = state.inti;+ } else {+ self.interval = 3;}// custom interval deltaif (state.intcd) {diff --git a/web/js/date/timeline.js b/web/js/date/timeline.jsindex 0fb3548ae..389875dff 100644--- a/web/js/date/timeline.js+++ b/web/js/date/timeline.js@@ -538,6 +538,70 @@ export function timeline(models, config, ui) {});};+ var changeToSelectedInterval = () => {+ // debugger+ console.log(models.date)+ let customSelected = models.date.customSelected;+ let timeScaleInterval = timeScaleFromNumberKey[models.date.interval];+ let timeScaleChangeUnit = timeScaleFromNumberKey[models.date.customInterval];+ let intervalChangeAmt = models.date.customDelta;++ // let valueText = customSelected ? intervalChangeAmt : 1;+ // let intervalUnitText = customSelected ? timeScaleChangeUnit.toUpperCase().substr(0, 3) : timeScaleInterval.toUpperCase().substr(0, 3);++ // let zoomCustomText = document.querySelector('#zoom-custom');+ // zoomCustomText.textContent = `${valueText} ${intervalUnitText}`;++ if (customSelected) {+ let customIntervalModalOpen = false;+ if (!models.date.customDelta || !models.date.customInterval) {+ customIntervalModalOpen = true;+ }++ self.reactComponent.setState({+ timeScaleChangeUnit: timeScaleChangeUnit,+ customIntervalValue: intervalChangeAmt,+ intervalChangeAmt: intervalChangeAmt,+ customIntervalModalOpen: customIntervalModalOpen,+ customSelected: true+ });+ } else {+ self.reactComponent.setState({+ timeScaleChangeUnit: timeScaleInterval,+ intervalChangeAmt: 1,+ customIntervalModalOpen: false,+ customSelected: false+ });+ }++ // let zoomCustomText = document.querySelector('#zoom-custom');+ // zoomCustomText.textContent = `${intervalValue} ${zoomLevel.toUpperCase().substr(0, 3)}`;+ // // model.events.trigger('zoom-change');+ // self.reactComponent.setState({+ // timeScaleChangeUnit: zoomLevel,+ // customIntervalValue: intervalValue,+ // customIntervalZoomLevel: zoomLevel,+ // intervalChangeAmt: intervalValue,+ // customIntervalModalOpen: false+ // });+++ // // check if selected interval is custom++ // // if custom, check if custom has been set or if still 'custom' text/null state++ // // open custom panel+ // let customIntervalModalOpen = false;++ // let timeScaleChangeUnit = self.customInterval;+ // let customSelected = true;+ // let intervalChangeAmt = self.customDelta;++ // self.customSelected = null; // boolean+ // self.customDelta = null; // number+ // self.customInterval = null;+ };+var clickAnimationButton = () => {// console.log(ui);};@@ -561,6 +625,7 @@ export function timeline(models, config, ui) {};const timeScaleFromNumberKey = {+ '0': 'custom','1': 'year','2': 'month','3': 'day',@@ -569,6 +634,7 @@ export function timeline(models, config, ui) {};const timeScaleToNumberKey = {+ 'custom': '0','year': '1','month': '2','day': '3',@@ -864,7 +930,8 @@ export function timeline(models, config, ui) {models.compare.events.on('toggle', onCompareModeToggle);}- model.events.on('zoom-change', updateTimeScaleState);+ // model.events.on('zoom-change', updateTimeScaleState);+ model.events.on('interval-change', changeToSelectedInterval);models.layers.events.on('change', onLayerUpdate);diff --git a/web/js/map/layerbuilder.js b/web/js/map/layerbuilder.jsindex 068eb5bdd..c995f9937 100644--- a/web/js/map/layerbuilder.js+++ b/web/js/map/layerbuilder.js@@ -125,6 +125,7 @@ export function mapLayerBuilder(models, config, cache, mapUi) {}var dateArray = def.availableDates || [];if (options.date) {+ // debugger;// TODO: comparison mode using this options.date key// need to continue conditional like below to get prevDateInDateRange ?// how does this interact with subdaily VS. non-subdaily and add/remove in different states?@@ -132,7 +133,11 @@ export function mapLayerBuilder(models, config, cache, mapUi) {if (def.period !== 'subdaily') {// # timeoffset fix handled here- date = new Date(options.date.getTime() + (options.date.getTimezoneOffset() * 60000));+ // date = new Date(options.date.getTime() + (options.date.getTimezoneOffset() * 60000));+ // date = new Date(options.date.getTime());+ // date = new Date(util.clearTimeUTC(date));+ date = util.clearTimeUTC(new Date(options.date.getTime()));+ // console.log(date)} else {// date = new Date(options.date.getTime() + (options.date.getTimezoneOffset() * 60000));// # timeoffset fix handled further downdiff --git a/web/js/util/util.js b/web/js/util/util.jsindex c757ec820..15bb93641 100644--- a/web/js/util/util.js+++ b/web/js/util/util.js@@ -395,6 +395,7 @@ export default (function (self) {};self.dateAdd = function (date, interval, amount) {+ console.log(date, interval, amount)var month, maxDay, year;var newDate = new Date(date);switch (interval) {