nmathewa / tropcyc

Tropical cyclone exp
0 stars 0 forks source link

NAN values interpolation (or extrapolation) #9

Open nmathewa opened 11 months ago

nmathewa commented 11 months ago

Issue 1

Method 1

The missing values can be filled using linear extrapolation methods

image


def extrapolate_fields(dset):
    try :
        dset_n = dset.reindex(latitude=list(reversed(dset.latitude)
                                        )).interpolate_na(dim='latitude',
                                                          fill_value="extrapolate"
                                                          ).interpolate_na(
                                                              dim='longitude',
                                                              fill_value="extrapolate")

    except ValueError:
        dset_n = dset.interpolate_na(dim='latitude',fill_value="extrapolate"
                                                              ).interpolate_na(
                                                                  dim='longitude',
                                                                  fill_value="extrapolate")
    return dset_n
nmathewa commented 11 months ago

Issues (method1)

nmathewa commented 11 months ago

SST

  1. Fill land values with land temperature
  2. Remove the land near points
nmathewa commented 11 months ago

Curious landfalls

Q1. If land points are filled with land temperature the gradient will be high, but it may make the model learn the landfall conditions ? (There must be a tradeoff)

Q2. SST is not only the factor , humidity is also takes part here

image image

nmathewa commented 10 months ago

Tests