GetCDEC.php
This PHP script grabs data for any CDEC site and formats it to roughly match the SNOTEL data from GetSNOTEL.php.
Data provided by California Data Exchange Center   http://cdec.water.ca.gov
PHP script by Amar Andalkar, January 2016   (current version 1.2.3 of 18 Dec 2016)   http://www.skimountaineer.com/

Selected Site:  (1758 sites in list)     Or Search for a Site by Station ID:   (Enter a full Station ID, 3 characters only, case-insensitive)    
Number of Days: (Limit: 365 if logged in, or only 1 if not logged in)     End Date: (Format: yyyy-mm-dd, or current date/time if blank)         Show hidden data columns                            
Plain Version (just the data table)     Smaller Font     Fixed-Width Font     Table Border     Table Dividers (between days or months)     Table Cell Padding: (if blank, then 0 if plain, 1 otherwise)        
Site Info, Location, Start / End Date:
Site Info Page:
Full URL for Data Shown Below:
REDDING  (RED)  500 ft     40.516° N, 122.291° W    
http://cdec.water.ca.gov/cgi-progs/staMeta?station_id=RED
http://cdec.water.ca.gov/cgi-progs/queryF?RED&d=22-May-2018+06:45&span=24hours

REDDING  (RED)


CCSS server error, data file not found.
















Run time: 0.174 seconds
Requested data: 24 rows, columns, values
Received data: rows