Using NCDUMP to reveal the secrets of Netcdf

Поделиться
HTML-код
  • Опубликовано: 11 дек 2024

Комментарии • 13

  • @paulmauger7320
    @paulmauger7320 Год назад

    Thanks a lot for your videos ! May I ask : how could I get latitudes & longitudes vectors (only) from ncdump ? I work with WRF files and when I try ncdump -v XLAT, I get a huge amount of redundant data and have to scroll back & forth from start to beginning to determine min and max latitudes.
    I'm sure there's a better wy to only get the vectors containing all lats & lons ? Thanks.

  • @sebastiantadeodelgadocalde4484
    @sebastiantadeodelgadocalde4484 3 года назад +1

    8:34 so if I have data for west coordinates will I still get degrees_east?

    • @climateunboxed
      @climateunboxed  3 года назад +2

      yes, degrees_east is the standard units string, but you can specify longitude as -180 to 180 or 0 to 360. Cute trick: if you have a file (we can assume global wlog) with longitude values of -180 to 180, you can convert it easily to 0-360 with cdo sellonlatbox,0,360,-90,90 in.nc out.nc - Hope you found the videos useful, more on the way, don't forget to subscribe to get notification when they arrive!😉

  • @jonashaas8143
    @jonashaas8143 2 года назад +1

    Hi, I love your videos. Could you maybe tell me in which video you show how to transform the t2m short variable into a float, using the scale factor and offset?

    • @climateunboxed
      @climateunboxed  2 года назад

      Thanks for the great feedback. To do that you can use the copy command with float output: cdo -b f32 copy in.nc out.nc

  • @alicewatson9886
    @alicewatson9886 2 года назад +1

    Hi, super helpful videos. Using your tutorials to help me with my dissertation on my environmental science degree. Is Java a prerequisite to run the ncdump on the terminal? I tried to run it and got a 'command not found message' then ran the line 'sudo apt install netcdf-bin' upon which I got a message reading 'unable to locate java runtime'. just wondering if this would be why the function isn't working?

    • @climateunboxed
      @climateunboxed  2 года назад

      hmmm, I didn't think that was necessary, can I ask which platform you are on?

  • @elyseemanimpiregasanaelyse7311

    For missing value, what does it mean if instead of s there is f?
    example: float sst(time, lat, lon) ;
    sst:long_name = "Sea surface temperature" ;
    sst:units = "K" ;
    sst:_FillValue = -32767.f ;
    sst:missing_value = -32767.f ;

  • @Alejvm97
    @Alejvm97 3 года назад +1

    Hello mr. Tompkins,
    I've installed netcdf4, numpy, and Cython in Python, however, I get the message "ncdump is not defined" or, in cmd/Ubuntu, "ncdump is not recognized/found". Is there any prerequisite I'm missing?
    Thanks again!

    • @climateunboxed
      @climateunboxed  3 года назад +1

      Did you try "sudo apt install netcdf-bin"? It is also worth doing "sudo apt install libnetcdf-dev" - let me know if it sorts your problems :-)

    • @Alejvm97
      @Alejvm97 3 года назад

      @@climateunboxed Yes! I tried both of them, but I get the message "unable to locate package (netcdf-bin or libnetcdf-dev)"

    • @climateunboxed
      @climateunboxed  3 года назад +1

      @@Alejvm97 are you using Ubuntu installed under windows as a subsystem?

    • @Alejvm97
      @Alejvm97 3 года назад +1

      @@climateunboxed Yes but I didn't use "sudo apt update" and then "sudo apt upgrade". The commands work now, finally I can follow the tutorial :D haha