Skip to content

Warning with (soon to be) deprecated parameter in sampleSites function #15

@ronnyhdez

Description

@ronnyhdez

When using the LEAF.py module from the Source-python/production directory, there is a warning:

FutureWarning: 'm' is deprecated and will be removed in a future version, please use 'ME' instead.
  if (len(pd.date_range(startDate,endDate,freq='m')) > 0 ):

This is the line in the file. Probably there are a couple more that will need to be changed to avoid problems in the future.

I was using the jupyter notebook example, specifically the following line:

 #Landsat 8
sitesDictionaryL08V0 = LEAF.sampleSites(siteList, \
                                                 imageCollectionName='LANDSAT/LC08/C02/T1_L2',\
                                                 algorithm=SL2PV0, 
                                                 variableName="LAI",\
                                                 maxCloudcover=90,\
                                                 outputScaleSize=30,\
                                                 inputScaleSize=30,\
                                                 bufferSpatialSize = 0,\
                                                 bufferTemporalSize =["2021-04-01","2022-10-01"],  \
                                                 subsamplingFraction = 0.99) 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions