forecasting/raw_ndvi_pred/json_parser.py
def main():
    """
        TODO: parse the useful values from the data file and plot them
    :return:
    """
    this_file = 'statistics_250m_16_days_NDVI.json'
    all_values = [#"value_min",
                  # "value_max",
                  # "value_sum",
                  # "value_range",
                  "value_mean",
                  # "value_variance",
                  #"value_stddev"]
                  ]
    all_vals = get_values(this_file=this_file, all_values=all_values)
    for v in all_vals.keys():
        this = np.asarray(all_vals[v])
        this = smooth(this, window_len=8)
        this = interpolate_and_scale(this, new_length=5e6, order=3, scale=100)
        logging.info('length of {} = {}'.format(v, len(this)))
        pl.plot(this, label=v)
    # v = 'value_mean'
    # vals = 100*all_vals[v]
    # pl.plot(vals, label=v)
    pl.legend(loc='upper right')
    pl.show()

        TODO: parse the useful values from the data file and plot them
    :return:
    
parse the useful values from the data file and plot them
parse the useful values from the data file and plot them
def main():
    this_file = 'statistics_250m_16_days_NDVI.json'
    all_values = [
                  "value_mean",
                  ]
    all_vals = get_values(this_file=this_file, all_values=all_values)
    for v in all_vals.keys():
        this = np.asarray(all_vals[v])
        this = smooth(this, window_len=8)
        this = interpolate_and_scale(this, new_length=5e6, order=3, scale=100)
        logging.info('length of {} = {}'.format(v, len(this)))
        pl.plot(this, label=v)
    pl.legend(loc='upper right')
    pl.show()
def main ( ) : this_file = 'statistics_250m_16_days_NDVI.json' all_values = [ "value_mean" , ] all_vals = get_values ( this_file = this_file , all_values = all_values ) for v in all_vals . keys ( ) : this = np . asarray ( all_vals [ v ] ) this = smooth ( this , window_len = 8 ) this = interpolate_and_scale ( this , new_length = 5e6 , order = 3 , scale = 100 ) logging . info ( 'length of {} = {}' . format ( v , len ( this ) ) ) pl . plot ( this , label = v ) pl . legend ( loc = 'upper right' ) pl . show ( )
TODO: parse the useful values from the data file and plot them
TODO : parse the useful values from the data file and plot them
"""
        TODO: parse the useful values from the data file and plot them
    :return:
    """ #"value_min", # "value_max", # "value_sum", # "value_range", # "value_variance", #"value_stddev"] # v = 'value_mean' # vals = 100*all_vals[v] # pl.plot(vals, label=v)
None