From fc9bd4ad976783390df4d00b8b3ec697f33a1023 Mon Sep 17 00:00:00 2001 From: "Faiza Bibi (bibif5)" Date: Sun, 2 Aug 2020 17:31:03 +0100 Subject: [PATCH] Create code.m --- code.m | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 code.m diff --git a/code.m b/code.m new file mode 100644 index 0000000..eb5077e --- /dev/null +++ b/code.m @@ -0,0 +1,16 @@ +%Printing information of the file in command window +ncinfo(FileNC) +%Longitude +long = ncread(FileNC,'lon'); +%Length of longitude +nx = length(long) ; +%Latitude +lat = ncread(FileNC,'lat'); +%Length of Latitude +ny = length(lat) ; +%Total number of time hours in a day +time = ncread(FileNC,'hour'); + +%Longitude and latitude for plotting. Converting it to double values +lon=double(long); +lat=double(lat);