Skip to content

area across 0/360 degree longitude #23

@QianqianHan96

Description

@QianqianHan96

Hi Francesco, @fnattino

I saw you keep [0,360] as longitude standard during preprocessing and inference. I also tried to do the same for other variables: SSM, CO2, IGBP, hc, Vcmax when I preprocess them. The only problematic one is SSM, because it is not global, it is just for Europe. I tried two ways to resample it.

  1. convert era5land from [0,360] to [-180,180], then clip era5land using Europe boundary, then resample SSM, and then convert resampled SSM from [-180,180] to [0,360]. There is a weird line in the figure (cell 62 and 65). https://github.com/EcoExtreML/Emulator/blob/main/0preprocessing/4-SSM180.ipynb
  2. keep era5land as [0,360], convert SSM from [-180,180] to [0,360]. Then I need to clip era5land with Europe boundary, but the clipped results is two parts across 0/360 degree longitude line, then I concat two parts into one, then when I plot it, it seems weird (cell 127). But based on this weird clipped era5land, I resampled SSM, it seems okay (cell 103) but when I export to tif and open in ArcGIS, it is still weird (longitude across 0-230 degree). https://github.com/EcoExtreML/Emulator/blob/main/0preprocessing/4-SSM360.ipynb

The resampled SSM from two ways display differently. But when I export the result to geotiff and open in ArcGIS, they are both wrong (seems like the third figure in the below figures). Do you have some experience about this?
image

Then I tried the third way, same as the first way, but do not clip era5land

  1. convert era5land from [0,360] to [-180,180], not clip era5land, then resample SSM, and then convert resampled SSM from [-180,180] to [0,360]. Then the result shows correctly and also correct in ArcGIS. https://github.com/EcoExtreML/Emulator/blob/main/0preprocessing/4-SSM180correct.ipynb
  2. I also tried to not clip era5land for the second way, but the result is same as the above figure (third column one).

The another reason I am worried about this is when we do inference on bigger scale, if we need to select an area, we better avoid 0/360 longitude line? I also saw you select [0,125] degree in the inference notebook.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions